Search:

Type: Posts; User: Norm

Search: Search took 0.14 seconds.

  1. Replies
    5
    Views
    2,130

    Re: GUI: JButtons aren't visible until clicked

    I suppose it is a question of who paints last. If the layout of the components is done first, and the painting after, the painter will win. If the painter goes first then the layout will win.
    ...
  2. Replies
    5
    Views
    2,130

    Re: GUI: JButtons aren't visible until clicked

    Either you paint on the frame or you layout components on the frame. Not both
    Create a JPanel extension class, put your paintComponent method in that and add that to the frame.
  3. Replies
    5
    Views
    2,130

    Re: GUI: JButtons aren't visible until clicked

    What does the functions class do?
    The code works for me when I comment out the functions line

    Just recompiled and now it doesn't work the same way.

    If I rename the paint method to paintXXX...
Results 1 to 3 of 3