Java Swing - JLabel Location
问题 I have problem while setting the Jlabel location. I set the content pane to some JPanel, I created and tried to add my JLabel. JLabel mainTitle = new JLabel("SomeApp"); mainTitle.setFont(new Font("Arial",2 , 28)); mainTitle.setBounds(0,0, 115, 130); getContentPane().add(mainTitle); I want that my JPanel will be on the top left corner on my application and what I am getting is "SomeApp" on the top center.(and not top left). btw I tried to add JButton the and the I can`t change the width,height