0

How can I make my image background bigger to fill up the space of the JFrame.

private static void gamePanel() {
    JFrame frame = new JFrame("Mascot Fight Game");
    frame.setContentPane(new JLabel(new ImageIcon(System
            .getProperty("user.dir") + "/image/big10_legends_leaders.gif")));
    Container panel = frame.getContentPane();
    panel.setLayout(null);
    String[] iconString = new String[3];
    int[] boundInt = new int[3];
mKorbel
  • 109,525
  • 20
  • 134
  • 319

0 Answers0