Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Replies
    14
    Views
    1,545

    Re: Frame not becoming invisible

    Right.
    One was mkay that extends JFrame

    The other was:
    JFrame jtfMainFrame;
    ...
    jtfMainFrame = new JFrame("Which Button Demo");
  2. Replies
    14
    Views
    1,545

    Re: Frame not becoming invisible

    Do you now see where there are two windows being created?
  3. Replies
    14
    Views
    1,545

    Re: Frame not becoming invisible

    What title is shown in the window with the components? Do a Find in the source for that String to see where it is used. Or look for a statement that has: new JFrame(
  4. Replies
    14
    Views
    1,545

    Re: Frame not becoming invisible

    The IDE should not make any difference. Your friend's code must have been different.

    Did you see two windows after the change I suggested?
    Look at the code. There are two JFrame objects being...
  5. Replies
    14
    Views
    1,545

    Re: Frame not becoming invisible

    Try changing the setVisible parameter to true and see what happens.
  6. Replies
    14
    Views
    1,545

    Re: Frame not becoming invisible

    What happens when you execute the program?
Results 1 to 6 of 6