Sebastian Posted September 14, 2016 Share Posted September 14, 2016 (edited) Hey everyone. I'm trying to get a little bit of margin from the left border of the JFrame. I've created a JPanel. Which i gave bounds. But it doesn't do what i want. It doesn't get any margin. Anyone who knows? jFrame.setSize(300, 300); jFrame.setResizable(false); // Add panel JPanel jPanel = new JPanel(null); jPanel.setBorder(new LineBorder(new Color(0, 0, 0))); jPanel.setBounds(10, 10, 100, 100); jFrame.add(jPanel); Edited September 14, 2016 by Sebastian Quote Link to comment Share on other sites More sharing options...
Wizard Posted September 14, 2016 Share Posted September 14, 2016 GraphicUtilities#drawModel(org.osbot.rs07.Bot bot, java.awt.Graphics2D g, int gridX, int gridY, int z, Model model) Quote Link to comment Share on other sites More sharing options...
Sebastian Posted September 14, 2016 Author Share Posted September 14, 2016 GraphicUtilities#drawModel(org.osbot.rs07.Bot bot, java.awt.Graphics2D g, int gridX, int gridY, int z, Model model) This doesn't have anything to do with Java Swing? Quote Link to comment Share on other sites More sharing options...