I have a problem setting my Jlabel location.
I installed the content panel in some kind of JPanel, I created and tried to add JLabel.
JLabel mainTitle = new JLabel("SomeApp"); mainTitle.setFont(new Font("Arial",2 , 28)); mainTitle.setBounds(0,0, 115, 130); getContentPane().add(mainTitle);
I want my JPanel to be in the upper left corner of my application, and what I get is "SomeApp" in the top center (and not top left).
btw I tried adding JButton the and I canβt change the width, height, x, y of JButton.
source share