/** * Create a new JTitledPanel with the given String as the title, and the * given Container as the content panel. * * @param title * @param content */ public JXTitledPanel(String title, Container content) { setTitle(title); setContentContainer(content); }
jXTitledPanel1.setTitle(bundle.getString("editor")); // NOI18N jXTitledPanel1.setTitleFont(jXTitledPanel1.getTitleFont().deriveFont(jXTitledPanel1.getTitleFont().getStyle() | java.awt.Font.BOLD)); jXTitledPanel1.getContentContainer().setLayout(new java.awt.BorderLayout());
/** * Create a new JTitledPanel with the given String as the title, and the * given Container as the content panel. * * @param title * @param content */ public JXTitledPanel(String title, Container content) { setTitle(title); setContentContainer(content); }
setTitle("Select New Value"); mainPanel.setTitle(listTitle); mainPanel.setTitleFont(new java.awt.Font("SansSerif", 1, 14));
/** * Create a new JTitledPanel with the given String as the title, and the * given Container as the content panel. * * @param title * @param content */ public JXTitledPanel(String title, Container content) { setTitle(title); setContentContainer(content); }
.add(0, 237, Short.MAX_VALUE)); jXTitledPanel1.setTitle("Default Visual Properties"); jXTitledPanel1.setTitleFont(new Font("SansSerif", Font.BOLD, 12)); jXTitledPanel1.setPreferredSize(new Dimension(LIST_WIDTH, 300));
/** * Create a new JTitledPanel with the given String as the title, and the * given Container as the content panel. * * @param title * @param content */ public JXTitledPanel(String title, Container content) { setTitle(title); setContentContainer(content); }
/** * Create a new JTitledPanel with the given String as the title, and the * given Container as the content panel. * * @param title * @param content */ public JXTitledPanel(String title, Container content) { setTitle(title); setContentContainer(content); }
private ValueSelectDialog(VisualPropertyType type, Window parent, boolean modal) { super(Cytoscape.getDesktop(), modal); final Toolkit toolkit = this.getToolkit(); final Dimension screenSize = toolkit.getScreenSize(); height = (int) (screenSize.getHeight() * 0.7); this.type = type; iconMap = this.type.getVisualProperty().getIconSet(); initComponents(); setList(); // Special case handling // TODO: Create more user-friendly GUI only for Custom Graphics. if (type.equals(NODE_CUSTOM_GRAPHICS_1)) { this.iconList.setFixedCellHeight(ICON_CELL_HEIGHT); this.listTitle = "Custom Graphics"; } else { this.listTitle = type.getName(); } mainPanel.setTitle(listTitle); // get original value and set the selected item. if (type.isNodeProp()) originalValue = Cytoscape.getVisualMappingManager() .getVisualStyle().getNodeAppearanceCalculator() .getDefaultAppearance().get(type); else originalValue = Cytoscape.getVisualMappingManager() .getVisualStyle().getEdgeAppearanceCalculator() .getDefaultAppearance().get(type); }