文章列表
如题:如何使增加在JPanel中的不同长度的JList顶部对齐,而非垂直居中对齐?
示例代码如下:
import javax.swing.JFrame;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
public class testPanel extends JPanel {
public testPanel(){
super();
}
public static void main(String[] args){
JFrame frame = n ...
- 2008-10-01 10:29
- 浏览 1108
- 评论(0)