日期:2014-05-19 浏览次数:20798 次
JPanel searchConditionPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
//searchConditionPanel.setPreferredSize(new Dimension(700, 65));
//searchConditionPanel.setBackground(BACKGROUND_COLOR);
JPanel jp = new JPanel(new GridLayout(1, 6, 15, 5));
jp.setPreferredSize(new Dimension(580, 25));
jp.setBackground(BACKGROUND_COLOR);
JLabel label = new JLabel("1");
jp.add(label);
label.setText("2");
jp.add(label);
label.setText("3");
jp.add(label);
label.setText("4");
jp.add(label);
label.setText("5");
jp.add(label);
label.setText("6");
jp.add(label);
searchConditionPanel.add(jp);