Search:

Type: Posts; User: JavaPF

Search: Search took 0.07 seconds.

  1. Replies
    8
    Views
    4,919

    Re: Jtextfield Validation

    Have a play with this code:


    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;

    public class TextValidation {
  2. Replies
    8
    Views
    4,919

    Re: Jtextfield Validation

    Does this need to check in real-time? When the user is typing/deleting text from the field or does it check when a button is pressed?
  3. Replies
    8
    Views
    4,919

    Re: Jtextfield Validation

    Why can't you use if/else?

    Just to clarify, if the text is deleted out of the textfield, you want it to automatically update to 0?
Results 1 to 3 of 3