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.
Type: Posts; User: newtolearningjava
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.
use the existing layout.
i thought i need to add another layout because the label wouldnt show
public class game extends JFrame{
private JLabel greeting;
public static void main(String[] args) {
new game();
}
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(); ...