Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JPanel centro = new JPanel();
- JLabel logo_centro = new JLabel(new ImageIcon("centro.jpg"));
- centro.setBackground(Color.gray);
- c.weightx = 1;
- c.fill = GridBagConstraints.BOTH;
- c.gridx = 1;
- c.gridy = 0;
- c.insets = new Insets(0,0,0,0);
- centro.setPreferredSize(new Dimension(800, 100));
- centro.add("Center",logo_centro);
- pane.add(centro,c);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement