Results 1 to 8 of 8
  1. #1

    Default Need clarification sa Java


    Okay ra ba dili gamiton ang public boolean action (Event e, Object o) bisan dili ko maghimo ug Applet? Gamiton ra nako siya sa application, .jar.

  2. #2
    -action(Event e, Object o); is already deprecated as of jdk1.1, instead use actionPerformed() of ActionListener
    -as for your question, dependi kng imng application contains controls/components that fires an event when pressed or selected e.g Button

  3. #3
    Oo naa'y buttons akong gibuhat.

    Uhm, what do you mean 'bout deprecated?

  4. #4
    Buttons instead of JButtons ako gigamit, Panels instead of JPanels, Frame instead of JFrame mao nag-gamit ko ug action () instead of ActionListener kay d man mo meet ang req.

  5. #5
    -magamit raman ang ActionListener either from swing or awt components
    -post daw sa imo code snipplet where nag gamit kag action()

  6. #6
    boolean clearScreen = true; . - Anonymous - 38YS5UuS - Pastebin.com
    boolean clearScreen = true;
    ...
    input = new TextField (10);
    ...
    public boolean action (Event evAction, Object objAction) {
    Double tempRes;
    if ("log".equals (objAction)) {
    tempRes = new Double (input.getText ());
    tempRes = Math.log10 (tempRes);
    input.setText(String.valueOf (tempRes));
    clearScreen = true;
    }
    else if ("ln".equals (objAction)) {
    tempRes = new Double (input.getText ());
    tempRes = Math.log (tempRes);
    input.setText (String.valueOf (tempRes));
    clearScreen = true;
    }
    return clearScreen;
    }
    What do you mean about deprecated sir?

    By the way, dili Applet akong gihimo but Java application jud.
    Last edited by technowar; 03-06-2010 at 09:51 AM.

  7. #7
    deprecated in java means that method is already obsolete and was updated with new method name and new features

  8. #8
    Okay, thanks. Done some adjustments gamit ActionListener.

  9.    Advertisement

Similar Threads

 
  1. need help sa linux be version 9
    By kermesh in forum Computer Hardware
    Replies: 3
    Last Post: 03-01-2013, 03:10 PM
  2. Guys need help sa business na carwash
    By mack0y in forum Business, Finance & Economics Discussions
    Replies: 7
    Last Post: 01-29-2013, 12:41 AM
  3. internet cafe business, need help sa specs?
    By jaytol23 in forum Networking & Internet
    Replies: 19
    Last Post: 04-22-2012, 12:38 AM
  4. Need advice sa Dual vs Single Channel
    By Abaddon in forum Computer Hardware
    Replies: 15
    Last Post: 01-26-2007, 02:22 PM
  5. need help sa C
    By chokobo in forum Programming
    Replies: 12
    Last Post: 02-25-2006, 08:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top