24 |
|
|
25 |
import java.awt.*; |
import java.awt.*; |
26 |
import java.awt.event.*; |
import java.awt.event.*; |
|
import java.awt.font.*; |
|
|
import java.awt.geom.*; |
|
|
import java.awt.image.*; |
|
27 |
|
|
28 |
import javax.swing.*; |
import javax.swing.*; |
|
import javax.swing.event.*; |
|
|
import javax.swing.plaf.*; |
|
|
import javax.swing.plaf.basic.*; |
|
|
import javax.swing.plaf.metal.MetalLookAndFeel; |
|
29 |
import javax.swing.tree.*; |
import javax.swing.tree.*; |
30 |
import javax.swing.border.*; |
import javax.swing.border.*; |
31 |
|
|
32 |
import java.net.URL; |
import java.net.URL; |
|
import java.util.*; |
|
33 |
|
|
34 |
public class Demo |
public class Demo |
35 |
{ |
{ |
139 |
|
|
140 |
JMenu examples = new JMenu("Examples"); |
JMenu examples = new JMenu("Examples"); |
141 |
new PopUpAction("Buttons", |
new PopUpAction("Buttons", |
142 |
mkPanel(new JComponent[] |
(new ButtonDemo("Button Demo")).createContent(), |
|
{mkBigButton("mango"), |
|
|
mkBigButton("guava"), |
|
|
mkBigButton("lemon")}), |
|
143 |
examples); |
examples); |
144 |
|
|
145 |
new PopUpAction("Toggles", |
new PopUpAction("Toggles", |
170 |
examples); |
examples); |
171 |
|
|
172 |
new PopUpAction("Scrollbar", |
new PopUpAction("Scrollbar", |
173 |
mkScrollBar(), |
(new ScrollBarDemo("ScrollBarDemo")).createContent(), |
174 |
examples); |
examples); |
175 |
|
|
176 |
new PopUpAction("Viewport", |
new PopUpAction("Viewport", |
178 |
examples); |
examples); |
179 |
|
|
180 |
new PopUpAction("ScrollPane", |
new PopUpAction("ScrollPane", |
181 |
mkScrollPane(mkBigButton("Scroll Me!")), |
mkScrollPane(mkBigButton("Scroll Me!")), |
182 |
examples); |
examples); |
183 |
|
|
184 |
new PopUpAction("TabPane", |
new PopUpAction("TabPane", |
185 |
mkTabs(new String[] {"happy", |
mkTabs(new String[] {"happy", |
200 |
examples); |
examples); |
201 |
|
|
202 |
new PopUpAction("ComboBox", |
new PopUpAction("ComboBox", |
203 |
mkComboBox(new String[] {"Stop", |
(new ComboBoxDemo("ComboBox Demo")).createContent(), |
|
"Software", |
|
|
"Hoarders", |
|
|
"Support", |
|
|
"GNU!"}), |
|
204 |
examples); |
examples); |
205 |
|
|
206 |
new PopUpAction("Editor", |
new PopUpAction("Editor", |
1006 |
panel.setLayout(new FlowLayout()); |
panel.setLayout(new FlowLayout()); |
1007 |
|
|
1008 |
new PopUpAction("Buttons", |
new PopUpAction("Buttons", |
1009 |
mkPanel(new JComponent[] |
(new ButtonDemo("Button Demo")).createContent(), |
|
{mkBigButton("mango"), |
|
|
mkBigButton("guava"), |
|
|
mkBigButton("lemon")}), |
|
1010 |
panel); |
panel); |
1011 |
|
|
1012 |
new PopUpAction("Toggles", |
new PopUpAction("Toggles", |
1022 |
panel); |
panel); |
1023 |
|
|
1024 |
new PopUpAction("Slider", |
new PopUpAction("Slider", |
1025 |
mkSliders(), |
(new SliderDemo("Slider Demo")).createContent(), |
1026 |
panel); |
panel); |
1027 |
|
|
1028 |
new PopUpAction("List", |
new PopUpAction("List", |
1037 |
panel); |
panel); |
1038 |
|
|
1039 |
new PopUpAction("Scrollbar", |
new PopUpAction("Scrollbar", |
1040 |
mkScrollBar(), |
(new ScrollBarDemo("ScrollBar Demo")).createContent(), |
1041 |
panel); |
panel); |
1042 |
|
|
1043 |
new PopUpAction("Viewport", |
new PopUpAction("Viewport", |
1067 |
panel); |
panel); |
1068 |
|
|
1069 |
new PopUpAction("ComboBox", |
new PopUpAction("ComboBox", |
1070 |
mkComboBox(new String[] {"Stop", |
(new ComboBoxDemo("ComboBox Demo")).createContent(), |
|
"Software", |
|
|
"Hoarders", |
|
|
"Support", |
|
|
"GNU!"}), |
|
1071 |
panel); |
panel); |
1072 |
|
|
1073 |
new PopUpAction("Editor", |
new PopUpAction("Editor", |