Java滚动条的问题,请高手帮忙
public void paint(){
JPane drawPanel=new JPane(); /////
JScrollPane sc=new JScrollPane(drawPanel);
JLabel l=new JLabel();
tOpaque(true);
tBackground(Color。 YElloW);
tForeground(Color。black);
tBounds(0,0,2000,3000);
d(l);
JLabel l1=new JLabel();
tOpaque(true);
tBackground(Color。 BLUE);
tForegroun...全部
public void paint(){
JPane drawPanel=new JPane(); /////
JScrollPane sc=new JScrollPane(drawPanel);
JLabel l=new JLabel();
tOpaque(true);
tBackground(Color。
YElloW);
tForeground(Color。black);
tBounds(0,0,2000,3000);
d(l);
JLabel l1=new JLabel();
tOpaque(true);
tBackground(Color。
BLUE);
tForeground(Color。black);
tBound(100,200,40,50);
d(l1);
}
。收起