Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.08 seconds.

  1. Replies
    10
    Views
    6,736

    Re: how to delete a JTextField?

    That method is deprecated- you're supposed to use setVisible() instead. Keep in mind that simply making the component invisible doesn't actually remove it, so what you're doing is causing a possible...
  2. Replies
    10
    Views
    6,736

    Re: how to delete a JTextField?

    I can't run that because it's not an SSCCE. But where do you validate your Container after removing the component?
  3. Replies
    10
    Views
    6,736

    Re: how to delete a JTextField?

    ...what? What are you adding/removing from if not a Container? What do you mean by "remove method only disable the textfield"?

    If you want help, you'll have to provide an SSCCE, as I don't really...
  4. Replies
    10
    Views
    6,736

    Re: how to delete a JTextField?

    Sigh. What about it didn't work? Where's your SSCCE? Did you validate the Container after making the change?
  5. Replies
    10
    Views
    6,736

    Re: how to delete a JTextField?

    There's a remove method in the Container class. Didn't you google this or look at the API first?
Results 1 to 5 of 5