📄 buddybarpanel.java
字号:
package balistic;
import java.awt.*;
import java.awt.event.*;
public class BuddyBarPanel extends Panel
{
BuddyBar mybar;
public BuddyBarPanel(BuddyBar theBar)
{
mybar = theBar;
this.setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.insets = new Insets(3,3,3,3);
c.fill = GridBagConstraints.NONE;
c.gridx = 0; c.gridy = 0; c.gridwidth=1; c.gridheight=1;
c.weightx = 0; c.weighty = 0;
this.add(mybar.getLabel(),c);
c.gridx = 1;
this.add(mybar.getTextField(),c);
c.gridx = 2; c.weightx = 1.0;
c.fill = GridBagConstraints.HORIZONTAL;
this.add(mybar.getScrollbar(),c);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -