/**
* This method initializes desktopPane
*
* @return JDesktopPane
*/
private DesktopPanel getDesktopPane() {
if (desktopPane == null) {
desktopPane = new DesktopPanel();
}
return desktopPane;
}
/**
* This method initializes statePanel
*
* @return JPanel
*/
private JPanel getStatePanel() {
if (statePanel == null) {
GridBagConstraints gridBagConstraints6 = new GridBagConstraints();
gridBagConstraints6.gridx = 2;
gridBagConstraints6.fill = GridBagConstraints.VERTICAL;
gridBagConstraints6.insets = new Insets(0, 5, 0, 5);
gridBagConstraints6.gridy = 0;
GridBagConstraints gridBagConstraints4 = new GridBagConstraints();
gridBagConstraints4.gridx = 3;
gridBagConstraints4.gridy = 0;
GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
gridBagConstraints3.gridx = 6;
gridBagConstraints3.fill = GridBagConstraints.VERTICAL;
gridBagConstraints3.insets = new Insets(0, 5, 0, 5);
gridBagConstraints3.gridy = 0;
GridBagConstraints gridBagConstraints11 = new GridBagConstraints();
gridBagConstraints11.gridx = 5;
gridBagConstraints11.insets = new Insets(0, 5, 0, 5);
gridBagConstraints11.gridy = 0;
nowDateLabel = new JLabel();
Date now = new Date();
nowDateLabel.setText(String.format("%tF", now));
GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
gridBagConstraints2.gridx = 7;
gridBagConstraints2.weightx = 0.0;
gridBagConstraints2.fill = GridBagConstraints.NONE;
gridBagConstraints2.gridy = 0;
nameLabel = new JLabel("爱你一点一点有限公司 ");
GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
gridBagConstraints1.gridx = 4;
gridBagConstraints1.fill = GridBagConstraints.VERTICAL;
gridBagConstraints1.weighty = 1.0;
gridBagConstraints1.insets = new Insets(0, 5, 0, 5);
gridBagConstraints1.gridy = 0;
GridBagConstraints gridBagConstraints = new GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.gridy = 0;
statePanel = new JPanel();
statePanel.setLayout(new GridBagLayout());
statePanel.setBorder(BorderFactory.createBevelBorder(RAISED));
statePanel.add(getStateLabel(), gridBagConstraints);
statePanel.add(getJSeparator(), gridBagConstraints1);
statePanel.add(nameLabel, gridBagConstraints2);
statePanel.add(getJSeparator1(), gridBagConstraints3);
statePanel.add(nowDateLabel, gridBagConstraints11);
statePanel.add(getCzyStateLabel(), gridBagConstraints4);
statePanel.add(getJSeparator2(), gridBagConstraints6);
}
return statePanel;
}
public static JLabel getCzyStateLabel() {
if (czyStateLabel == null) {
czyStateLabel = new JLabel("操作员:");
}
return czyStateLabel;
}
public JLabel getStateLabel() {
if (stateLabel == null) {
stateLabel = new JLabel();
stateLabel.setText("当前没有选定窗体");
}
return stateLabel;
}
public class MainFrame extends JFrame {