本文整理汇总了Java中org.protege.editor.owl.OWLEditorKit类的典型用法代码示例。如果您正苦于以下问题:Java OWLEditorKit类的具体用法?Java OWLEditorKit怎么用?Java OWLEditorKit使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OWLEditorKit类属于org.protege.editor.owl包,在下文中一共展示了OWLEditorKit类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SuggestionsTable
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public SuggestionsTable(OWLEditorKit editorKit){
super(new SuggestionsTableModel());
progressRenderer = new ProgressBarTableCellRenderer();
progressRenderer.setBackground(getBackground());
getColumn(0).setCellRenderer(progressRenderer);
OWLCellRenderer owlRenderer = new OWLCellRenderer(editorKit, false, false);
owlRenderer.setHighlightKeywords(true);
owlRenderer.setHighlightUnsatisfiableClasses(false);
owlRenderer.setHighlightUnsatisfiableProperties(false);
owlRenderer.setWrap(false);
getColumn(2).setCellRenderer(owlRenderer);
setColumnSizes();
Comparator<Integer> comparator = Integer::compareTo;
getColumnExt(0).setComparator(comparator);
}
示例2: SKOSEntityCreationPanel
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public SKOSEntityCreationPanel(OWLEditorKit owlEditorKit, String message, Class type) {
super(owlEditorKit, message, type);
this.owlEditorKit = owlEditorKit;
this.type = type;
this.conceptSchemeClass = owlEditorKit.getModelManager().getOWLDataFactory().getOWLClass(SKOSRDFVocabulary.CONCEPTSCHEME.getURI());
this.conceptClass = owlEditorKit.getModelManager().getOWLDataFactory().getOWLClass(SKOSRDFVocabulary.CONCEPT.getURI());
this.inScheme = owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.INSCHEME.getURI());
schemaBox = ConceptSchemeComboBox.getConceptSchemeComboBox(owlEditorKit);
if(!ConceptSchemeComboBox.getConceptSchemes(owlEditorKit).isEmpty()) {
JPanel schemeSelector = new JPanel(new BorderLayout(4,4));
JLabel jLabel = new JLabel("Choose a Concept Scheme for this Concept");
jLabel.setBorder(new EmptyBorder(2,10,2,2));
schemeSelector.add(jLabel, BorderLayout.NORTH);
schemeSelector.add(schemaBox, BorderLayout.CENTER);
add(schemeSelector);
}
}
示例3: getConceptSchemeComboBox
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public static JComboBox getConceptSchemeComboBox(OWLEditorKit owlEditorKit) {
final Comparator<OWLIndividual> comp = owlEditorKit.getModelManager().getOWLObjectComparator();
List<OWLIndividual> sorted;
Collections.sort(sorted = new ArrayList<OWLIndividual>(getConceptSchemes(owlEditorKit)), new OWLObjectComparatorAdapter<OWLIndividual>(comp) {
public int compare(OWLIndividual o1, OWLIndividual o2) {
return super.compare(o1,o2);
}
});
JComboBox schemaBox = new JComboBox(sorted.toArray());
schemaBox.setRenderer(new OWLCellRendererSimple(owlEditorKit));
if(!getConceptSchemes(owlEditorKit).isEmpty()) {
schemaBox.setSelectedIndex(0);
}
return schemaBox;
}
示例4: SKOSObjectPropertyAssertionsFrame
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public SKOSObjectPropertyAssertionsFrame(OWLEditorKit owlEditorKit) {
super(owlEditorKit.getModelManager().getOWLOntologyManager());
Set<OWLObjectProperty> filetrProps = new HashSet<OWLObjectProperty>(7);
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.RELATED.getURI()), "SKOS related assertion", con1 = new SKOSConceptSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.RELATED.getURI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.INSCHEME.getURI()), "SKOS in scheme assertion", cons1 = new SKOSConceptSchemeSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.INSCHEME.getURI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.TOPCONCEPTOF.getURI()), "SKOS top concept of assertion", cons2 = new SKOSConceptSchemeSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.TOPCONCEPTOF.getURI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.BROADMATCH.getURI()), "SKOS broad match assertion", con2 = new SKOSConceptSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.BROADMATCH.getURI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.NARROWMATCH.getURI()), "SKOS narrow match assertion", con3 = new SKOSConceptSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.NARROWMATCH.getURI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.RELATEDMATCH.getURI()), "SKOS related match assertion", con4 = new SKOSConceptSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.RELATEDMATCH.getURI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.EXACTMATCH.getURI()), "SKOS exact match assertion", con5 = new SKOSConceptSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSRDFVocabulary.EXACTMATCH.getURI()));
addSection(new SKOSOtherObjectPropertyAssertionAxiomFrameSection(owlEditorKit, this, filetrProps));
// addSection(new OWLDataPropertyAssertionAxiomFrameSection(owlEditorKit, this));
// addSection(new OWLNegativeObjectPropertyAssertionFrameSection(owlEditorKit, this));
// addSection(new OWLNegativeDataPropertyAssertionFrameSection(owlEditorKit, this));
}
示例5: SKOSDataPropertyAssertionsFrame
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public SKOSDataPropertyAssertionsFrame(OWLEditorKit owlEditorKit) {
super(owlEditorKit.getModelManager().getOWLOntologyManager());
Set<OWLDataProperty> filterProps = new HashSet<OWLDataProperty>(7);
addSection(new SKOSDataPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSRDFVocabulary.PREFLABEL.getURI()), "SKOS preferred label"));
filterProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSRDFVocabulary.PREFLABEL.getURI()));
addSection(new SKOSDataPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSRDFVocabulary.NOTATION .getURI()), "SKOS notation"));
filterProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSRDFVocabulary.NOTATION.getURI()));
addSection(new SKOSDataPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSRDFVocabulary.ALTLABEL.getURI()), "SKOS alternate label"));
filterProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSRDFVocabulary.ALTLABEL.getURI()));
addSection(new SKOSDataPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSRDFVocabulary.HIDDENLABEL.getURI()), "SKOS hidden label"));
filterProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSRDFVocabulary.HIDDENLABEL.getURI()));
addSection(new SKOSOtherDataPropertyAssertionAxiomFrameSection(owlEditorKit, this, filterProps));
// addSection(new OWLDataPropertyAssertionAxiomFrameSection(owlEditorKit, this));
// addSection(new OWLNegativeObjectPropertyAssertionFrameSection(owlEditorKit, this));
// addSection(new OWLNegativeDataPropertyAssertionFrameSection(owlEditorKit, this));
}
示例6: getConceptSchemeComboBox
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public static JComboBox getConceptSchemeComboBox(OWLEditorKit owlEditorKit) {
final Comparator<OWLObject> comp = owlEditorKit.getModelManager().getOWLObjectComparator();
List<OWLIndividual> sorted;
Collections.sort(sorted = new ArrayList<OWLIndividual>(getConceptSchemes(owlEditorKit)), new OWLObjectComparatorAdapter<OWLIndividual>(comp) {
public int compare(OWLIndividual o1, OWLIndividual o2) {
return super.compare(o1,o2);
}
});
JComboBox schemaBox = new JComboBox(sorted.toArray());
schemaBox.setRenderer(new OWLCellRendererSimple(owlEditorKit));
if(!getConceptSchemes(owlEditorKit).isEmpty()) {
schemaBox.setSelectedIndex(0);
}
return schemaBox;
}
示例7: SKOSObjectPropertyAssertionsFrame
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public SKOSObjectPropertyAssertionsFrame(OWLEditorKit owlEditorKit) {
super(owlEditorKit.getModelManager().getOWLOntologyManager());
Set<OWLObjectProperty> filetrProps = new HashSet<OWLObjectProperty>(7);
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(
owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.RELATED.getIRI()), "SKOS related assertion", con1 = new SKOSConceptSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.RELATED.getIRI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.INSCHEME.getIRI()), "SKOS in scheme assertion", cons1 = new SKOSConceptSchemeSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.INSCHEME.getIRI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.TOPCONCEPTOF.getIRI()), "SKOS top concept of assertion", cons2 = new SKOSConceptSchemeSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.TOPCONCEPTOF.getIRI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.BROADMATCH.getIRI()), "SKOS broad match assertion", con2 = new SKOSConceptSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.BROADMATCH.getIRI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.NARROWMATCH.getIRI()), "SKOS narrow match assertion", con3 = new SKOSConceptSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.NARROWMATCH.getIRI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.RELATEDMATCH.getIRI()), "SKOS related match assertion", con4 = new SKOSConceptSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.RELATEDMATCH.getIRI()));
addSection(new SKOSRelatedPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.EXACTMATCH.getIRI()), "SKOS exact match assertion", con5 = new SKOSConceptSelectorPanel(owlEditorKit, ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)));
filetrProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLObjectProperty(SKOSVocabulary.EXACTMATCH.getIRI()));
addSection(new SKOSOtherObjectPropertyAssertionAxiomFrameSection(owlEditorKit, this, filetrProps));
// addSection(new OWLDataPropertyAssertionAxiomFrameSection(owlEditorKit, this));
// addSection(new OWLNegativeObjectPropertyAssertionFrameSection(owlEditorKit, this));
// addSection(new OWLNegativeDataPropertyAssertionFrameSection(owlEditorKit, this));
}
示例8: SKOSDataPropertyAssertionsFrame
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public SKOSDataPropertyAssertionsFrame(OWLEditorKit owlEditorKit) {
super(owlEditorKit.getModelManager().getOWLOntologyManager());
Set<OWLDataProperty> filterProps = new HashSet<OWLDataProperty>(7);
// addSection(new SKOSDataPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSVocabulary.PREFLABEL.getIRI()), "SKOS preferred label"));
// filterProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSVocabulary.PREFLABEL.getIRI()));
addSection(new SKOSDataPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSVocabulary.NOTATION .getIRI()), "SKOS notation"));
filterProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSVocabulary.NOTATION.getIRI()));
// addSection(new SKOSDataPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSVocabulary.ALTLABEL.getIRI()), "SKOS alternate label"));
// filterProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSVocabulary.ALTLABEL.getIRI()));
// addSection(new SKOSDataPropertyAssertionAxiomFrameSection(owlEditorKit, this, owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSVocabulary.HIDDENLABEL.getIRI()), "SKOS hidden label"));
// filterProps.add(owlEditorKit.getModelManager().getOWLDataFactory().getOWLDataProperty(SKOSVocabulary.HIDDENLABEL.getIRI()));
addSection(new SKOSOtherDataPropertyAssertionAxiomFrameSection(owlEditorKit, this, filterProps));
// addSection(new OWLDataPropertyAssertionAxiomFrameSection(owlEditorKit, this));
// addSection(new OWLNegativeObjectPropertyAssertionFrameSection(owlEditorKit, this));
// addSection(new OWLNegativeDataPropertyAssertionFrameSection(owlEditorKit, this));
}
示例9: OOPSTreeCellRenderer
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public OOPSTreeCellRenderer(OWLEditorKit owlEditorKit, boolean renderExpression, boolean renderIcon) {
this.owlEditorKit = owlEditorKit;
this.renderExpression = renderExpression;
this.renderIcon = renderIcon;
this.equivalentObjects = new HashSet<>();
iconComponent.setOpaque(false);
textPane = new JTextPane();
textPane.setOpaque(false);
renderingComponent = new OWLCellRendererPanel(new OWLCellRendererLayoutManager());
renderingComponent.add(iconComponent);
renderingComponent.add(textPane);
entityColorProviders = new ArrayList<>();
OWLEntityColorProviderPluginLoader loader = new OWLEntityColorProviderPluginLoader(getOWLModelManager());
for (OWLEntityColorProviderPlugin plugin : loader.getPlugins()) {
try {
OWLEntityColorProvider prov = plugin.newInstance();
prov.initialise();
entityColorProviders.add(prov);
}
catch (Exception e) {
logger.error("An error occurred whilst trying to load an OWLEntityColorProviderPlugin", e);
}
}
crossedOutEntities = new HashSet<>();
unsatisfiableNames = new HashSet<>();
boxedNames = new HashSet<>();
prepareStyles();
setupFont();
}
示例10: CheckBoxCellRenderer
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public CheckBoxCellRenderer(OWLEditorKit owlEditorKit) {
super();
this.setLayout(new BorderLayout());
checkBox = new JCheckBox();
add(checkBox, BorderLayout.CENTER);
setOpaque(false);
}
示例11: OWLCellRenderer
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public OWLCellRenderer(OWLEditorKit owlEditorKit, boolean renderExpression, boolean renderIcon) {
this.owlEditorKit = owlEditorKit;
this.renderExpression = renderExpression;
this.renderIcon = renderIcon;
this.equivalentObjects = new HashSet<>();
iconLabel = new JLabel("");
iconLabel.setOpaque(false);
iconLabel.setVerticalAlignment(SwingConstants.CENTER);
textPane = new JTextPane();
textPane.setOpaque(false);
renderingComponent = new OWLCellRendererPanel(new OWLCellRendererLayoutManager());
renderingComponent.add(iconLabel);
renderingComponent.add(textPane);
entityColorProviders = new ArrayList<>();
OWLEntityColorProviderPluginLoader loader = new OWLEntityColorProviderPluginLoader(getOWLModelManager());
for (OWLEntityColorProviderPlugin plugin : loader.getPlugins()) {
try {
OWLEntityColorProvider prov = plugin.newInstance();
prov.initialise();
entityColorProviders.add(prov);
} catch (Exception e) {
logger.error("An error occurred whilst trying to load an OWLEntityColorProviderPlugin", e);
}
}
crossedOutEntities = new HashSet<>();
unsatisfiableNames = new HashSet<>();
boxedNames = new HashSet<>();
prepareStyles();
setupFont();
}
示例12: GraphicalCoverageTextField
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public GraphicalCoverageTextField(EvaluatedDescription desc, OWLEditorKit editorKit) {
this.setContentType("text/html");
this.setEditable(false);
//textScroll = new JScrollPane(
// JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
// JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
this.setBackground(editorKit.getOWLWorkspace().getOWLComponentFactory().getOWLClassSelectorPanel().getBackground());
this.description = desc;
}
开发者ID:SmartDataAnalytics,项目名称:DL-Learner-Protege-Plugin,代码行数:10,代码来源:GraphicalCoverageTextField.java
示例13: DLLearnerView
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public DLLearnerView(OWLEditorKit editorKit, OWLEntity entity, AxiomType axiomType) {
this.editorKit = editorKit;
this.entity = entity;
this.axiomType = axiomType;
createUI();
}
示例14: MoreDetailForSuggestedConceptsPanel
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public MoreDetailForSuggestedConceptsPanel(OWLEditorKit editorKit) {
super();
setLayout(new GridLayout(1, 2));
setPreferredSize(new Dimension(WIDTH, HEIGHT));
graphicalPanel = new GraphicalCoveragePanel(eval);
graphicalText = new GraphicalCoverageTextField(eval, editorKit);
graphicalPanel.setBounds(5, 0, 300, 370);
add(graphicalPanel, BorderLayout.CENTER);
add(graphicalText.getTextScroll(), BorderLayout.EAST);
}
开发者ID:SmartDataAnalytics,项目名称:DL-Learner-Protege-Plugin,代码行数:11,代码来源:MoreDetailForSuggestedConceptsPanel.java
示例15: SuggestClassPanel
import org.protege.editor.owl.OWLEditorKit; //导入依赖的package包/类
public SuggestClassPanel(OWLEditorKit editorKit) {
super();
this.setLayout(new BorderLayout());
// renders scroll bars if necessary
suggestScroll = new JScrollPane(
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
suggestionTable = new SuggestionsTable(editorKit);
suggestionTable.setVisibleRowCount(6);
suggestScroll.setViewportView(suggestionTable);
add(BorderLayout.CENTER, suggestScroll);
}