千万不要忘记了,我们只是民工如下代码:public class ButtonDemo extends DemoModule implements ChangeListener { public static void main(String[] args) { ButtonDemo demo = new ButtonDemo(null); demo.mainImpl(); }
/** * ButtonDemo Constructor */ public ButtonDemo(SwingSet2 swingset) { // Set the title for this demo, and an icon used to represent this // demo inside the SwingSet2 app. super(swingset, "ButtonDemo", "toolbar/JButton.gif");
tab = new JTabbedPane(); tab.getModel().addChangeListener(this);
public static void main(String[] args) {
ButtonDemo demo = new ButtonDemo(null);
demo.mainImpl();
}
/**
* ButtonDemo Constructor
*/
public ButtonDemo(SwingSet2 swingset) {
// Set the title for this demo, and an icon used to represent this
// demo inside the SwingSet2 app.
super(swingset, "ButtonDemo", "toolbar/JButton.gif");
tab = new JTabbedPane();
tab.getModel().addChangeListener(this);
JPanel demo = getDemoPanel();
demo.setLayout(new BoxLayout(demo, BoxLayout.Y_AXIS));
demo.add(tab);
addButtons();
addRadioButtons();
addCheckBoxes();
// addToggleButtons();
}
public void addButtons() {
tab.addTab(getString("ButtonDemo.buttons"), buttonPanel);
buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));
buttonPanel.setBorder(border5);
JPanel p1 = createVerticalPanel(true);
p1.setAlignmentY(TOP_ALIGNMENT);
buttonPanel.add(p1);
// Text Buttons
JPanel p2 = createHorizontalPanel(false);
p1.add(p2);
p2.setBorder(new CompoundBorder(new TitledBorder(null, getString("ButtonDemo.textbuttons"),
TitledBorder.LEFT, TitledBorder.TOP), border5));
buttons.add(p2.add(new JButton(getString("ButtonDemo.button1"))));
p2.add(Box.createRigidArea(HGAP10));
buttons.add(p2.add(new JButton(getString("ButtonDemo.button2"))));
p2.add(Box.createRigidArea(HGAP10));
buttons.add(p2.add(new JButton(getString("ButtonDemo.button3")))); ....我问你这是什么语言?事实上你可以说它是c# 其实是Java 我问你有差别吗?你们认为只是文字上的差别吗?我们只是民工,我们唯一可以选择的就是工头跟对了没有,微软费尽心思推出与java 如此相似的c# 及它的win 2003 我相信它应该在高端有所做为,在中国已经越来越明显了,从微软查盗版就知道了说应用,肯定不可能超过JAVA,它有IBM 就不会倒,unix 的市场微软要打下来还要以世纪做单位,我们做民工的管那么多做甚,天天谈论国家大屎谈论人生大屎可明天还不是一样过,你只要学好怎么砌砖就行了,以后换民工是容易之及。。
你也转向ejb了??