Search:

Type: Posts; User: newtolearningjava

Search: Search took 0.08 seconds.

  1. Replies
    9
    Views
    788

    Re: why wony my label show on gui

    without this
    contentPane.setLayout(null);

    my layout of the rest of my gui goes funny

    --- Update ---

    ive solved it, just needed to set the bounds.
  2. Replies
    9
    Views
    788

    Re: why wony my label show on gui

    use the existing layout.

    i thought i need to add another layout because the label wouldnt show
  3. Replies
    9
    Views
    788

    Re: why wony my label show on gui

    public class game extends JFrame{

    private JLabel greeting;

    public static void main(String[] args) {

    new game();

    }
  4. Replies
    9
    Views
    788

    why wony my label show on gui

    I am trying to add a label to my gui, i am using the following code but it is not showing.

    Can some one tell what i am doing wrong please




    contentPane = this.getContentPane(); ...
Results 1 to 4 of 4