blob: 1e59200377357ce43c691190cf6ce3812da27ace (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
package javax.swing.plaf.basic;
import javax.swing.plaf.*;
import javax.swing.*;
import java.awt.*;
public class BasicViewportUI extends ViewportUI
{
public static ComponentUI createUI(final JComponent c)
{
return new BasicViewportUI();
}
public void installUI(final JComponent c)
{
super.installUI(c);
}
public Dimension getPreferredSize(JComponent c)
{
Dimension d = new Dimension(100,100);
System.out.println("BasicViewportUI->preff->"+d);
return d;
}
public void paint(Graphics g, JComponent c)
{
System.out.println("BasicViewportUI->paint->"+c);
}
}
|