Topic: JToolBar的一个问题

  Print this page

1.JToolBar的一个问题 Copy to clipboard
Posted by: jfml
Posted on: 2003-05-09 10:16

要往其中加3个按钮

两个左对齐

另一个右对齐

请问该如何设置呢?

谢谢指点

2.Re:JToolBar的一个问题 [Re: CrazyJavar] Copy to clipboard
Posted by: yakuu
Posted on: 2003-05-09 13:23

JToolBar tool = new JToolBar();
  tool.add(new JButton("111"));
  tool.add(new JButton("222"));
  tool.add(Box.createHorizontalGlue());
  tool.add(new JButton("333"));

3.Re:JToolBar的一个问题 [Re: CrazyJavar] Copy to clipboard
Posted by: floater
Posted on: 2003-05-10 02:35

You picture is scary, your post is good, and your signature is GREAT.

4.Re:JToolBar的一个问题 [Re: CrazyJavar] Copy to clipboard
Posted by: jfml
Posted on: 2003-05-10 10:26

Premature optimization is the root of all evil!

的确切的中文意思是。。。。?

5.Re:JToolBar的一个问题 [Re: CrazyJavar] Copy to clipboard
Posted by: yakuu
Posted on: 2003-05-10 13:33

过早的优化是一切麻烦的根源/

6.Re:JToolBar的一个问题 [Re: CrazyJavar] Copy to clipboard
Posted by: jfml
Posted on: 2003-05-10 13:56

说得好

7.Re:JToolBar的一个问题 [Re: CrazyJavar] Copy to clipboard
Posted by: syfwebber
Posted on: 2003-05-11 16:38

赞同


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923