Results 1 to 8 of 8
  1. #1

    Default error trapping in java


    guys need ure expertise.

    guys unsa may error trapping sa java.
    kanang di maka input ug letters and numbers

    and then kana sang kung walay gi-input
    mo invalid sya. dapat masudlan or ma inputan.

    salamat guys.

    nag practice nako sa java ginagmay.

  2. #2
    taga UC ka no?

  3. #3
    Quote Originally Posted by cencio View Post
    taga UC ka no?
    yap
    kabalo lagi ka?

  4. #4
    taga UC pod ko..

  5. #5
    try ug buhat ug custom input verifier nya i.set na sa emong textfield..

    sample:

    JTextField field = new JTextField();
    field.setInputVerifier(new MyVerifier());

    //make a new class that extends the InputVerifier
    public class MyVerifier extends InputVerifier {

    public boolean verify(JComponent input) {
    //do your validation here...
    }
    }

  6. #6
    dili pa man ko mogamit ug mga textfield.
    kuan paman kanang sa murag dos. pa

  7. #7
    Quote Originally Posted by reyarita View Post
    guys need ure expertise.

    guys unsa may error trapping sa java.
    kanang di maka input ug letters and numbers

    and then kana sang kung walay gi-input
    mo invalid sya. dapat masudlan or ma inputan.

    salamat guys.

    nag practice nako sa java ginagmay.
    1. Unsa d i nga character iyang i-input kung dili maka-input ug letter and numbers? kanang mga "!,@,#.$,%,^,&, etc..." ang iyang iinput?
    2. Unsa sad imong pasabot sa "dapat masudlan or ma inputan" if command line imong gusto? so pasabot, walay textfield.. so wala sad sudlan ang user.. right?

  8. #8
    Quote Originally Posted by Unknown_08 View Post
    1. Unsa d i nga character iyang i-input kung dili maka-input ug letter and numbers? kanang mga "!,@,#.$,%,^,&, etc..." ang iyang iinput?
    2. Unsa sad imong pasabot sa "dapat masudlan or ma inputan" if command line imong gusto? so pasabot, walay textfield.. so wala sad sudlan ang user.. right?


    dili mn ko mogamit ug mga JOption

    kana rang sa murag dos niya ba mag input.

  9.    Advertisement

Similar Threads

 
  1. Error handling/trapping in vb using ibm database
    By skeptic_rob in forum Programming
    Replies: 7
    Last Post: 08-24-2010, 05:31 PM
  2. Syntax error in java
    By skeptic_rob in forum Programming
    Replies: 2
    Last Post: 06-14-2010, 07:03 PM
  3. How to clear buffer in Java?
    By ares623 in forum Programming
    Replies: 17
    Last Post: 09-22-2009, 11:20 AM
  4. Completely stumped by scanner error in java
    By Kirksp08 in forum Programming
    Replies: 3
    Last Post: 04-13-2009, 09:39 PM
  5. USB /thumbdrive error unrecognized in windows
    By benz_jie2005 in forum Computer Hardware
    Replies: 4
    Last Post: 03-23-2007, 07:43 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