import java.util.*;
import java.awt.*;
import javax.swing.*;
public class Layout{
public void jpanel(){
JFrame frame = new JFrame();
JPanel gridPanel = new JPanel(new GridLayout(6, 5));
JPanel northPanel = new JPanel();
JButton[][] button = new JButton[6][5];
for(int i=0; i<6; i++){
for(int j=0; j<5; j++){
gridPanel.add(button[i][j]);
}
}
This post has been edited by ral106: 01 March 2012 - 01:17 PM

New Topic/Question
Reply



MultiQuote








|