在 awt 中
Frame f = new Frame();
Button b = new Button();
f.add( b );


在 swing 中
JFrame jf = new JFrame();
JButton jb = new JButton();
jf.getContentPane().add( jb );

相关文章:

  • 2021-08-04
  • 2021-11-25
  • 2021-06-27
  • 2021-07-01
  • 2021-04-28
  • 2021-08-02
猜你喜欢
  • 2022-12-23
  • 2021-12-04
  • 2021-12-18
  • 2021-12-19
  • 2021-11-18
  • 2021-11-22
相关资源
相似解决方案