引用:
china888寫到:
你是se,ee,還是me啊
不知道是否可以提供demo code看看~~
參考一下喔~~好奇中
主要是J2EE
J2SE也可以support
J2ME的市場目前沒有開發的計劃
demo code可能不太容易懂喔
因為產生器有綁一些特殊的code
不過我可以貼一段給你參考看看
public void iniComponents() {
/* Navigator Setting... Orders */
JPanel comp0001 = new JPanel();
comp0001.setBounds(8, 13, 390, 44);
comp0001.setOpaque(true);
zButton comp0001801= new zButton(this, "Orders801");
comp0001801.SetNavigatorButton("Orders", zDataSource.DS_RECORD_FIRST);
comp0001801.setText("");
comp0001801.setToolTipText("First");
comp0001.add(comp0001801);
comp0001801.setBorderPainted(false);
comp0001801.setContentAreaFilled(false);
comp0001801.setFocusPainted(false);
comp0001801.setOpaque(false);
comp0001801.setHorizontalTextPosition(JButton.LEADING);
zButton comp0001802= new zButton(this, "Orders802");
comp0001802.SetNavigatorButton("Orders", zDataSource.DS_RECORD_PRIOR);
comp0001802.setText("");
comp0001802.setToolTipText("Prior");
comp0001.add(comp0001802);
comp0001802.setBorderPainted(false);
comp0001802.setContentAreaFilled(false);
comp0001802.setFocusPainted(false);
comp0001802.setOpaque(false);
comp0001802.setHorizontalTextPosition(JButton.LEADING);
zButton comp0001803= new zButton(this, "Orders803");
comp0001803.SetNavigatorButton("Orders", zDataSource.DS_RECORD_NEXT);
comp0001803.setText("");
comp0001803.setToolTipText("Next");
comp0001.add(comp0001803);
comp0001803.setBorderPainted(false);
comp0001803.setContentAreaFilled(false);
comp0001803.setFocusPainted(false);
comp0001803.setOpaque(false);
comp0001803.setHorizontalTextPosition(JButton.LEADING);
zButton comp0001804= new zButton(this, "Orders804");
comp0001804.SetNavigatorButton("Orders", zDataSource.DS_RECORD_LAST);
comp0001804.setText("");
comp0001804.setToolTipText("Last");
comp0001.add(comp0001804);
comp0001804.setBorderPainted(false);
comp0001804.setContentAreaFilled(false);
comp0001804.setFocusPainted(false);
comp0001804.setOpaque(false);
comp0001804.setHorizontalTextPosition(JButton.LEADING);
zButton comp0001805= new zButton(this, "Orders805");
comp0001805.SetNavigatorButton("Orders", zDataSource.DS_RECORD_INSERT);
comp0001805.setText("");
comp0001805.setToolTipText("Insert");
comp0001.add(comp0001805);
comp0001805.setBorderPainted(false);
comp0001805.setContentAreaFilled(false);
comp0001805.setFocusPainted(false);
comp0001805.setOpaque(false);
comp0001805.setHorizontalTextPosition(JButton.LEADING);
zButton comp0001806= new zButton(this, "Orders806");
comp0001806.SetNavigatorButton("Orders", zDataSource.DS_RECORD_DELETE);
comp0001806.setText("");
comp0001806.setToolTipText("Delete");
comp0001.add(comp0001806);
comp0001806.setBorderPainted(false);
comp0001806.setContentAreaFilled(false);
comp0001806.setFocusPainted(false);
comp0001806.setOpaque(false);
comp0001806.setHorizontalTextPosition(JButton.LEADING);