Advertisement
Guest User

Untitled

a guest
May 27th, 2015
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. JPanel centro = new JPanel();
  2. JLabel logo_centro = new JLabel(new ImageIcon("centro.jpg"));
  3. centro.setBackground(Color.gray);
  4. c.weightx = 1;
  5. c.fill = GridBagConstraints.BOTH;
  6. c.gridx = 1;
  7. c.gridy = 0;
  8. c.insets = new Insets(0,0,0,0);
  9. centro.setPreferredSize(new Dimension(800, 100));
  10. centro.add("Center",logo_centro);
  11. pane.add(centro,c);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement