KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > test > java > hints > CreateFieldException


1 package org.netbeans.test.java.hints;
2
3 import java.awt.Dimension JavaDoc;
4 import java.awt.Insets JavaDoc;
5 import javax.swing.JComboBox JavaDoc;
6 import javax.swing.JComponent JavaDoc;
7 import javax.swing.JLabel JavaDoc;
8
9 public class CreateFieldException extends JLabel JavaDoc{
10     
11     public CreateFieldException() {
12     }
13     
14     public Dimension JavaDoc getPreferredSize(JComponent JavaDoc c) {
15         JComboBox JavaDoc jcb = (JComboBox JavaDoc) c;
16         Object JavaDoc o = jcb.getPrototypeDisplayValue();
17         Insets JavaDoc ins = ren.getInsets();
18         
19     }
20     
21 }
22
Popular Tags