Im making the GUI. I created the JFrame and added 2 JPanels, using JTabbedPane. Despite the fact that i used setSize() method, when I press "start" it creates a little window with 3 default Windows buttons, so I have to resize it by myself.
This is what my window looks like when I run the program:
This is the code I'm using which produces the results in the image:
JTabbedPane tabs = new JTabbedPane();
JFrame frame = new JFrame("crm");
frame.setSize(750, 600);
JPanel panel = new JPanel();
JPanel qw = new JPanel();
panel.setPreferredSize(new Dimension(650,500));
frame.add(tabs);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
frame.add(panel, BorderLayout.CENTER);
panel.setLayout(null);
panel.setPreferredSize(frame.getSize());
tabs.add("1", panel);
tabs.addTab("2", qw);
frame.setLocationRelativeTo(null);
frame.setVisible(true);