盒子排版器(BoxLayout)有3種無互動,純佔面積用之視窗元件可用,
摘要如下,
1.strut (支架)
Component v = Box.createVerticalStrut(h); //新增隱形固定高度h像素之垂直支架
Component h = Box.createHorizontalStrut(w); //新增隱形固定寬度w像素之水平支架
2.glue (黏膠)
Component v = Box.createVerticalGlue(); //新增隱形垂直等間隔黏膠
Component h = Box.createHorizontalGlue(); //新增隱形水平等間隔黏膠
Component g = Box.createGlue(); //新增隱形等間隔黏膠,適用於垂直或水平盒子排版器
3.rigid area (硬塊), 相當於2維支架
Dimension d = new Dimension(h,w); // 新增寬h,高w尺寸
Component ra = Box.createRigidArea(d); // 依給定尺寸新增隱形硬塊
PS:
deitel-php-05-java how to program 6th ed
strut, glue, rigid area in BoxLayout
訂閱:
張貼留言 (Atom)
start versus restart for docker containers
Docker start vs restart :差異快速看懂 docker start 與 docker restart 都能讓容器跑起來, 但語意與清理範圍完全不同。 1.指令行為比較 指令 行為說明 適用狀態 ...
沒有留言:
張貼留言