/** * Creates a ScrollButton. * * @param type one of the four values - NORTH, SOUTH, WEST, EAST as defined in SwingConstants. */ public ScrollButton(int type) { _type = type; switch (type) { case SwingConstants.NORTH: setIcon(JideIconsFactory.getImageIcon(JideIconsFactory.Arrow.UP)); break; case SwingConstants.SOUTH: setIcon(JideIconsFactory.getImageIcon(JideIconsFactory.Arrow.DOWN)); break; case SwingConstants.WEST: setIcon(JideIconsFactory.getImageIcon(JideIconsFactory.Arrow.LEFT)); break; case SwingConstants.EAST: setIcon(JideIconsFactory.getImageIcon(JideIconsFactory.Arrow.RIGHT)); break; } addActionListener(this); addMouseListener(this); setPreferredSize(new Dimension(10, 10)); setMinimumSize(new Dimension(10, 10)); }
public void addDocument(String path) { if (!(new File(path)).exists()) { JOptionPane.showMessageDialog(this, "Error opening file: \"" + path + "\""); return; } JComponent editor = createTextArea(path); editor.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 14)); final DocumentComponent txtDocument = new DocumentComponent(new JScrollPane(editor), path, path, JideIconsFactory.getImageIcon(JideIconsFactory.FileType.TEXT)); txtDocument.setDefaultFocusComponent(editor); list.add(0,txtDocument); pane.setOpenedDocuments(list); pane.getLayoutPersistence().setProfileKey("documents"); pane.getLayoutPersistence().loadLayoutData(); this.pack(); this.setVisible(true); }
public void addDocument(String path) { if (!(new File(path)).exists()) { JOptionPane.showMessageDialog(this, "Error opening file: \"" + path + "\""); return; } JComponent editor = createTextArea(path); editor.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 14)); final DocumentComponent txtDocument = new DocumentComponent(new JScrollPane(editor), path, path, JideIconsFactory.getImageIcon(JideIconsFactory.FileType.TEXT)); txtDocument.setDefaultFocusComponent(editor); list.add(0,txtDocument); pane.setOpenedDocuments(list); pane.getLayoutPersistence().setProfileKey("documents"); pane.getLayoutPersistence().loadLayoutData(); this.pack(); this.setVisible(true); }
"PopupMenuSeparator.background", menuBackground, "CheckBoxMenuItem.checkIcon", new MenuCheckIcon(JideIconsFactory.getImageIcon(JideIconsFactory.MENU_CHECKBOX_VSNET)), "CheckBoxMenuItem.selectionBackground", menuSelectionBackground, "CheckBoxMenuItem.selectionForeground", menuTextColor,
"PopupMenuSeparator.background", menuBackground, "CheckBoxMenuItem.checkIcon", new MenuCheckIcon(JideIconsFactory.getImageIcon(JideIconsFactory.MENU_CHECKBOX_VSNET)), "CheckBoxMenuItem.selectionBackground", menuSelectionBackground, "CheckBoxMenuItem.selectionForeground", menuTextColor,
"DockableFrame.usingMacStandardIcons", Boolean.TRUE, "DockableFrame.defaultIcon", JideIconsFactory.getImageIcon(JideIconsFactory.DockableFrame.BLANK), "DockableFrame.background", defaultBackgroundColor, "DockableFrame.border", new BorderUIResource(BorderFactory.createLineBorder(Color.lightGray, 1)),
"PopupMenuSeparator.background", defaultShadowColor, "CheckBoxMenuItem.checkIcon", new MenuCheckIcon(JideIconsFactory.getImageIcon(JideIconsFactory.MENU_CHECKBOX_ECLIPSE)), "CheckBoxMenuItem.selectionBackground", selectionBackgroundColor, "CheckBoxMenuItem.selectionForeground", selectionTextColor,
"PopupMenuSeparator.background", menuBackground, "CheckBoxMenuItem.checkIcon", new MenuCheckIcon(JideIconsFactory.getImageIcon(JideIconsFactory.MENU_CHECKBOX_VSNET)), "CheckBoxMenuItem.selectionBackground", menuSelectionBackground, "CheckBoxMenuItem.selectionForeground", menuTextColor,