/** Populate searchers. */ private void populateSearchers() { JMenu searchersMenu = this.searchersMenu; searchersMenu.removeAll(); final ToolsSettings settings = ToolsSettings.getInstance(); Collection<SearchEngine> searchEngines = settings.getSearchEngines(); SearchEngine selectedEngine = settings.getSelectedSearchEngine(); if (searchEngines != null) { for (SearchEngine se : searchEngines) { final SearchEngine finalSe = se; JRadioButtonMenuItem item = new JRadioButtonMenuItem(); item.setAction( new AbstractAction() { private static final long serialVersionUID = 1L; @Override public void actionPerformed(ActionEvent e) { settings.setSelectedSearchEngine(finalSe); settings.save(); ComponentSource.this.updateSearchButtonTooltip(); } }); item.setSelected(se == selectedEngine); item.setText(se.getName()); item.setToolTipText(se.getDescription()); searchersMenu.add(item); } } }
/** * Loads the menu with the available look and feels for the application * * @return l and f menu */ JMenu buildLookAndFeelMenu() { String activeLookAndFeelName = UIManager.getLookAndFeel().getName(); // ButtonGroup buttonGroup = new ButtonGroup(); JMenu lfMenu = new JMenu(); lfMenu.setText(rb.getString("Menu.LookAndFeel.Name")); lfMenu.setMnemonic(jgnash.ui.util.Resource.getMnemonic("Menu.LookAndFeel.Mnemonic")); lfMenu.add(buildSubstanceMenu()); List<String> lookAndFeels = new ArrayList<>(); for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) { if (isLookAndFeelAvailable(info.getClassName())) { lookAndFeels.add(info.getClassName()); } } for (String lookAndFeel : KNOWN) { if (isLookAndFeelAvailable(lookAndFeel)) { lookAndFeels.add(lookAndFeel); } } Collections.sort(lookAndFeels); for (String lookAndFeel : lookAndFeels) { try { Class<?> lnfClass = Class.forName(lookAndFeel); LookAndFeel newLAF = (LookAndFeel) lnfClass.newInstance(); JRadioButtonMenuItem button = new JRadioButtonMenuItem(); button.setText(newLAF.getName()); button.setActionCommand(lookAndFeel); button.setName(newLAF.getName()); button.addActionListener( e -> { Preferences pref = Preferences.userNodeForPackage(ThemeManager.class); pref.put(LF, e.getActionCommand()); restartUI(); }); lfButtonGroup.add(button); lfMenu.add(button); if (newLAF.getName().equals(activeLookAndFeelName)) { button.setSelected(true); } } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) { Logger.getLogger(ThemeManager.class.getName()).log(Level.WARNING, null, e); } } return lfMenu; }
private static JRadioButtonMenuItem createLookAndFeelItem( String lafName, String lafClassName, final ButtonGroup lookAndFeelRadioGroup) { JRadioButtonMenuItem lafItem = new JRadioButtonMenuItem(); lafItem.setSelected(lafClassName.equals(lookAndFeel)); lafItem.setHideActionText(true); lafItem.setAction( new AbstractAction() { @Override public void actionPerformed(ActionEvent e) { ButtonModel m = lookAndFeelRadioGroup.getSelection(); try { setLookAndFeel(m.getActionCommand()); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) { ex.printStackTrace(); } } }); lafItem.setText(lafName); lafItem.setActionCommand(lafClassName); lookAndFeelRadioGroup.add(lafItem); return lafItem; }
/** * This method initializes jRadioButtonMenuItem1 * * @return JRadioButtonMenuItem */ private JRadioButtonMenuItem getJRadioButtonMenuItem1() { if (jRadioButtonMenuItem1 == null) { jRadioButtonMenuItem1 = new JRadioButtonMenuItem(); jRadioButtonMenuItem1.setText("System"); jRadioButtonMenuItem1.setMnemonic(java.awt.event.KeyEvent.VK_Y); jRadioButtonMenuItem1.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_Y, java.awt.Event.ALT_MASK, false)); jRadioButtonMenuItem1.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { changeLnF(UIManager.getSystemLookAndFeelClassName()); } }); } return jRadioButtonMenuItem1; }
/** * This method initializes jRadioButtonMenuItem * * @return JRadioButtonMenuItem */ private JRadioButtonMenuItem getJRadioButtonMenuItem() { if (jRadioButtonMenuItem == null) { jRadioButtonMenuItem = new JRadioButtonMenuItem(); jRadioButtonMenuItem.setText("Default"); jRadioButtonMenuItem.setSelected(true); jRadioButtonMenuItem.setAccelerator( javax.swing.KeyStroke.getKeyStroke( java.awt.event.KeyEvent.VK_D, java.awt.Event.ALT_MASK, false)); jRadioButtonMenuItem.setMnemonic(java.awt.event.KeyEvent.VK_D); jRadioButtonMenuItem.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { changeLnF(UIManager.getCrossPlatformLookAndFeelClassName()); } }); } return jRadioButtonMenuItem; }
private JRadioButtonMenuItem getJRadioButtonMenuItemUpdateAddress() { if (jRadioButtonMenuItemUpdateAddress == null) { jRadioButtonMenuItemUpdateAddress = new JRadioButtonMenuItem(); jRadioButtonMenuItemUpdateAddress.setText("Details"); jRadioButtonMenuItemUpdateAddress.addActionListener( new ActionListener() { public void actionPerformed(final ActionEvent e) { final String id = (String) jTableAddressModel.getValueAt(row, 0); // product // number final Address address = AddressController.getAddress(id); new JDialogAddress(customer, address, CRUDOperationEnum.UPDATE); refillAddressView(); } }); } return jRadioButtonMenuItemUpdateAddress; }
private JRadioButtonMenuItem getJRadioButtonMenuItemUpdateContact() { if (jRadioButtonMenuItemUpdateContact == null) { jRadioButtonMenuItemUpdateContact = new JRadioButtonMenuItem(); jRadioButtonMenuItemUpdateContact.setText("Details"); jRadioButtonMenuItemUpdateContact.addActionListener( new ActionListener() { public void actionPerformed(final ActionEvent e) { final String id = (String) jTableContactsModel.getValueAt(row, 0); // contact // number final Contact contact = ContactController.getContact(id); new JDialogContact(customer, contact, CRUDOperationEnum.UPDATE); refillContactsView(); } }); } return jRadioButtonMenuItemUpdateContact; }
private JRadioButtonMenuItem getJRadioButtonMenuItemDeleteContact() { if (jRadioButtonMenuItemDeleteContact == null) { jRadioButtonMenuItemDeleteContact = new JRadioButtonMenuItem(); jRadioButtonMenuItemDeleteContact.setText("Verwijderen"); jRadioButtonMenuItemDeleteContact.addActionListener( new ActionListener() { public void actionPerformed(final ActionEvent e) { final String id = (String) jTableContactsModel.getValueAt(row, 0); // contact final int response = JOptionPaneItemRemove.confirm(" contact " + id); if (response == JOptionPane.YES_OPTION) { ContactController.removeContact(id); refillContactsView(); } } }); } return jRadioButtonMenuItemDeleteContact; }
private JMenu buildSubstanceMenu() { LookAndFeel lf = UIManager.getLookAndFeel(); JMenu substanceMenu = new JMenu(rb.getString("Menu.SubstanceThemes.Name")); for (SkinInfo info : SubstanceLookAndFeel.getAllSkins().values()) { JRadioButtonMenuItem button = new JRadioButtonMenuItem(); button.setText(info.getDisplayName()); button.setActionCommand(info.getClassName()); // add the button to the global look and feel lfButtonGroup.add(button); button.addActionListener( e -> { Preferences pref = Preferences.userNodeForPackage(ThemeManager.class); pref.put(LF, e.getActionCommand()); restartUI(); }); substanceMenu.add(button); // select the button as the active L&F if it is the current skin if (lf instanceof SubstanceLookAndFeel) { if (SubstanceLookAndFeel.getCurrentSkin() .getClass() .getName() .equals(info.getClassName())) { button.setSelected(true); } } } return substanceMenu; }
JMenu buildThemeMenu() { Preferences pref = Preferences.userNodeForPackage(ThemeManager.class); String currentTheme = pref.get(THEME, DEFAULT_THEME); themesMenu = new JMenu(); themesMenu.setText(rb.getString("Menu.Themes.Name")); themesMenu.setMnemonic(jgnash.ui.util.Resource.getMnemonic("Menu.Themes.Mnemonic")); ButtonGroup themeButtonGroup = new ButtonGroup(); buildThemeList(); JRadioButtonMenuItem button; for (Object aThemeList : themeList) { MetalTheme theme = (MetalTheme) aThemeList; button = new JRadioButtonMenuItem(); button.setText(theme.getName()); button.setActionCommand(theme.getClass().getName()); button.addActionListener( e -> { Preferences pref1 = Preferences.userNodeForPackage(ThemeManager.class); pref1.put(THEME, e.getActionCommand()); restartUI(); }); themeButtonGroup.add(button); themesMenu.add(button); if (aThemeList.getClass().getName().equals(currentTheme)) { button.setSelected(true); } } refreshThemesState(); return themesMenu; }
private void jbInit() throws Exception { borderForProjectView = BorderFactory.createLineBorder(Color.black, 2); titleBoderForProjectView = new TitledBorder(borderForProjectView, "Project view"); borderForEntitiesView = BorderFactory.createLineBorder(Color.black, 2); titledBorderForEntitiesView = new TitledBorder(borderForEntitiesView, "Entities view"); titledBorderForMessagesPane = new TitledBorder( BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)), "Messages"); this.getContentPane().setLayout(borderLayout2); file.setText("File"); save.setEnabled(false); save.setText("Save"); save.setName("Savefilemenu"); save.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { save_actionPerformed(e); } }); load.setText("Load"); load.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { load_actionPerformed(e); } }); this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE); this.setJMenuBar(mainMenuBar); this.setTitle("INGENIAS Development Kit"); this.setSize(625, 470); this.addWindowListener( new java.awt.event.WindowAdapter() { public void windowClosed(WindowEvent e) { this_windowClosed(e); } public void windowClosing(WindowEvent e) { this_windowClosing(e); } }); splitPaneSeparatingProjectsAndEntitiesView.setOrientation(JSplitPane.VERTICAL_SPLIT); splitPaneSeparatingProjectsAndEntitiesView.setBottomComponent(scrollPaneForEntitiesView); splitPaneSeparatingProjectsAndEntitiesView.setTopComponent(scrollPaneForProyectView); jPanel1.setLayout(gridLayout1); arbolObjetos.addMouseListener( new java.awt.event.MouseAdapter() { public void mouseClicked(MouseEvent e) { arbolObjetos_mouseClicked(e); } }); scrollPaneForProyectView.setAutoscrolls(true); scrollPaneForProyectView.setBorder(titleBoderForProjectView); scrollPaneForEntitiesView.setBorder(titledBorderForEntitiesView); edit.setText("Edit"); copyImage.setText("Copy diagram as a file"); copyImage.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { capture_actionPerformed(e); } }); saveas.setText("Save as"); saveas.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { saveas_actionPerformed(e); } }); help.setText("Help"); manual.setText("Tool manual"); manual.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { manual_actionPerformed(e); } }); about.setText("About"); about.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { about_actionPerformed(e); } }); project.setText("Project"); copy.setText("Copy"); copy.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { copy_actionPerformed(e); } }); paste.setText("Paste"); paste.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { paste_actionPerformed(e); } }); exit.setText("Exit"); exit.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { exit_actionPerformed(e); } }); splitPanelDiagramMessagesPaneSeparator.setOrientation(JSplitPane.VERTICAL_SPLIT); splitPanelDiagramMessagesPaneSeparator.setLastDividerLocation(150); pprin.setLayout(new BorderLayout()); pprin.setName("DiagramPane"); pprin.setPreferredSize(new Dimension(400, 300)); pprin.add(BorderLayout.SOUTH, pbar); pbar.setVisible(false); jSplitPane1.setOrientation(JSplitPane.HORIZONTAL_SPLIT); scrollLogs.setBorder(titledBorderForMessagesPane); scrollLogs.addKeyListener( new java.awt.event.KeyAdapter() { public void keyPressed(KeyEvent e) { jScrollPane3_keyPressed(e); } }); this.clearMessages.setText("Clear"); clearMessages.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { clearMessages_actionPerformed(e, (JTextPane) messagesMenu.getInvoker()); } }); forcegc.setText("Force GC"); forcegc.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { forcegc_actionPerformed(e); } }); menuTools.setText("Tools"); menuCodeGenerator.setText("Code Generator"); profiles.setText("Profiles"); menuModules.setText("Modules"); this.properties.setText("Properties"); properties.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { properties_actionPerformed(e); } }); moutput.setEditable(false); moutput.setSelectionStart(0); moutput.setText(""); moduleOutput.addMouseListener( new java.awt.event.MouseAdapter() { public void mouseClicked(MouseEvent e) { moduleOutput_mouseClicked(e); } }); moduleOutput.setFont(new java.awt.Font("Monospaced", 0, 11)); logs.setContentType("text/html"); logs.setEditable(false); logs.setText(""); logs.addMouseListener( new java.awt.event.MouseAdapter() { public void mouseClicked(MouseEvent e) { logs_mouseClicked(e); } }); logs.addComponentListener( new java.awt.event.ComponentAdapter() { public void componentResized(ComponentEvent e) { logs_componentResized(e); } }); newProject.setText("New"); newProject.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { newProject_actionPerformed(e); } }); undo.setText("Undo"); undo.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { undo_actionPerformed(e); } }); redo.setText("Redo"); redo.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { redo_actionPerformed(e); } }); delete.setText("Delete"); delete.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { delete_actionPerformed(e); } }); selectall.setText("Select all"); selectall.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { selectall_actionPerformed(e); } }); cpClipboard.setText("Copy diagram to clipboard"); cpClipboard.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { cpClipboard_actionPerformed(e); } }); preferences.setText("Preferences"); enableUMLView.setToolTipText("UML view" + "instead of its type"); enableUMLView.setText("Enable UML view from now on"); enableUMLView.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { enableUMLView_actionPerformed(e); } }); enableINGENIASView.setToolTipText("INGENIAS view"); enableINGENIASView.setText("Enable INGENIAS view from now on"); enableINGENIASView.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { enableINGENIASView_actionPerformed(e); } }); switchINGENIASView.setToolTipText("Switch to INGENIAS view"); switchINGENIASView.setText("Switch to INGENIAS view"); switchINGENIASView.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { switchINGENIASView_actionPerformed(e); } }); switchUMLView.setToolTipText("Switch to UML view"); switchUMLView.setText("Switch to UML view"); switchUMLView.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { switchUMLView_actionPerformed(e); } }); resizeAll.setToolTipText("Resize all"); resizeAll.setText("Resize all entities within current diagram"); resizeAll.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { resizeAll_actionPerformed(e); } }); resizeAllDiagrams.setToolTipText("Resize all diagrams"); resizeAllDiagrams.setText("Resize all entities within all defined diagram"); resizeAllDiagrams.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { resizeAllDiagrams_actionPerformed(e); } }); JMenuItem workspaceEntry = new JMenuItem("Switch workspace"); workspaceEntry.setToolTipText("Change current workspace"); workspaceEntry.setText("Switch workspace"); workspaceEntry.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { changeWorkspace(e); } }); preferences.add(workspaceEntry); preferences.add(resizeAll); preferences.add(resizeAllDiagrams); { elimOverlap = new JMenuItem(); preferences.add(elimOverlap); elimOverlap.setText("Eliminate overlap"); elimOverlap.setAccelerator(KeyStroke.getKeyStroke("F3")); elimOverlap.addMenuKeyListener( new MenuKeyListener() { public void menuKeyPressed(MenuKeyEvent evt) { System.out.println("elimOverlap.menuKeyPressed, event=" + evt); // TODO add your code for elimOverlap.menuKeyPressed } public void menuKeyReleased(MenuKeyEvent evt) { System.out.println("elimOverlap.menuKeyReleased, event=" + evt); // TODO add your code for elimOverlap.menuKeyReleased } public void menuKeyTyped(MenuKeyEvent evt) { elimOverlapMenuKeyTyped(evt); } }); elimOverlap.addKeyListener( new KeyAdapter() { public void keyPressed(KeyEvent evt) { elimOverlapKeyPressed(evt); } }); elimOverlap.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent evt) { elimOverlapActionPerformed(evt); } }); } { modelingLanguageNotationSwitchMenu = new JMenu(); preferences.add(modelingLanguageNotationSwitchMenu); modelingLanguageNotationSwitchMenu.setText("Modelling language"); modelingLanguageNotationSwitchMenu.add(enableINGENIASView); viewSelection.add(enableINGENIASView); modelingLanguageNotationSwitchMenu.add(enableUMLView); viewSelection.add(enableUMLView); enableINGENIASView.setSelected(true); modelingLanguageNotationSwitchMenu.add(switchUMLView); modelingLanguageNotationSwitchMenu.add(switchINGENIASView); } { propertiesModeMenu = new JMenu(); preferences.add(propertiesModeMenu); propertiesModeMenu.setText("Edit Properties Mode"); { editPopUpProperties = new JCheckBoxMenuItem(); propertiesModeMenu.add(editPopUpProperties); editPopUpProperties.setText("Edit Properties in a PopUp Window"); editPopUpProperties.setSelected(true); editPopUpProperties.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) { editPopUpProperties_selected(); } }); propertiesEditModeSelection.add(editPopUpProperties); } { editOnMessages = new JCheckBoxMenuItem(); propertiesModeMenu.add(editOnMessages); editOnMessages.setText("Edit Properties in Messages Panel"); propertiesEditModeSelection.add(editOnMessages); editOnMessages.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) { editOnMessages_selected(); } }); } } mainMenuBar.add(file); mainMenuBar.add(edit); mainMenuBar.add(project); mainMenuBar.add(menuModules); mainMenuBar.add(profiles); mainMenuBar.add(preferences); mainMenuBar.add(help); file.add(newProject); file.add(load); { importFile = new JMenuItem(); file.add(importFile); importFile.setText("Import file"); importFile.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent evt) { importFileActionPerformed(evt); } }); } file.add(save); file.add(saveas); file.addSeparator(); file.add(exit); file.addSeparator(); rightPanel.setLayout(new BorderLayout()); rightPanel.add(buttonModelPanel, BorderLayout.WEST); this.getContentPane().add(jSplitPane1, BorderLayout.CENTER); rightPanel.add(splitPanelDiagramMessagesPaneSeparator, BorderLayout.CENTER); jSplitPane1.add(splitPaneSeparatingProjectsAndEntitiesView, JSplitPane.LEFT); splitPaneSeparatingProjectsAndEntitiesView.add(scrollPaneForProyectView, JSplitPane.TOP); { jPanel2 = new JPanel(); BorderLayout jPanel2Layout = new BorderLayout(); jPanel2.setLayout(jPanel2Layout); splitPaneSeparatingProjectsAndEntitiesView.add(jPanel2, JSplitPane.BOTTOM); jPanel2.add(jPanel1, BorderLayout.SOUTH); jPanel2.add(scrollPaneForEntitiesView, BorderLayout.CENTER); } jSplitPane1.add(rightPanel, JSplitPane.RIGHT); splitPanelDiagramMessagesPaneSeparator.add(pprin, JSplitPane.TOP); splitPanelDiagramMessagesPaneSeparator.add(messagespane, JSplitPane.BOTTOM); JScrollPane scrollSearchDiagram = new JScrollPane(); scrollSearchDiagram.getViewport().add(searchDiagramPanel, null); searchDiagramPanel.setContentType("text/html"); searchDiagramPanel.setEditable(false); messagespane.addConventionalTab(scrollLogs, "Logs"); scrollLogs.getViewport().add(logs, null); scrolloutput.getViewport().add(this.moduleOutput, null); messagespane.addConventionalTab(scrolloutput, "Module Output"); messagespane.addConventionalTab(scrollSearchDiagram, "Search"); scrolloutput.getViewport().add(moduleOutput, null); { searchPanel = new JPanel(); FlowLayout searchPanelLayout = new FlowLayout(); searchPanelLayout.setVgap(1); searchPanel.setLayout(searchPanelLayout); jPanel1.add(searchPanel, BorderLayout.SOUTH); searchPanel.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED)); { searchField = new JTextField(); searchPanel.add(searchField); searchField.setColumns(15); searchField.addKeyListener( new KeyAdapter() { public void keyTyped(KeyEvent evt) { searchFieldKeyTyped(evt); } }); } { Search = new JButton(); scrollPaneForProyectView.setViewportView(arbolProyectos); scrollPaneForEntitiesView.setViewportView(arbolObjetos); searchPanel.add(Search); Search.setIcon(new ImageIcon(ImageLoader.getImage(("images/lense.png")))); // Search.setPreferredSize(new java.awt.Dimension(20, 20)); Search.setIconTextGap(0); Search.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent evt) { SearchActionPerformed(evt); } }); } } edit.add(undo); edit.add(redo); edit.addSeparator(); edit.add(copy); edit.add(paste); edit.add(delete); edit.add(selectall); edit.addSeparator(); edit.add(copyImage); edit.add(cpClipboard); help.add(manual); help.add(about); help.add(forcegc); menuModules.add(menuTools); menuModules.add(menuCodeGenerator); messagesMenu.add(this.clearMessages); project.add(this.properties); project.addSeparator(); jSplitPane1.setDividerLocation(250); splitPaneSeparatingProjectsAndEntitiesView.setDividerLocation(250); arbolProyectos.addMouseListener( new java.awt.event.MouseAdapter() { public void mouseClicked(MouseEvent e) { arbolProyectos_mouseClicked(e); } }); splitPanelDiagramMessagesPaneSeparator.setDividerLocation(400); }