Search:

Type: Posts; User: Krumpir

Search: Search took 0.16 seconds.

  1. Replies
    4
    Views
    5,508

    [SOLVED] Re: How to maximize a JFrame Form?

    Where did you initialize the JLabel? It seems like you might be missing the following.


    JLabel image = new JLabel();
    // And then then set the imageicon
    image.setIcon(new...
  2. Replies
    4
    Views
    5,508

    [SOLVED] Re: How to maximize a JFrame Form?

    To maximize a JFrame you need the following code.

    myFrame.setExtendedState(JFrame.MAXIMIZED_BOTH);
    And to put an image in a JPanel you would create a JLabel and set the ImageIcon for that JLabel....
Results 1 to 2 of 2