List of usage examples for javax.swing JLayeredPane JLayeredPane
public JLayeredPane()
From source file:com.t3.client.ui.T3Frame.java
public T3Frame(JMenuBar menuBar) { // Set up the frame super(AppConstants.APP_NAME); this.menuBar = menuBar; setDefaultCloseOperation(DO_NOTHING_ON_CLOSE); addWindowListener(this); setSize(WINDOW_WIDTH, WINDOW_HEIGHT); SwingUtil.centerOnScreen(this); setFocusTraversalPolicy(new T3FocusTraversalPolicy()); try {//from w ww. j a v a2 s. co m setIconImage(ImageUtil.getImage(MINILOGO_IMAGE)); } catch (IOException ioe) { String msg = I18N.getText("msg.error.loadingIconImage"); log.error(msg, ioe); System.err.println(msg); } // Notify duration initializeNotifyDuration(); // Components glassPane = new GlassPane(); assetPanel = createAssetPanel(); connectionPanel = createConnectionPanel(); toolbox = new Toolbox(); initiativePanel = createInitiativePanel(); zoneRendererList = new CopyOnWriteArrayList<ZoneRenderer>(); pointerOverlay = new PointerOverlay(); colorPicker = new ColorPicker(this); textureChooserPanel = new TextureChooserPanel(colorPicker.getPaintChooser(), assetPanel.getModel(), "imageExplorerTextureChooser"); colorPicker.getPaintChooser().addPaintChooser(textureChooserPanel); String credits = ""; String version = ""; Image logo = null; try { credits = new String(FileUtil.loadResource(CREDITS_HTML), "UTF-8"); // 2nd param of type Charset is Java6+ version = TabletopTool.getVersion(); credits = credits.replace("%VERSION%", version); logo = ImageUtil.getImage(T3_LOGO_IMAGE); } catch (Exception ioe) { log.error(I18N.getText("msg.error.credits"), ioe); ioe.printStackTrace(); } aboutDialog = new AboutDialog(this, logo, credits); aboutDialog.setSize(354, 400); statusPanel = new StatusPanel(); statusPanel.addPanel(getCoordinateStatusBar()); statusPanel.addPanel(getZoomStatusBar()); statusPanel.addPanel(MemoryStatusBar.getInstance()); // statusPanel.addPanel(progressBar); statusPanel.addPanel(connectionStatusPanel); statusPanel.addPanel(activityMonitor); statusPanel.addPanel(new SpacerStatusBar(25)); zoneRendererPanel = new JPanel(new PositionalLayout(5)); zoneRendererPanel.setBackground(Color.black); // zoneRendererPanel.add(zoneMiniMapPanel, PositionalLayout.Position.SE); // zoneRendererPanel.add(getChatTypingLabel(), PositionalLayout.Position.NW); zoneRendererPanel.add(getChatTypingPanel(), PositionalLayout.Position.NW); zoneRendererPanel.add(getChatActionLabel(), PositionalLayout.Position.SW); commandPanel = new CommandPanel(); TabletopTool.getMessageList().addObserver(commandPanel); rendererBorderPanel = new JPanel(new GridLayout()); rendererBorderPanel.setBorder(BorderFactory.createLineBorder(Color.darkGray)); rendererBorderPanel.add(zoneRendererPanel); // Put it all together setJMenuBar(menuBar); add(BorderLayout.NORTH, new ToolbarPanel(toolbox)); add(BorderLayout.SOUTH, statusPanel); JLayeredPane glassPaneComposite = new JLayeredPane(); glassPaneComposite.setLayout(new GridBagLayout()); GridBagConstraints constraints = new GridBagConstraints(); constraints.gridx = 1; constraints.gridy = 1; constraints.fill = GridBagConstraints.BOTH; constraints.weightx = 1; constraints.weighty = 1; glassPaneComposite.add(glassPane, constraints); glassPaneComposite.add(dragImageGlassPane, constraints); setGlassPane(glassPane); // setGlassPane(glassPaneComposite); glassPaneComposite.setVisible(true); if (!TabletopTool.MAC_OS_X) removeWindowsF10(); else registerForMacOSXEvents(); TabletopTool.getEventDispatcher().addListener(this, TabletopTool.ZoneEvent.Activated); restorePreferences(); updateKeyStrokes(); // This will cause the frame to be set to visible (BAD jide, BAD! No cookie for you!) configureDocking(); new WindowPreferences(AppConstants.APP_NAME, "mainFrame", this); chatTyperObserver = new ChatTyperObserver(); chatTyperTimers = new ChatNotificationTimers(); chatTyperTimers.addObserver(chatTyperObserver); chatTimer = getChatTimer(); setChatTypingLabelColor(AppPreferences.getChatNotificationColor()); }
From source file:org.esa.beam.visat.toolviews.stat.StatisticsPanel.java
@Override protected void initComponents() { init = true;//w w w .j a va 2 s. co m initHashMaps(); statsSpreadsheet = null; statisticsCriteriaPanel = new StatisticsCriteriaPanel(getParentDialogContentPane()); final JPanel rightPanel = getRightPanel(); final ImageIcon collapseIcon = UIUtils.loadImageIcon("icons/PanelRight12.png"); final ImageIcon collapseRolloverIcon = ToolButtonFactory.createRolloverIcon(collapseIcon); final ImageIcon expandIcon = UIUtils.loadImageIcon("icons/PanelLeft12.png"); final ImageIcon expandRolloverIcon = ToolButtonFactory.createRolloverIcon(expandIcon); hideAndShowButton = ToolButtonFactory.createButton(collapseIcon, false); hideAndShowButton.setToolTipText("Collapse Options Panel"); hideAndShowButton.setName("switchToChartButton"); hideAndShowButton.addActionListener(new ActionListener() { public boolean rightPanelShown; @Override public void actionPerformed(ActionEvent e) { rightPanel.setVisible(rightPanelShown); if (rightPanelShown) { hideAndShowButton.setIcon(collapseIcon); hideAndShowButton.setRolloverIcon(collapseRolloverIcon); hideAndShowButton.setVisible(true); hideAndShowButton.setToolTipText("Collapse Options Panel"); } else { hideAndShowButton.setIcon(expandIcon); hideAndShowButton.setRolloverIcon(expandRolloverIcon); hideAndShowButton.setVisible(true); hideAndShowButton.setToolTipText("Expand Options Panel"); } rightPanelShown = !rightPanelShown; } }); hideAndShowButton.setVisible(true); contentPanel = new JPanel(new GridLayout(-1, 1)); contentPanel.setBackground(Color.WHITE); contentPanel.addMouseListener(popupHandler); contentScrollPane = new JScrollPane(contentPanel); contentScrollPane.setBorder(null); contentScrollPane.setBackground(Color.WHITE); spreadsheetPanel = new JPanel(new GridLayout(-1, 1)); // spreadsheetPanel.setBackground(Color.WHITE); spreadsheetPanel.addMouseListener(popupHandler); spreadsheetScrollPane = new JScrollPane(spreadsheetPanel); spreadsheetScrollPane.setBorder(null); // spreadsheetScrollPane.setBackground(Color.WHITE); spreadsheetScrollPane.setMinimumSize(new Dimension(100, 100)); spreadsheetScrollPane.setBorder(UIUtils.createGroupBorder("Statistics Spreadsheet")); spreadsheetScrollPane.setVisible(statisticsCriteriaPanel.showStatsSpreadSheet()); leftPanel = new JPanel(new GridBagLayout()); // GridBagConstraints gbcLeftPanel = new GridBagConstraints(); // GridBagUtils.addToPanel(leftPanel, contentScrollPane, gbcLeftPanel, "fill=BOTH, weightx=1.0, weighty=1.0, anchor=NORTHWEST"); // GridBagUtils.addToPanel(leftPanel, spreadsheetScrollPane, gbcLeftPanel, "fill=BOTH, weightx=1.0, weighty=0.0, anchor=NORTHWEST, gridy=1,insets.top=5"); initLeftPanel(); backgroundPanel = new JPanel(new GridBagLayout()); GridBagConstraints gbc = new GridBagConstraints(); GridBagUtils.addToPanel(backgroundPanel, leftPanel, gbc, "fill=BOTH, weightx=1.0, weighty=1.0, anchor=NORTHWEST,insets.right=5"); // GridBagUtils.addToPanel(backgroundPanel, contentScrollPane, gbc, "fill=BOTH, weightx=1.0, weighty=1.0, anchor=NORTHWEST"); // GridBagUtils.addToPanel(backgroundPanel, spreadsheetScrollPane, gbc, "fill=BOTH, weightx=1.0, weighty=1.0, anchor=NORTHWEST, gridy=1"); GridBagUtils.addToPanel(backgroundPanel, rightPanel, gbc, "gridx=1,gridy=0, fill=BOTH, weightx=0.0,anchor=NORTHEAST,insets.left=5"); // GridBagUtils.addToPanel(backgroundPanel, spreadsheetScrollPane, gbcLeftPanel, "fill=HORIZONTAL, weightx=1.0, weighty=1.0, anchor=NORTHWEST, gridy=1,gridx=0,gridwidth=2,insets.top=5"); JLayeredPane layeredPane = new JLayeredPane(); layeredPane.add(backgroundPanel, new Integer(0)); layeredPane.add(hideAndShowButton, new Integer(1)); add(layeredPane); int minWidth = leftPanel.getMinimumSize().width + rightPanel.getMinimumSize().width; int minHeight = Math.max(leftPanel.getMinimumSize().height, rightPanel.getMinimumSize().height); setMinimumSize(new Dimension(minWidth, minHeight)); }
From source file:net.rptools.maptool.client.ui.MapToolFrame.java
public MapToolFrame(JMenuBar menuBar) { // Set up the frame super(AppConstants.APP_NAME); this.menuBar = menuBar; setDefaultCloseOperation(DO_NOTHING_ON_CLOSE); addWindowListener(this); setSize(WINDOW_WIDTH, WINDOW_HEIGHT); SwingUtil.centerOnScreen(this); setFocusTraversalPolicy(new MapToolFocusTraversalPolicy()); try {/*from w w w.j a v a2 s . c o m*/ setIconImage(ImageUtil.getImage(MINILOGO_IMAGE)); } catch (IOException ioe) { String msg = I18N.getText("msg.error.loadingIconImage"); log.error(msg, ioe); System.err.println(msg); } // Notify duration initializeNotifyDuration(); // Components glassPane = new GlassPane(); assetPanel = createAssetPanel(); connectionPanel = createConnectionPanel(); toolbox = new Toolbox(); initiativePanel = createInitiativePanel(); zoneRendererList = new CopyOnWriteArrayList<ZoneRenderer>(); pointerOverlay = new PointerOverlay(); colorPicker = new ColorPicker(this); textureChooserPanel = new TextureChooserPanel(colorPicker.getPaintChooser(), assetPanel.getModel(), "imageExplorerTextureChooser"); colorPicker.getPaintChooser().addPaintChooser(textureChooserPanel); String credits = ""; String version = ""; Image logo = null; try { credits = new String(FileUtil.loadResource(CREDITS_HTML), "UTF-8"); // 2nd param of type Charset is Java6+ version = MapTool.getVersion(); credits = credits.replace("%VERSION%", version); logo = ImageUtil.getImage(MAPTOOL_LOGO_IMAGE); } catch (Exception ioe) { log.error(I18N.getText("msg.error.credits"), ioe); ioe.printStackTrace(); } aboutDialog = new AboutDialog(this, logo, credits); aboutDialog.setSize(354, 400); statusPanel = new StatusPanel(); statusPanel.addPanel(getCoordinateStatusBar()); statusPanel.addPanel(getZoomStatusBar()); statusPanel.addPanel(MemoryStatusBar.getInstance()); // statusPanel.addPanel(progressBar); statusPanel.addPanel(connectionStatusPanel); statusPanel.addPanel(activityMonitor); statusPanel.addPanel(new SpacerStatusBar(25)); zoneMiniMapPanel = new ZoneMiniMapPanel(); zoneMiniMapPanel.setSize(100, 100); zoneRendererPanel = new JPanel(new PositionalLayout(5)); zoneRendererPanel.setBackground(Color.black); // zoneRendererPanel.add(zoneMiniMapPanel, PositionalLayout.Position.SE); // zoneRendererPanel.add(getChatTypingLabel(), PositionalLayout.Position.NW); zoneRendererPanel.add(getChatTypingPanel(), PositionalLayout.Position.NW); zoneRendererPanel.add(getChatActionLabel(), PositionalLayout.Position.SW); commandPanel = new CommandPanel(); MapTool.getMessageList().addObserver(commandPanel); rendererBorderPanel = new JPanel(new GridLayout()); rendererBorderPanel.setBorder(BorderFactory.createLineBorder(Color.darkGray)); rendererBorderPanel.add(zoneRendererPanel); // Put it all together setJMenuBar(menuBar); add(BorderLayout.NORTH, new ToolbarPanel(toolbox)); add(BorderLayout.SOUTH, statusPanel); JLayeredPane glassPaneComposite = new JLayeredPane(); glassPaneComposite.setLayout(new GridBagLayout()); GridBagConstraints constraints = new GridBagConstraints(); constraints.gridx = 1; constraints.gridy = 1; constraints.fill = GridBagConstraints.BOTH; constraints.weightx = 1; constraints.weighty = 1; glassPaneComposite.add(glassPane, constraints); glassPaneComposite.add(dragImageGlassPane, constraints); setGlassPane(glassPane); // setGlassPane(glassPaneComposite); glassPaneComposite.setVisible(true); if (!MapTool.MAC_OS_X) removeWindowsF10(); else registerForMacOSXEvents(); MapTool.getEventDispatcher().addListener(this, MapTool.ZoneEvent.Activated); restorePreferences(); updateKeyStrokes(); // This will cause the frame to be set to visible (BAD jide, BAD! No cookie for you!) configureDocking(); new WindowPreferences(AppConstants.APP_NAME, "mainFrame", this); chatTyperObserver = new ChatTyperObserver(); chatTyperTimers = new ChatNotificationTimers(); chatTyperTimers.addObserver(chatTyperObserver); chatTimer = getChatTimer(); setChatTypingLabelColor(AppPreferences.getChatNotificationColor()); }
From source file:de.main.sessioncreator.DesktopApplication1View.java
/** This method is called from within the constructor to * initialize the form.// ww w . j av a2 s . co m * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { mainPanel = new JLayeredPane(); UIManager.put("TabbedPane.selected", Color.green); wizardPanel = new javax.swing.JPanel(); mainPanel.setLayer(wizardPanel, 3); WizardToolbar = new javax.swing.JToolBar(); wizardbtntopNew = new javax.swing.JButton(); wizardbtntopSave = new javax.swing.JButton(); jSeparator2 = new javax.swing.JToolBar.Separator(); wizardbtntopBack = new javax.swing.JButton(); wizardbtntopNext = new javax.swing.JButton(); jSeparator1 = new javax.swing.JToolBar.Separator(); wizardbtntopStart = new javax.swing.JButton(); wizardbtntopStop = new javax.swing.JButton(); wizardtabp = new javax.swing.JTabbedPane(); welcomePanel = new javax.swing.JPanel(); wizardLblWelcome = new javax.swing.JLabel(); wizardLblChooseName = new javax.swing.JLabel(); wizardLblpathTodo = new javax.swing.JLabel(); wizardTfPathTodo = new javax.swing.JTextField(); wizardhCkBxSubfolder = new javax.swing.JCheckBox(); wizardLblPathSubmitted = new javax.swing.JLabel(); wizardTfPathSubmitted = new javax.swing.JTextField(); wizardCmbxTester = new javax.swing.JComboBox(); wizardbtnRefreshTester = new javax.swing.JButton(); wizardChckBxSecondTester = new javax.swing.JCheckBox(); wizardCmbxMoreTester = new javax.swing.JComboBox(); charterPanel = new javax.swing.JPanel(); wizardLblChooseCharter = new javax.swing.JLabel(); wizardCmbxCharter = new javax.swing.JComboBox(); wizardScrollPCharterInfo = new javax.swing.JScrollPane(); wizardtaPreviewCharter = new javax.swing.JTextArea(); wizardChckBxNewCharter = new javax.swing.JCheckBox(); jScrollPane1 = new javax.swing.JScrollPane(); wizardtaNewCharter = new javax.swing.JTextArea(); areasPanel = new javax.swing.JPanel(); wizardtabpAreas = new javax.swing.JTabbedPane(); jScrollPane4 = new javax.swing.JScrollPane(); jList2 = new javax.swing.JList(); jScrollPane5 = new javax.swing.JScrollPane(); jList3 = new javax.swing.JList(); jScrollPane2 = new javax.swing.JScrollPane(); jList1 = new javax.swing.JList(); wizardjScrollPaneAreas = new javax.swing.JScrollPane(); wizardtaChoosenAreas = new javax.swing.JTextArea(); wizardLblchooseArea = new javax.swing.JLabel(); wizardLblpathToCoverageini = new javax.swing.JLabel(); wizardtfCoverageini = new javax.swing.JTextField(); wizardbtnRefreshAreas = new javax.swing.JButton(); wizardbtnRemoveArea = new javax.swing.JButton(); wizardbtnAddAreas = new javax.swing.JButton(); wizardbtnSaveTodo = new javax.swing.JButton(); testsessionPanel = new javax.swing.JPanel(); wizardLblstartTime = new javax.swing.JLabel(); wizardPanelTaskBreakd = new javax.swing.JPanel(); wizardLblDuration = new javax.swing.JLabel(); wizardLblDesignExecution = new javax.swing.JLabel(); wizardLblSetup = new javax.swing.JLabel(); wizardLblChartervs = new javax.swing.JLabel(); wizardtfDuration = new javax.swing.JTextField(); wizardtfSessionSetup = new javax.swing.JTextField(); wizardLblBugReporting = new javax.swing.JLabel(); wizardtfBugInvestigation = new javax.swing.JTextField(); wizardtfCharter = new javax.swing.JTextField(); wizardLblSlash = new javax.swing.JLabel(); wizardtfOpportunity = new javax.swing.JTextField(); wizardLblStopfield = new javax.swing.JLabel(); wizardtfTestDesignExecution = new javax.swing.JTextField(); wizardLblvs = new javax.swing.JLabel(); wizardLblOpportunity = new javax.swing.JLabel(); wizardPanelTestsessionAreas = new javax.swing.JPanel(); wizardScrollPaneAreas = new javax.swing.JScrollPane(); wizardtaTestsessionAreas = new javax.swing.JTextArea(); wizardLblcharterHeadline = new javax.swing.JLabel(); wizardLblStart = new javax.swing.JLabel(); wizardLblTester = new javax.swing.JLabel(); wizardTabpDetailsDTBIR = new javax.swing.JTabbedPane(); wizardScrollPaneDataFiles = new javax.swing.JScrollPane(); wizardtaDataFiles = new javax.swing.JTextArea(); wizardScrollPaneTestNotes = new javax.swing.JScrollPane(); wizardtaTestNotes = new javax.swing.JTextArea(); wizardScrollPaneBugs = new javax.swing.JScrollPane(); wizardtaBugs = new javax.swing.JTextArea(); wizardScrollPaneIssues = new javax.swing.JScrollPane(); wizardtaIssues = new javax.swing.JTextArea(); wizardScrollPaneReview = new javax.swing.JScrollPane(); wizardtaReview = new javax.swing.JTextArea(); wizardtfNameOfTester = new javax.swing.JTextField(); jScrollPane3 = new javax.swing.JScrollPane(); wizardtaCharterdynamic = new javax.swing.JTextArea(); wizardbtnBack = new javax.swing.JButton(); wizardbtnStart = new javax.swing.JButton(); wizardbtnStop = new javax.swing.JButton(); wizardbtnSave = new javax.swing.JButton(); wizardbtnNext = new javax.swing.JButton(); wizardbtnNew = new javax.swing.JButton(); viewReviewsPanel = new javax.swing.JPanel(); mainPanel.setLayer(viewReviewsPanel, 1); ReviewToolbar = new javax.swing.JToolBar(); reviewbtntopSave = new javax.swing.JButton(); jSeparator3 = new javax.swing.JToolBar.Separator(); reviewbtntopBack = new javax.swing.JButton(); reviewbtntopNext = new javax.swing.JButton(); reviewbtntopMove = new javax.swing.JButton(); reviewViewlabel = new javax.swing.JLabel(); reviewSessionsTabp = new javax.swing.JTabbedPane(); reviewToreviewSessionsPanel = new javax.swing.JPanel(); reviewCmbxSessiontoReview = new javax.swing.JComboBox(); reviewtoReviewPanel = new javax.swing.JPanel(); reviewViewPanel = new javax.swing.JPanel(); reviewLblStartTime = new javax.swing.JLabel(); reviewPaneTaskbreakdown = new javax.swing.JPanel(); reviewLblDuration = new javax.swing.JLabel(); reviewLblTestExecution = new javax.swing.JLabel(); reviewLblSetup = new javax.swing.JLabel(); reviewLblChartervs = new javax.swing.JLabel(); reviewtfDuration = new javax.swing.JTextField(); reviewtfSessionSetup = new javax.swing.JTextField(); reviewLblBugReporting = new javax.swing.JLabel(); reviewtfBugInvestigation = new javax.swing.JTextField(); reviewtfCharter = new javax.swing.JTextField(); reviewtfTestDesignExecution = new javax.swing.JTextField(); reviewLblvs = new javax.swing.JLabel(); reviewLblOpportunity = new javax.swing.JLabel(); reviewPanelTestsessionAreas = new javax.swing.JPanel(); reviewScrollPaneArea = new javax.swing.JScrollPane(); reviewtaTestsessionAreasReview = new javax.swing.JTextArea(); reviewCharterHeadlineLabel = new javax.swing.JLabel(); reviewLblStart = new javax.swing.JLabel(); reviewLblTester = new javax.swing.JLabel(); reviewTabpDTBIR = new javax.swing.JTabbedPane(); reviewScrollPaneDatafile = new javax.swing.JScrollPane(); reviewtaDataFiles = new javax.swing.JTextArea(); reviewScrollPaneTestNotes = new javax.swing.JScrollPane(); reviewtaTestNotes = new javax.swing.JTextArea(); reviewScrollPaneBugs = new javax.swing.JScrollPane(); reviewedipaneBugs = new javax.swing.JEditorPane(); reviewScrollPaneIssues = new javax.swing.JScrollPane(); reviewtaIssues = new javax.swing.JTextArea(); reviewScrollPaneReview = new javax.swing.JScrollPane(); reviewtaReview = new javax.swing.JTextArea(); reviewtfNameOfTester = new javax.swing.JTextField(); jScrollPane6 = new javax.swing.JScrollPane(); reviewtaCharterdynamic = new javax.swing.JTextArea(); reviewbtnNext = new javax.swing.JButton(); reviewbtnBack = new javax.swing.JButton(); reviewbtnSave = new javax.swing.JButton(); reviewbtnMove = new javax.swing.JButton(); reportPanel = new javax.swing.JPanel(); mainPanel.setLayer(reportPanel, 2); reportChartPanel = new javax.swing.JPanel(); reportScrollPOverviewTabel = new javax.swing.JScrollPane(); reportOverviewTable = new javax.swing.JTable(); reportlblSum = new javax.swing.JLabel(); reportlblBug = new javax.swing.JLabel(); reportlblIssue = new javax.swing.JLabel(); menuBar = new javax.swing.JMenuBar(); javax.swing.JMenu fileMenu = new javax.swing.JMenu(); saveMenuItem = new javax.swing.JMenuItem(); javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem(); sessionMenu = new javax.swing.JMenu(); sessionWizardMenuItem = new javax.swing.JMenuItem(); reviewVieMenuItem = new javax.swing.JMenuItem(); sessionReportMenuItem = new javax.swing.JMenuItem(); javax.swing.JMenu helpMenu = new javax.swing.JMenu(); javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem(); helpMenuItem = new javax.swing.JMenuItem(); statusPanel = new javax.swing.JPanel(); javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator(); statusMessageLabel = new javax.swing.JLabel(); statusAnimationLabel = new javax.swing.JLabel(); progressBar = new javax.swing.JProgressBar(); wizardPopUpBugTab = new javax.swing.JPopupMenu(); wizardPopUpIssueTab = new javax.swing.JPopupMenu(); mainPanel.setMaximumSize(new java.awt.Dimension(990, 900)); mainPanel.setMinimumSize(new java.awt.Dimension(900, 500)); mainPanel.setName("mainPanel"); // NOI18N mainPanel.setPreferredSize(new java.awt.Dimension(990, 500)); wizardPanel.setMaximumSize(new java.awt.Dimension(990, 900)); wizardPanel.setMinimumSize(new java.awt.Dimension(990, 500)); wizardPanel.setName("wizardPanel"); // NOI18N wizardPanel.setPreferredSize(new java.awt.Dimension(990, 500)); WizardToolbar.setFloatable(false); WizardToolbar.setRollover(true); WizardToolbar.setName("WizardToolbar"); // NOI18N org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application .getInstance(de.main.sessioncreator.DesktopApplication1.class).getContext() .getResourceMap(DesktopApplication1View.class); wizardbtntopNew.setIcon(resourceMap.getIcon("wizardbtntopNew.icon")); // NOI18N wizardbtntopNew.setToolTipText(resourceMap.getString("wizardbtntopNew.toolTipText")); // NOI18N wizardbtntopNew.setDisabledIcon(resourceMap.getIcon("wizardbtntopNew.disabledIcon")); // NOI18N wizardbtntopNew.setFocusable(false); wizardbtntopNew.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT); wizardbtntopNew.setName("wizardbtntopNew"); // NOI18N wizardbtntopNew.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); wizardbtntopNew.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { wizardbtntopNewMouseClicked(evt); } }); WizardToolbar.add(wizardbtntopNew); javax.swing.ActionMap actionMap = org.jdesktop.application.Application .getInstance(de.main.sessioncreator.DesktopApplication1.class).getContext() .getActionMap(DesktopApplication1View.class, this); wizardbtntopSave.setAction(actionMap.get("saveTestsession")); // NOI18N wizardbtntopSave.setIcon(resourceMap.getIcon("wizardbtntopSave.icon")); // NOI18N wizardbtntopSave.setToolTipText(resourceMap.getString("wizardbtntopSave.toolTipText")); // NOI18N wizardbtntopSave.setDisabledIcon(resourceMap.getIcon("wizardbtntopSave.disabledIcon")); // NOI18N wizardbtntopSave.setFocusable(false); wizardbtntopSave.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT); wizardbtntopSave.setName("wizardbtntopSave"); // NOI18N wizardbtntopSave.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); wizardbtntopSave.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { wizardbtntopSaveMouseClicked(evt); } }); WizardToolbar.add(wizardbtntopSave); jSeparator2.setName("jSeparator2"); // NOI18N WizardToolbar.add(jSeparator2); wizardbtntopBack.setIcon(resourceMap.getIcon("wizardbtntopBack.icon")); // NOI18N wizardbtntopBack.setToolTipText(resourceMap.getString("wizardbtntopBack.toolTipText")); // NOI18N wizardbtntopBack.setDisabledIcon(resourceMap.getIcon("wizardbtntopBack.disabledIcon")); // NOI18N wizardbtntopBack.setEnabled(false); wizardbtntopBack.setFocusable(false); wizardbtntopBack.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); wizardbtntopBack.setName("wizardbtntopBack"); // NOI18N wizardbtntopBack.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); wizardbtntopBack.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { wizardbtntopBackActionPerformed(evt); } }); WizardToolbar.add(wizardbtntopBack); wizardbtntopNext.setIcon(resourceMap.getIcon("wizardbtntopNext.icon")); // NOI18N wizardbtntopNext.setToolTipText(resourceMap.getString("wizardbtntopNext.toolTipText")); // NOI18N wizardbtntopNext.setDisabledIcon(resourceMap.getIcon("wizardbtntopNext.disabledIcon")); // NOI18N wizardbtntopNext.setFocusable(false); wizardbtntopNext.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT); wizardbtntopNext.setMaximumSize(new java.awt.Dimension(23, 23)); wizardbtntopNext.setMinimumSize(new java.awt.Dimension(23, 23)); wizardbtntopNext.setName("wizardbtntopNext"); // NOI18N wizardbtntopNext.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { wizardbtntopNextActionPerformed(evt); } }); WizardToolbar.add(wizardbtntopNext); jSeparator1.setName("jSeparator1"); // NOI18N WizardToolbar.add(jSeparator1); wizardbtntopStart.setIcon(resourceMap.getIcon("wizardbtntopStart.icon")); // NOI18N wizardbtntopStart.setToolTipText(resourceMap.getString("wizardbtntopStart.toolTipText")); // NOI18N wizardbtntopStart.setDisabledIcon(resourceMap.getIcon("wizardbtntopStart.disabledIcon")); // NOI18N wizardbtntopStart.setEnabled(false); wizardbtntopStart.setFocusable(false); wizardbtntopStart.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT); wizardbtntopStart.setName("wizardbtntopStart"); // NOI18N wizardbtntopStart.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); WizardToolbar.add(wizardbtntopStart); wizardbtntopStop.setIcon(resourceMap.getIcon("wizardbtntopStop.icon")); // NOI18N wizardbtntopStop.setToolTipText(resourceMap.getString("wizardbtntopStop.toolTipText")); // NOI18N wizardbtntopStop.setDisabledIcon(resourceMap.getIcon("wizardbtntopStop.disabledIcon")); // NOI18N wizardbtntopStop.setEnabled(false); wizardbtntopStop.setFocusable(false); wizardbtntopStop.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT); wizardbtntopStop.setName("wizardbtntopStop"); // NOI18N wizardbtntopStop.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); WizardToolbar.add(wizardbtntopStop); wizardtabp.setTabLayoutPolicy(javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT); wizardtabp.setName("jTabSessionWizard"); // NOI18N wizardtabp.setPreferredSize(new java.awt.Dimension(990, 552)); welcomePanel.setMaximumSize(new java.awt.Dimension(1000, 1000)); welcomePanel.setName("jPanelWelcome"); // NOI18N wizardLblWelcome.setFont(resourceMap.getFont("wizardLblWelcome.font")); // NOI18N wizardLblWelcome.setText(resourceMap.getString("wizardLblWelcome.text")); // NOI18N wizardLblWelcome.setName("wizardLblWelcome"); // NOI18N wizardLblChooseName.setText(resourceMap.getString("wizardLblChooseName.text")); // NOI18N wizardLblChooseName.setName("wizardLblChooseName"); // NOI18N wizardLblpathTodo.setText(resourceMap.getString("wizardLblpathTodo.text")); // NOI18N wizardLblpathTodo.setName("wizardLblpathTodo"); // NOI18N wizardTfPathTodo.setText(resourceMap.getString("jTxtFieldTodoSession.text")); // NOI18N wizardTfPathTodo.setName("jTxtFieldTodoSession"); // NOI18N wizardhCkBxSubfolder.setText(resourceMap.getString("jChckBxUnterordner.text")); // NOI18N wizardhCkBxSubfolder.setName("jChckBxUnterordner"); // NOI18N wizardLblPathSubmitted.setText(resourceMap.getString("wizardLblPathSubmitted.text")); // NOI18N wizardLblPathSubmitted.setName("wizardLblPathSubmitted"); // NOI18N wizardTfPathSubmitted.setText(resourceMap.getString("jTxtFieldSubmitted.text")); // NOI18N wizardTfPathSubmitted.setName("jTxtFieldSubmitted"); // NOI18N wizardCmbxTester.setName("wizardCmbxTester"); // NOI18N wizardbtnRefreshTester.setText(resourceMap.getString("wizardbtnRefreshTester.text")); // NOI18N wizardbtnRefreshTester.setName("wizardbtnRefreshTester"); // NOI18N wizardbtnRefreshTester.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButtonRefreshTester(evt); } }); wizardChckBxSecondTester.setText(resourceMap.getString("wizardChckBxSecondTester.text")); // NOI18N wizardChckBxSecondTester.setName("wizardChckBxSecondTester"); // NOI18N wizardCmbxMoreTester.setName("wizardCmbxMoreTester"); // NOI18N javax.swing.GroupLayout welcomePanelLayout = new javax.swing.GroupLayout(welcomePanel); welcomePanel.setLayout(welcomePanelLayout); welcomePanelLayout.setHorizontalGroup(welcomePanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(welcomePanelLayout.createSequentialGroup().addContainerGap().addGroup(welcomePanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(wizardLblWelcome) .addGroup(welcomePanelLayout.createSequentialGroup().addGroup( welcomePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(wizardLblpathTodo).addComponent(wizardLblPathSubmitted)) .addGap(18, 18, 18) .addGroup(welcomePanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(wizardTfPathTodo, javax.swing.GroupLayout.DEFAULT_SIZE, 561, Short.MAX_VALUE) .addComponent(wizardhCkBxSubfolder).addComponent(wizardTfPathSubmitted))) .addGroup(welcomePanelLayout.createSequentialGroup().addGroup( welcomePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(wizardLblChooseName).addComponent(wizardChckBxSecondTester)) .addGap(24, 24, 24) .addGroup(welcomePanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(wizardCmbxMoreTester, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(wizardCmbxTester, 0, 300, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(wizardbtnRefreshTester))) .addContainerGap(274, Short.MAX_VALUE))); welcomePanelLayout.setVerticalGroup(welcomePanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(welcomePanelLayout.createSequentialGroup().addContainerGap() .addComponent(wizardLblWelcome).addGap(11, 11, 11) .addGroup(welcomePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(wizardLblChooseName) .addComponent(wizardCmbxTester, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(wizardbtnRefreshTester)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(welcomePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(wizardChckBxSecondTester).addComponent(wizardCmbxMoreTester, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(26, 26, 26) .addGroup(welcomePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(wizardLblpathTodo).addComponent(wizardTfPathTodo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(wizardhCkBxSubfolder) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(welcomePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(wizardLblPathSubmitted).addComponent(wizardTfPathSubmitted, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(398, Short.MAX_VALUE))); wizardtabp.addTab(resourceMap.getString("jPanelWelcome.TabConstraints.tabTitle"), welcomePanel); // NOI18N charterPanel.setName("jPanelCharter"); // NOI18N wizardLblChooseCharter.setText(resourceMap.getString("wizardLblChooseCharter.text")); // NOI18N wizardLblChooseCharter.setName("wizardLblChooseCharter"); // NOI18N wizardCmbxCharter.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Select one" })); wizardCmbxCharter.setName("jComboBxCharter"); // NOI18N wizardCmbxCharter.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ChooseCharterjCombobox1(evt); } }); wizardScrollPCharterInfo.setName("wizardScrollPCharterInfo"); // NOI18N wizardtaPreviewCharter.setBackground(resourceMap.getColor("wizardtaPreviewCharter.background")); // NOI18N wizardtaPreviewCharter.setColumns(20); wizardtaPreviewCharter.setLineWrap(true); wizardtaPreviewCharter.setRows(5); wizardtaPreviewCharter.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); wizardtaPreviewCharter.setEnabled(false); wizardtaPreviewCharter.setName("wizardtaPreviewCharter"); // NOI18N wizardScrollPCharterInfo.setViewportView(wizardtaPreviewCharter); wizardChckBxNewCharter.setText(resourceMap.getString("wizardChckBxNewCharter.text")); // NOI18N wizardChckBxNewCharter.setToolTipText(resourceMap.getString("wizardChckBxNewCharter.toolTipText")); // NOI18N wizardChckBxNewCharter.setName("wizardChckBxNewCharter"); // NOI18N jScrollPane1.setName("jScrollPane1"); // NOI18N wizardtaNewCharter.setColumns(20); wizardtaNewCharter.setEditable(false); wizardtaNewCharter.setLineWrap(true); wizardtaNewCharter.setRows(5); wizardtaNewCharter.setWrapStyleWord(true); wizardtaNewCharter.setEnabled(false); wizardtaNewCharter.setName("wizardtaNewCharter"); // NOI18N jScrollPane1.setViewportView(wizardtaNewCharter); javax.swing.GroupLayout charterPanelLayout = new javax.swing.GroupLayout(charterPanel); charterPanel.setLayout(charterPanelLayout); charterPanelLayout.setHorizontalGroup(charterPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(charterPanelLayout.createSequentialGroup().addContainerGap() .addGroup(charterPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(wizardChckBxNewCharter).addComponent(wizardLblChooseCharter) .addComponent(wizardCmbxCharter, 0, 975, Short.MAX_VALUE) .addComponent(wizardScrollPCharterInfo, javax.swing.GroupLayout.DEFAULT_SIZE, 975, Short.MAX_VALUE) .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 975, Short.MAX_VALUE)) .addContainerGap())); charterPanelLayout.setVerticalGroup(charterPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(charterPanelLayout.createSequentialGroup().addContainerGap() .addComponent(wizardLblChooseCharter) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(wizardCmbxCharter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(wizardScrollPCharterInfo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18).addComponent(wizardChckBxNewCharter) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(304, Short.MAX_VALUE))); wizardtabp.addTab(resourceMap.getString("jPanelCharter.TabConstraints.tabTitle"), charterPanel); // NOI18N areasPanel.setName("areasPanel"); // NOI18N wizardtabpAreas.setTabLayoutPolicy(javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT); wizardtabpAreas.setToolTipText(resourceMap.getString("wizardtabpAreas.toolTipText")); // NOI18N wizardtabpAreas.setName("wizardtabpAreas"); // NOI18N jScrollPane4.setName("jScrollPane4"); // NOI18N jList2.setName("jList2"); // NOI18N jScrollPane4.setViewportView(jList2); wizardtabpAreas.addTab(resourceMap.getString("jScrollPane4.TabConstraints.tabTitle"), jScrollPane4); // NOI18N jScrollPane5.setName("jScrollPane5"); // NOI18N jList3.setName("jList3"); // NOI18N jScrollPane5.setViewportView(jList3); wizardtabpAreas.addTab(resourceMap.getString("jScrollPane5.TabConstraints.tabTitle"), jScrollPane5); // NOI18N jScrollPane2.setName("jScrollPane2"); // NOI18N jList1.setName("jList1"); // NOI18N jScrollPane2.setViewportView(jList1); wizardtabpAreas.addTab(resourceMap.getString("jScrollPane2.TabConstraints.tabTitle"), jScrollPane2); // NOI18N wizardjScrollPaneAreas.setName("wizardjScrollPaneAreas"); // NOI18N wizardtaChoosenAreas.setColumns(20); wizardtaChoosenAreas.setRows(5); wizardtaChoosenAreas.setName("wizardtaChoosenAreas"); // NOI18N wizardjScrollPaneAreas.setViewportView(wizardtaChoosenAreas); wizardLblchooseArea.setFont(resourceMap.getFont("wizardLblchooseArea.font")); // NOI18N wizardLblchooseArea.setText(resourceMap.getString("wizardLblchooseArea.text")); // NOI18N wizardLblchooseArea.setName("wizardLblchooseArea"); // NOI18N wizardLblpathToCoverageini.setText(resourceMap.getString("wizardLblpathToCoverageini.text")); // NOI18N wizardLblpathToCoverageini.setName("wizardLblpathToCoverageini"); // NOI18N wizardtfCoverageini.setText(resourceMap.getString("wizardtfCoverageini.text")); // NOI18N wizardtfCoverageini.setName("wizardtfCoverageini"); // NOI18N wizardbtnRefreshAreas.setText(resourceMap.getString("wizardbtnRefreshAreas.text")); // NOI18N wizardbtnRefreshAreas.setName("wizardbtnRefreshAreas"); // NOI18N wizardbtnRefreshAreas.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { wizardbtnRefreshAreasMouseClicked(evt); } }); wizardbtnRemoveArea.setText(resourceMap.getString("wizardbtnRemoveArea.text")); // NOI18N wizardbtnRemoveArea.setToolTipText(resourceMap.getString("wizardbtnRemoveArea.toolTipText")); // NOI18N wizardbtnRemoveArea.setMaximumSize(new java.awt.Dimension(41, 23)); wizardbtnRemoveArea.setMinimumSize(new java.awt.Dimension(41, 23)); wizardbtnRemoveArea.setName("wizardbtnRemoveArea"); // NOI18N wizardbtnRemoveArea.setPreferredSize(new java.awt.Dimension(41, 23)); wizardbtnRemoveArea.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { wizardbtnRemoveAreaMouseClicked(evt); } }); wizardbtnAddAreas.setText(resourceMap.getString("wizardbtnAddAreas.text")); // NOI18N wizardbtnAddAreas.setToolTipText(resourceMap.getString("wizardbtnAddAreas.toolTipText")); // NOI18N wizardbtnAddAreas.setName("wizardbtnAddAreas"); // NOI18N wizardbtnSaveTodo.setText(resourceMap.getString("wizardbtnSaveTodo.text")); // NOI18N wizardbtnSaveTodo.setToolTipText(resourceMap.getString("wizardbtnSaveTodo.toolTipText")); // NOI18N wizardbtnSaveTodo.setEnabled(false); wizardbtnSaveTodo.setName("wizardbtnSaveTodo"); // NOI18N wizardbtnSaveTodo.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { wizardbtnSaveTodoActionPerformed(evt); } }); javax.swing.GroupLayout areasPanelLayout = new javax.swing.GroupLayout(areasPanel); areasPanel.setLayout(areasPanelLayout); areasPanelLayout.setHorizontalGroup(areasPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(areasPanelLayout.createSequentialGroup().addContainerGap().addGroup(areasPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(wizardtabpAreas, javax.swing.GroupLayout.DEFAULT_SIZE, 975, Short.MAX_VALUE) .addGroup(areasPanelLayout.createSequentialGroup().addComponent(wizardLblchooseArea) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 746, Short.MAX_VALUE) .addComponent(wizardbtnSaveTodo)) .addGroup(areasPanelLayout.createSequentialGroup().addComponent(wizardLblpathToCoverageini) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(wizardtfCoverageini, javax.swing.GroupLayout.PREFERRED_SIZE, 248, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(wizardbtnRefreshAreas)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, areasPanelLayout.createSequentialGroup() .addComponent(wizardjScrollPaneAreas, javax.swing.GroupLayout.DEFAULT_SIZE, 924, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(areasPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(wizardbtnAddAreas).addComponent(wizardbtnRemoveArea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addContainerGap())); areasPanelLayout.setVerticalGroup(areasPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(areasPanelLayout.createSequentialGroup().addContainerGap() .addGroup(areasPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(wizardLblchooseArea).addComponent(wizardbtnSaveTodo)) .addGap(18, 18, 18) .addGroup(areasPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(wizardLblpathToCoverageini) .addComponent(wizardtfCoverageini, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(wizardbtnRefreshAreas)) .addGap(11, 11, 11) .addComponent(wizardtabpAreas, javax.swing.GroupLayout.DEFAULT_SIZE, 261, Short.MAX_VALUE) .addGap(18, 18, 18) .addGroup(areasPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, areasPanelLayout.createSequentialGroup().addComponent(wizardbtnAddAreas) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(wizardbtnRemoveArea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(wizardjScrollPaneAreas, javax.swing.GroupLayout.DEFAULT_SIZE, 220, Short.MAX_VALUE)) .addContainerGap())); wizardtabpAreas.getAccessibleContext().setAccessibleParent(welcomePanel); wizardtabp.addTab(resourceMap.getString("areasPanel.TabConstraints.tabTitle"), areasPanel); // NOI18N testsessionPanel.setFocusable(false); testsessionPanel.setName("testsessionPanel"); // NOI18N wizardLblstartTime.setText(resourceMap.getString("wizardLblstartTime.text")); // NOI18N wizardLblstartTime.setName("wizardLblstartTime"); // NOI18N wizardPanelTaskBreakd.setBorder( javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), resourceMap.getString("wizardPanelTaskBreakd.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, resourceMap.getFont("wizardPanelTaskBreakd.border.titleFont"))); // NOI18N wizardPanelTaskBreakd.setName("wizardPanelTaskBreakd"); // NOI18N wizardLblDuration.setText(resourceMap.getString("wizardLblDuration.text")); // NOI18N wizardLblDuration.setName("wizardLblDuration"); // NOI18N wizardLblDesignExecution.setText(resourceMap.getString("wizardLblDesignExecution.text")); // NOI18N wizardLblDesignExecution.setName("wizardLblDesignExecution"); // NOI18N wizardLblSetup.setText(resourceMap.getString("wizardLblSetup.text")); // NOI18N wizardLblSetup.setName("wizardLblSetup"); // NOI18N wizardLblChartervs.setText(resourceMap.getString("wizardLblChartervs.text")); // NOI18N wizardLblChartervs.setName("wizardLblChartervs"); // NOI18N wizardtfDuration.setEditable(false); wizardtfDuration.setText(resourceMap.getString("wizardtfDuration.text")); // NOI18N wizardtfDuration.setName("wizardtfDuration"); // NOI18N wizardtfSessionSetup.setText(resourceMap.getString("wizardtfSessionSetup.text")); // NOI18N wizardtfSessionSetup.setName("wizardtfSessionSetup"); // NOI18N wizardLblBugReporting.setText(resourceMap.getString("wizardLblBugReporting.text")); // NOI18N wizardLblBugReporting.setName("wizardLblBugReporting"); // NOI18N wizardtfBugInvestigation.setText(resourceMap.getString("wizardtfBugInvestigation.text")); // NOI18N wizardtfBugInvestigation.setName("wizardtfBugInvestigation"); // NOI18N wizardtfCharter.setText(resourceMap.getString("wizardtfCharter.text")); // NOI18N wizardtfCharter.setName("wizardtfCharter"); // NOI18N wizardLblSlash.setText(resourceMap.getString("wizardLblSlash.text")); // NOI18N wizardLblSlash.setName("wizardLblSlash"); // NOI18N wizardtfOpportunity.setText(resourceMap.getString("wizardtfOpportunity.text")); // NOI18N wizardtfOpportunity.setName("wizardtfOpportunity"); // NOI18N wizardLblStopfield.setFont(resourceMap.getFont("wizardLblStopfield.font")); // NOI18N wizardLblStopfield.setForeground(resourceMap.getColor("wizardLblStopfield.foreground")); // NOI18N wizardLblStopfield.setText(resourceMap.getString("wizardLblStopfield.text")); // NOI18N wizardLblStopfield.setName("wizardLblStopfield"); // NOI18N wizardtfTestDesignExecution.setText(resourceMap.getString("wizardtfTestDesignExecution.text")); // NOI18N wizardtfTestDesignExecution.setName("wizardtfTestDesignExecution"); // NOI18N wizardLblvs.setText(resourceMap.getString("wizardLblvs.text")); // NOI18N wizardLblvs.setName("wizardLblvs"); // NOI18N wizardLblOpportunity.setText(resourceMap.getString("wizardLblOpportunity.text")); // NOI18N wizardLblOpportunity.setName("wizardLblOpportunity"); // NOI18N javax.swing.GroupLayout wizardPanelTaskBreakdLayout = new javax.swing.GroupLayout(wizardPanelTaskBreakd); wizardPanelTaskBreakd.setLayout(wizardPanelTaskBreakdLayout); wizardPanelTaskBreakdLayout.setHorizontalGroup( wizardPanelTaskBreakdLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(wizardPanelTaskBreakdLayout.createSequentialGroup() .addGroup(wizardPanelTaskBreakdLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(wizardPanelTaskBreakdLayout.createSequentialGroup() .addComponent(wizardLblChartervs) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(wizardLblvs) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(wizardLblOpportunity)) .addComponent(wizardtfBugInvestigation, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(wizardPanelTaskBreakdLayout.createSequentialGroup() .addComponent(wizardtfCharter, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(wizardLblSlash) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(wizardtfOpportunity, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(wizardPanelTaskBreakdLayout.createSequentialGroup() .addComponent(wizardLblDuration) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(wizardLblStopfield)) .addComponent(wizardtfDuration, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(wizardLblDesignExecution).addComponent(wizardLblSetup) .addComponent(wizardtfSessionSetup, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(wizardLblBugReporting).addComponent( wizardtfTestDesignExecution, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(172, Short.MAX_VALUE))); wizardPanelTaskBreakdLayout.setVerticalGroup(wizardPanelTaskBreakdLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, wizardPanelTaskBreakdLayout .createSequentialGroup() .addGroup(wizardPanelTaskBreakdLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(wizardLblDuration).addComponent(wizardLblStopfield)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(wizardtfDuration, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(wizardLblDesignExecution) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(wizardtfTestDesignExecution, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(wizardLblSetup).addGap(9, 9, 9) .addComponent(wizardtfSessionSetup, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(wizardLblBugReporting) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(wizardtfBugInvestigation, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(wizardPanelTaskBreakdLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(wizardLblChartervs).addComponent(wizardLblvs) .addComponent(wizardLblOpportunity)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(wizardPanelTaskBreakdLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(wizardtfCharter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(wizardLblSlash).addComponent(wizardtfOpportunity, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); wizardPanelTestsessionAreas.setBorder( javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), resourceMap.getString("wizardPanelTestsessionAreas.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, resourceMap.getFont("wizardPanelTestsessionAreas.border.titleFont"))); // NOI18N wizardPanelTestsessionAreas.setName("wizardPanelTestsessionAreas"); // NOI18N wizardScrollPaneAreas.setName("wizardScrollPaneAreas"); // NOI18N wizardtaTestsessionAreas.setColumns(20); wizardtaTestsessionAreas.setRows(5); wizardtaTestsessionAreas.setName("wizardtaTestsessionAreas"); // NOI18N wizardScrollPaneAreas.setViewportView(wizardtaTestsessionAreas); javax.swing.GroupLayout wizardPanelTestsessionAreasLayout = new javax.swing.GroupLayout( wizardPanelTestsessionAreas); wizardPanelTestsessionAreas.setLayout(wizardPanelTestsessionAreasLayout); wizardPanelTestsessionAreasLayout.setHorizontalGroup( wizardPanelTestsessionAreasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(wizardPanelTestsessionAreasLayout .createSequentialGroup().addComponent(wizardScrollPaneAreas, javax.swing.GroupLayout.DEFAULT_SIZE, 317, Short.MAX_VALUE) .addContainerGap())); wizardPanelTestsessionAreasLayout.setVerticalGroup( wizardPanelTestsessionAreasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(wizardPanelTestsessionAreasLayout .createSequentialGroup().addComponent(wizardScrollPaneAreas, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE) .addContainerGap())); wizardLblcharterHeadline.setFont(resourceMap.getFont("wizardLblcharterHeadline.font")); // NOI18N wizardLblcharterHeadline.setText(resourceMap.getString("wizardLblcharterHeadline.text")); // NOI18N wizardLblcharterHeadline.setName("wizardLblcharterHeadline"); // NOI18N wizardLblStart.setFont(resourceMap.getFont("wizardLblStart.font")); // NOI18N wizardLblStart.setText(resourceMap.getString("wizardLblStart.text")); // NOI18N wizardLblStart.setName("wizardLblStart"); // NOI18N wizardLblTester.setFont(resourceMap.getFont("wizardLblTester.font")); // NOI18N wizardLblTester.setText(resourceMap.getString("wizardLblTester.text")); // NOI18N wizardLblTester.setName("wizardLblTester"); // NOI18N wizardTabpDetailsDTBIR.setName("wizardTabpDetailsDTBIR"); // NOI18N wizardScrollPaneDataFiles.setName("wizardScrollPaneDataFiles"); // NOI18N wizardtaDataFiles.setColumns(20); wizardtaDataFiles.setLineWrap(true); wizardtaDataFiles.setRows(5); wizardtaDataFiles.setName("wizardtaDataFiles"); // NOI18N wizardScrollPaneDataFiles.setViewportView(wizardtaDataFiles); wizardTabpDetailsDTBIR.addTab(resourceMap.getString("wizardScrollPaneDataFiles.TabConstraints.tabTitle"), wizardScrollPaneDataFiles); // NOI18N wizardScrollPaneTestNotes.setName("wizardScrollPaneTestNotes"); // NOI18N wizardtaTestNotes.setColumns(20); wizardtaTestNotes.setFont(resourceMap.getFont("wizardtaTestNotes.font")); // NOI18N wizardtaTestNotes.setLineWrap(true); wizardtaTestNotes.setRows(5); wizardtaTestNotes.setWrapStyleWord(true); wizardtaTestNotes.setName("wizardtaTestNotes"); // NOI18N wizardScrollPaneTestNotes.setViewportView(wizardtaTestNotes); wizardTabpDetailsDTBIR.addTab(resourceMap.getString("wizardScrollPaneTestNotes.TabConstraints.tabTitle"), wizardScrollPaneTestNotes); // NOI18N wizardScrollPaneBugs.setName("wizardScrollPaneBugs"); // NOI18N wizardtaBugs.setColumns(20); wizardtaBugs.setFont(resourceMap.getFont("wizardtaBugs.font")); // NOI18N wizardtaBugs.setLineWrap(true); wizardtaBugs.setRows(5); wizardtaBugs.setWrapStyleWord(true); wizardtaBugs.setComponentPopupMenu(wizardPopUpBugTab); wizardtaBugs.setName("wizardtaBugs"); // NOI18N wizardScrollPaneBugs.setViewportView(wizardtaBugs); wizardTabpDetailsDTBIR.addTab(resourceMap.getString("wizardScrollPaneBugs.TabConstraints.tabTitle"), wizardScrollPaneBugs); // NOI18N wizardScrollPaneIssues.setName("wizardScrollPaneIssues"); // NOI18N wizardtaIssues.setColumns(20); wizardtaIssues.setFont(resourceMap.getFont("wizardtaIssues.font")); // NOI18N wizardtaIssues.setLineWrap(true); wizardtaIssues.setRows(5); wizardtaIssues.setWrapStyleWord(true); wizardtaIssues.setName("wizardtaIssues"); // NOI18N wizardScrollPaneIssues.setViewportView(wizardtaIssues); wizardTabpDetailsDTBIR.addTab(resourceMap.getString("wizardScrollPaneIssues.TabConstraints.tabTitle"), wizardScrollPaneIssues); // NOI18N wizardScrollPaneReview.setName("wizardScrollPaneReview"); // NOI18N wizardtaReview.setBackground(resourceMap.getColor("wizardtaReview.background")); // NOI18N wizardtaReview.setColumns(20); wizardtaReview.setEditable(false); wizardtaReview.setRows(5); wizardtaReview.setToolTipText(resourceMap.getString("wizardtaReview.toolTipText")); // NOI18N wizardtaReview.setName("wizardtaReview"); // NOI18N wizardScrollPaneReview.setViewportView(wizardtaReview); wizardTabpDetailsDTBIR.addTab(resourceMap.getString("wizardScrollPaneReview.TabConstraints.tabTitle"), wizardScrollPaneReview); // NOI18N wizardtfNameOfTester.setText(resourceMap.getString("wizardtfNameOfTester.text")); // NOI18N wizardtfNameOfTester.setName("wizardtfNameOfTester"); // NOI18N jScrollPane3.setName("jScrollPane3"); // NOI18N wizardtaCharterdynamic.setBackground(resourceMap.getColor("wizardtaCharterdynamic.background")); // NOI18N wizardtaCharterdynamic.setColumns(20); wizardtaCharterdynamic.setFont(resourceMap.getFont("wizardtaCharterdynamic.font")); // NOI18N wizardtaCharterdynamic.setLineWrap(true); wizardtaCharterdynamic.setRows(2); wizardtaCharterdynamic.setBorder(null); wizardtaCharterdynamic.setName("wizardtaCharterdynamic"); // NOI18N jScrollPane3.setViewportView(wizardtaCharterdynamic); javax.swing.GroupLayout testsessionPanelLayout = new javax.swing.GroupLayout(testsessionPanel); testsessionPanel.setLayout(testsessionPanelLayout); testsessionPanelLayout.setHorizontalGroup(testsessionPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(testsessionPanelLayout.createSequentialGroup().addGroup(testsessionPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(testsessionPanelLayout.createSequentialGroup().addContainerGap() .addGroup(testsessionPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(wizardLblcharterHeadline).addComponent(wizardLblStart) .addComponent(wizardLblTester)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(testsessionPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(testsessionPanelLayout.createSequentialGroup() .addGroup(testsessionPanelLayout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(wizardLblstartTime) .addComponent(wizardtfNameOfTester, javax.swing.GroupLayout.PREFERRED_SIZE, 266, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18).addComponent(wizardTabpDetailsDTBIR, javax.swing.GroupLayout.DEFAULT_SIZE, 635, Short.MAX_VALUE)) .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 919, Short.MAX_VALUE))) .addGroup(testsessionPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(wizardPanelTaskBreakd, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(wizardPanelTestsessionAreas, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addContainerGap())); testsessionPanelLayout.setVerticalGroup(testsessionPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(testsessionPanelLayout.createSequentialGroup().addContainerGap() .addGroup(testsessionPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(wizardLblcharterHeadline).addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(testsessionPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(testsessionPanelLayout.createSequentialGroup() .addComponent(wizardPanelTestsessionAreas, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(11, 11, 11) .addGroup(testsessionPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(wizardLblStart).addComponent(wizardLblstartTime)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(testsessionPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(wizardLblTester).addComponent(wizardtfNameOfTester, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(15, 15, 15).addComponent(wizardPanelTaskBreakd, javax.swing.GroupLayout.PREFERRED_SIZE, 272, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(testsessionPanelLayout .createSequentialGroup().addComponent(wizardTabpDetailsDTBIR, javax.swing.GroupLayout.DEFAULT_SIZE, 531, Short.MAX_VALUE) .addGap(11, 11, 11))))); wizardtabp.addTab(resourceMap.getString("testsessionPanel.TabConstraints.tabTitle"), testsessionPanel); // NOI18N wizardbtnBack.setText(resourceMap.getString("wizardbtnBack.text")); // NOI18N wizardbtnBack.setEnabled(false); wizardbtnBack.setName("wizardbtnBack"); // NOI18N wizardbtnBack.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnWizardBack(evt); } }); wizardbtnStart.setText(resourceMap.getString("wizardbtnStart.text")); // NOI18N wizardbtnStart.setName("wizardbtnStart"); // NOI18N wizardbtnStop.setText(resourceMap.getString("wizardbtnStop.text")); // NOI18N wizardbtnStop.setName("wizardbtnStop"); // NOI18N wizardbtnSave.setEnabled(false); wizardbtnSave.setLabel(resourceMap.getString("SaveButton.label")); // NOI18N wizardbtnSave.setName("SaveButton"); // NOI18N wizardbtnSave.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { btnWizardSaveClicked(evt); } }); wizardbtnNext.setText(resourceMap.getString("wizardbtnNext.text")); // NOI18N wizardbtnNext.setName("wizardbtnNext"); // NOI18N wizardbtnNext.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnWizardNext(evt); } }); wizardbtnNew.setText(resourceMap.getString("wizardbtnNew.text")); // NOI18N wizardbtnNew.setName("wizardbtnNew"); // NOI18N wizardbtnNew.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { btnWizardNewMouseClicked(evt); } }); javax.swing.GroupLayout wizardPanelLayout = new javax.swing.GroupLayout(wizardPanel); wizardPanel.setLayout(wizardPanelLayout); wizardPanelLayout.setHorizontalGroup(wizardPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, wizardPanelLayout.createSequentialGroup() .addGroup(wizardPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, wizardPanelLayout .createSequentialGroup().addContainerGap().addComponent(wizardbtnBack) .addGap(340, 340, 340).addComponent(wizardbtnStart).addGap(2, 2, 2) .addComponent(wizardbtnStop).addGap(18, 18, 18).addComponent(wizardbtnSave) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(wizardbtnNew) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 280, Short.MAX_VALUE) .addComponent(wizardbtnNext)) .addComponent(WizardToolbar, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, wizardPanelLayout.createSequentialGroup().addContainerGap().addComponent( wizardtabp, javax.swing.GroupLayout.DEFAULT_SIZE, 1000, Short.MAX_VALUE))) .addContainerGap())); wizardPanelLayout.setVerticalGroup(wizardPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(wizardPanelLayout.createSequentialGroup() .addComponent(WizardToolbar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(wizardtabp, javax.swing.GroupLayout.DEFAULT_SIZE, 624, Short.MAX_VALUE) .addGap(18, 18, 18) .addGroup(wizardPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(wizardbtnBack).addComponent(wizardbtnStart) .addComponent(wizardbtnSave).addComponent(wizardbtnNew).addComponent(wizardbtnNext) .addComponent(wizardbtnStop)) .addContainerGap())); viewReviewsPanel.setName("viewReviewsPanel"); // NOI18N ReviewToolbar.setFloatable(false); ReviewToolbar.setRollover(true); ReviewToolbar.setName("ReviewToolbar"); // NOI18N reviewbtntopSave.setIcon(resourceMap.getIcon("reviewbtntopSave.icon")); // NOI18N reviewbtntopSave.setToolTipText(resourceMap.getString("reviewbtntopSave.toolTipText")); // NOI18N reviewbtntopSave.setDisabledIcon(resourceMap.getIcon("reviewbtntopSave.disabledIcon")); // NOI18N reviewbtntopSave.setEnabled(false); reviewbtntopSave.setFocusable(false); reviewbtntopSave.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT); reviewbtntopSave.setName("reviewbtntopSave"); // NOI18N reviewbtntopSave.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); reviewbtntopSave.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { reviewbtntopSaveMouseClicked(evt); } }); ReviewToolbar.add(reviewbtntopSave); jSeparator3.setName("jSeparator3"); // NOI18N ReviewToolbar.add(jSeparator3); reviewbtntopBack.setIcon(resourceMap.getIcon("reviewbtntopBack.icon")); // NOI18N reviewbtntopBack.setToolTipText(resourceMap.getString("reviewbtntopBack.toolTipText")); // NOI18N reviewbtntopBack.setDisabledIcon(resourceMap.getIcon("reviewbtntopBack.disabledIcon")); // NOI18N reviewbtntopBack.setEnabled(false); reviewbtntopBack.setFocusable(false); reviewbtntopBack.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); reviewbtntopBack.setName("reviewbtntopBack"); // NOI18N reviewbtntopBack.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); reviewbtntopBack.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { reviewbtntopBackMouseClicked(evt); } }); ReviewToolbar.add(reviewbtntopBack); reviewbtntopNext.setIcon(resourceMap.getIcon("reviewbtntopNext.icon")); // NOI18N reviewbtntopNext.setToolTipText(resourceMap.getString("reviewbtntopNext.toolTipText")); // NOI18N reviewbtntopNext.setDisabledIcon(resourceMap.getIcon("reviewbtntopNext.disabledIcon")); // NOI18N reviewbtntopNext.setFocusable(false); reviewbtntopNext.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); reviewbtntopNext.setName("reviewbtntopNext"); // NOI18N reviewbtntopNext.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); reviewbtntopNext.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { reviewbtntopNextMouseClicked(evt); } }); ReviewToolbar.add(reviewbtntopNext); reviewbtntopMove.setIcon(resourceMap.getIcon("reviewbtntopMove.icon")); // NOI18N reviewbtntopMove.setText(resourceMap.getString("reviewbtntopMove.text")); // NOI18N reviewbtntopMove.setToolTipText(resourceMap.getString("reviewbtntopMove.toolTipText")); // NOI18N reviewbtntopMove.setDisabledIcon(resourceMap.getIcon("reviewbtntopMove.disabledIcon")); // NOI18N reviewbtntopMove.setFocusable(false); reviewbtntopMove.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); reviewbtntopMove.setName("reviewbtntopMove"); // NOI18N reviewbtntopMove.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); reviewbtntopMove.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { moveto(evt); } }); ReviewToolbar.add(reviewbtntopMove); reviewViewlabel.setFont(resourceMap.getFont("reviewViewlabel.font")); // NOI18N reviewViewlabel.setText(resourceMap.getString("reviewViewlabel.text")); // NOI18N reviewViewlabel.setName("reviewViewlabel"); // NOI18N reviewSessionsTabp.setName("reviewSessionsTabp"); // NOI18N reviewToreviewSessionsPanel.setName("reviewToreviewSessionsPanel"); // NOI18N reviewCmbxSessiontoReview.setName("reviewCmbxSessiontoReview"); // NOI18N reviewtoReviewPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder()); reviewtoReviewPanel.setName("reviewtoReviewPanel"); // NOI18N reviewtoReviewPanel.setLayout(new java.awt.GridLayout(2, 0)); javax.swing.GroupLayout reviewToreviewSessionsPanelLayout = new javax.swing.GroupLayout( reviewToreviewSessionsPanel); reviewToreviewSessionsPanel.setLayout(reviewToreviewSessionsPanelLayout); reviewToreviewSessionsPanelLayout.setHorizontalGroup(reviewToreviewSessionsPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(reviewToreviewSessionsPanelLayout.createSequentialGroup().addContainerGap() .addGroup(reviewToreviewSessionsPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(reviewtoReviewPanel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 975, Short.MAX_VALUE) .addComponent(reviewCmbxSessiontoReview, 0, 975, Short.MAX_VALUE)) .addContainerGap())); reviewToreviewSessionsPanelLayout.setVerticalGroup(reviewToreviewSessionsPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(reviewToreviewSessionsPanelLayout.createSequentialGroup().addContainerGap() .addComponent(reviewtoReviewPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(reviewCmbxSessiontoReview, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(520, Short.MAX_VALUE))); reviewSessionsTabp.addTab(resourceMap.getString("reviewToreviewSessionsPanel.TabConstraints.tabTitle"), reviewToreviewSessionsPanel); // NOI18N reviewViewPanel.setName("reviewViewPanel"); // NOI18N reviewLblStartTime.setText(resourceMap.getString("reviewLblStartTime.text")); // NOI18N reviewLblStartTime.setName("reviewLblStartTime"); // NOI18N reviewPaneTaskbreakdown.setBorder( javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), resourceMap.getString("reviewPaneTaskbreakdown.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, resourceMap.getFont("reviewPaneTaskbreakdown.border.titleFont"))); // NOI18N reviewPaneTaskbreakdown.setName("reviewPaneTaskbreakdown"); // NOI18N reviewLblDuration.setText(resourceMap.getString("reviewLblDuration.text")); // NOI18N reviewLblDuration.setName("reviewLblDuration"); // NOI18N reviewLblTestExecution.setText(resourceMap.getString("reviewLblTestExecution.text")); // NOI18N reviewLblTestExecution.setName("reviewLblTestExecution"); // NOI18N reviewLblSetup.setText(resourceMap.getString("reviewLblSetup.text")); // NOI18N reviewLblSetup.setName("reviewLblSetup"); // NOI18N reviewLblChartervs.setText(resourceMap.getString("reviewLblChartervs.text")); // NOI18N reviewLblChartervs.setName("reviewLblChartervs"); // NOI18N reviewtfDuration.setBackground(resourceMap.getColor("reviewtfDuration.background")); // NOI18N reviewtfDuration.setBorder(javax.swing.BorderFactory.createEtchedBorder()); reviewtfDuration.setName("reviewtfDuration"); // NOI18N reviewtfSessionSetup.setBorder(javax.swing.BorderFactory.createEtchedBorder()); reviewtfSessionSetup.setName("reviewtfSessionSetup"); // NOI18N reviewLblBugReporting.setText(resourceMap.getString("reviewLblBugReporting.text")); // NOI18N reviewLblBugReporting.setName("reviewLblBugReporting"); // NOI18N reviewtfBugInvestigation.setBorder(javax.swing.BorderFactory.createEtchedBorder()); reviewtfBugInvestigation.setName("reviewtfBugInvestigation"); // NOI18N reviewtfCharter.setBorder(javax.swing.BorderFactory.createEtchedBorder()); reviewtfCharter.setName("reviewtfCharter"); // NOI18N reviewtfTestDesignExecution.setBorder(javax.swing.BorderFactory.createEtchedBorder()); reviewtfTestDesignExecution.setName("reviewtfTestDesignExecution"); // NOI18N reviewLblvs.setText(resourceMap.getString("reviewLblvs.text")); // NOI18N reviewLblvs.setName("reviewLblvs"); // NOI18N reviewLblOpportunity.setText(resourceMap.getString("reviewLblOpportunity.text")); // NOI18N reviewLblOpportunity.setName("reviewLblOpportunity"); // NOI18N javax.swing.GroupLayout reviewPaneTaskbreakdownLayout = new javax.swing.GroupLayout( reviewPaneTaskbreakdown); reviewPaneTaskbreakdown.setLayout(reviewPaneTaskbreakdownLayout); reviewPaneTaskbreakdownLayout.setHorizontalGroup( reviewPaneTaskbreakdownLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(reviewPaneTaskbreakdownLayout.createSequentialGroup() .addGroup(reviewPaneTaskbreakdownLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(reviewPaneTaskbreakdownLayout.createSequentialGroup() .addComponent(reviewLblChartervs) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(reviewLblvs) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(reviewLblOpportunity)) .addComponent(reviewtfBugInvestigation, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(reviewLblDuration) .addComponent(reviewtfDuration, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(reviewLblTestExecution).addComponent(reviewLblSetup) .addComponent(reviewtfSessionSetup, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(reviewLblBugReporting) .addComponent(reviewtfTestDesignExecution, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(reviewtfCharter, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(172, Short.MAX_VALUE))); reviewPaneTaskbreakdownLayout.setVerticalGroup(reviewPaneTaskbreakdownLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(reviewPaneTaskbreakdownLayout.createSequentialGroup().addComponent(reviewLblDuration) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(reviewtfDuration, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(reviewLblTestExecution) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(reviewtfTestDesignExecution, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(reviewLblSetup).addGap(9, 9, 9) .addComponent(reviewtfSessionSetup, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(reviewLblBugReporting) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(reviewtfBugInvestigation, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(reviewPaneTaskbreakdownLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(reviewLblChartervs).addComponent(reviewLblvs) .addComponent(reviewLblOpportunity)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(reviewtfCharter, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(17, Short.MAX_VALUE))); reviewPanelTestsessionAreas.setBorder( javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), resourceMap.getString("reviewPanelTestsessionAreas.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, resourceMap.getFont("reviewPanelTestsessionAreas.border.titleFont"))); // NOI18N reviewPanelTestsessionAreas.setName("reviewPanelTestsessionAreas"); // NOI18N reviewScrollPaneArea.setName("reviewScrollPaneArea"); // NOI18N reviewtaTestsessionAreasReview.setColumns(20); reviewtaTestsessionAreasReview.setRows(5); reviewtaTestsessionAreasReview.setName("reviewtaTestsessionAreasReview"); // NOI18N reviewScrollPaneArea.setViewportView(reviewtaTestsessionAreasReview); javax.swing.GroupLayout reviewPanelTestsessionAreasLayout = new javax.swing.GroupLayout( reviewPanelTestsessionAreas); reviewPanelTestsessionAreas.setLayout(reviewPanelTestsessionAreasLayout); reviewPanelTestsessionAreasLayout.setHorizontalGroup( reviewPanelTestsessionAreasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(reviewPanelTestsessionAreasLayout .createSequentialGroup().addComponent(reviewScrollPaneArea, javax.swing.GroupLayout.DEFAULT_SIZE, 317, Short.MAX_VALUE) .addContainerGap())); reviewPanelTestsessionAreasLayout.setVerticalGroup( reviewPanelTestsessionAreasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(reviewPanelTestsessionAreasLayout .createSequentialGroup().addComponent(reviewScrollPaneArea, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE) .addContainerGap())); reviewCharterHeadlineLabel.setFont(resourceMap.getFont("reviewCharterHeadlineLabel.font")); // NOI18N reviewCharterHeadlineLabel.setText(resourceMap.getString("reviewCharterHeadlineLabel.text")); // NOI18N reviewCharterHeadlineLabel.setName("reviewCharterHeadlineLabel"); // NOI18N reviewLblStart.setFont(resourceMap.getFont("reviewLblStart.font")); // NOI18N reviewLblStart.setText(resourceMap.getString("reviewLblStart.text")); // NOI18N reviewLblStart.setName("reviewLblStart"); // NOI18N reviewLblTester.setFont(resourceMap.getFont("reviewLblTester.font")); // NOI18N reviewLblTester.setText(resourceMap.getString("reviewLblTester.text")); // NOI18N reviewLblTester.setName("reviewLblTester"); // NOI18N reviewTabpDTBIR.setName("reviewTabpDTBIR"); // NOI18N reviewScrollPaneDatafile.setName("reviewScrollPaneDatafile"); // NOI18N reviewtaDataFiles.setColumns(20); reviewtaDataFiles.setFont(resourceMap.getFont("reviewtaDataFiles.font")); // NOI18N reviewtaDataFiles.setRows(5); reviewtaDataFiles.setName("reviewtaDataFiles"); // NOI18N reviewScrollPaneDatafile.setViewportView(reviewtaDataFiles); reviewTabpDTBIR.addTab(resourceMap.getString("reviewScrollPaneDatafile.TabConstraints.tabTitle"), reviewScrollPaneDatafile); // NOI18N reviewScrollPaneTestNotes.setName("reviewScrollPaneTestNotes"); // NOI18N reviewtaTestNotes.setColumns(20); reviewtaTestNotes.setFont(resourceMap.getFont("reviewtaTestNotes.font")); // NOI18N reviewtaTestNotes.setLineWrap(true); reviewtaTestNotes.setRows(5); reviewtaTestNotes.setName("reviewtaTestNotes"); // NOI18N reviewScrollPaneTestNotes.setViewportView(reviewtaTestNotes); reviewTabpDTBIR.addTab(resourceMap.getString("reviewScrollPaneTestNotes.TabConstraints.tabTitle"), reviewScrollPaneTestNotes); // NOI18N reviewScrollPaneBugs.setName("reviewScrollPaneBugs"); // NOI18N reviewedipaneBugs.setFont(resourceMap.getFont("reviewedipaneBugs.font")); // NOI18N reviewedipaneBugs.setName("reviewedipaneBugs"); // NOI18N reviewScrollPaneBugs.setViewportView(reviewedipaneBugs); reviewTabpDTBIR.addTab(resourceMap.getString("reviewScrollPaneBugs.TabConstraints.tabTitle"), reviewScrollPaneBugs); // NOI18N reviewScrollPaneIssues.setName("reviewScrollPaneIssues"); // NOI18N reviewtaIssues.setColumns(20); reviewtaIssues.setFont(resourceMap.getFont("reviewtaIssues.font")); // NOI18N reviewtaIssues.setRows(5); reviewtaIssues.setName("reviewtaIssues"); // NOI18N reviewScrollPaneIssues.setViewportView(reviewtaIssues); reviewTabpDTBIR.addTab(resourceMap.getString("reviewScrollPaneIssues.TabConstraints.tabTitle"), reviewScrollPaneIssues); // NOI18N reviewScrollPaneReview.setName("reviewScrollPaneReview"); // NOI18N reviewtaReview.setColumns(20); reviewtaReview.setFont(resourceMap.getFont("reviewtaReview.font")); // NOI18N reviewtaReview.setRows(5); reviewtaReview.setName("reviewtaReview"); // NOI18N reviewScrollPaneReview.setViewportView(reviewtaReview); reviewTabpDTBIR.addTab(resourceMap.getString("reviewScrollPaneReview.TabConstraints.tabTitle"), reviewScrollPaneReview); // NOI18N reviewTabpDTBIR.setSelectedIndex(4); reviewtfNameOfTester.setText(resourceMap.getString("reviewtfNameOfTester.text")); // NOI18N reviewtfNameOfTester.setName("reviewtfNameOfTester"); // NOI18N jScrollPane6.setName("jScrollPane6"); // NOI18N reviewtaCharterdynamic.setBackground(resourceMap.getColor("reviewtaCharterdynamic.background")); // NOI18N reviewtaCharterdynamic.setColumns(20); reviewtaCharterdynamic.setEditable(false); reviewtaCharterdynamic.setFont(resourceMap.getFont("reviewtaCharterdynamic.font")); // NOI18N reviewtaCharterdynamic.setLineWrap(true); reviewtaCharterdynamic.setRows(2); reviewtaCharterdynamic.setText(resourceMap.getString("reviewtaCharterdynamic.text")); // NOI18N reviewtaCharterdynamic.setBorder(null); reviewtaCharterdynamic.setName("reviewtaCharterdynamic"); // NOI18N jScrollPane6.setViewportView(reviewtaCharterdynamic); javax.swing.GroupLayout reviewViewPanelLayout = new javax.swing.GroupLayout(reviewViewPanel); reviewViewPanel.setLayout(reviewViewPanelLayout); reviewViewPanelLayout.setHorizontalGroup(reviewViewPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(reviewViewPanelLayout.createSequentialGroup().addGroup(reviewViewPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(reviewViewPanelLayout.createSequentialGroup().addContainerGap() .addGroup(reviewViewPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(reviewLblStart).addComponent(reviewLblTester) .addComponent(reviewCharterHeadlineLabel)) .addGap(10, 10, 10) .addGroup(reviewViewPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(reviewViewPanelLayout.createSequentialGroup() .addGroup(reviewViewPanelLayout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(reviewLblStartTime) .addComponent(reviewtfNameOfTester, javax.swing.GroupLayout.PREFERRED_SIZE, 266, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18).addComponent(reviewTabpDTBIR)) .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 919, Short.MAX_VALUE))) .addGroup(reviewViewPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(reviewPaneTaskbreakdown, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(reviewPanelTestsessionAreas, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addContainerGap())); reviewViewPanelLayout.setVerticalGroup(reviewViewPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(reviewViewPanelLayout.createSequentialGroup().addContainerGap() .addGroup(reviewViewPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(reviewCharterHeadlineLabel)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(reviewViewPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(reviewViewPanelLayout.createSequentialGroup() .addComponent(reviewPanelTestsessionAreas, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(11, 11, 11) .addGroup(reviewViewPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(reviewLblStart).addComponent(reviewLblStartTime)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(reviewViewPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(reviewLblTester).addComponent(reviewtfNameOfTester, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(15, 15, 15).addComponent(reviewPaneTaskbreakdown, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(reviewViewPanelLayout .createSequentialGroup().addComponent(reviewTabpDTBIR, javax.swing.GroupLayout.DEFAULT_SIZE, 508, Short.MAX_VALUE) .addGap(11, 11, 11))))); reviewSessionsTabp.addTab(resourceMap.getString("reviewViewPanel.TabConstraints.tabTitle"), reviewViewPanel); // NOI18N reviewbtnNext.setText(resourceMap.getString("reviewbtnNext.text")); // NOI18N reviewbtnNext.setName("reviewbtnNext"); // NOI18N reviewbtnNext.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { reviewbtnNextClicked(evt); } }); reviewbtnBack.setText(resourceMap.getString("reviewbtnBack.text")); // NOI18N reviewbtnBack.setEnabled(false); reviewbtnBack.setName("reviewbtnBack"); // NOI18N reviewbtnBack.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { reviewbtnBackMouseClicked(evt); } }); reviewbtnSave.setEnabled(false); reviewbtnSave.setLabel(resourceMap.getString("reviewbtnSave.label")); // NOI18N reviewbtnSave.setName("reviewbtnSave"); // NOI18N reviewbtnSave.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { reviewbtnSaveButtonClicked(evt); } }); reviewbtnMove.setText(resourceMap.getString("reviewbtnMove.text")); // NOI18N reviewbtnMove.setToolTipText(resourceMap.getString("reviewbtnMove.toolTipText")); // NOI18N reviewbtnMove.setEnabled(false); reviewbtnMove.setName("reviewbtnMove"); // NOI18N reviewbtnMove.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { moveto(evt); } }); javax.swing.GroupLayout viewReviewsPanelLayout = new javax.swing.GroupLayout(viewReviewsPanel); viewReviewsPanel.setLayout(viewReviewsPanelLayout); viewReviewsPanelLayout.setHorizontalGroup(viewReviewsPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(viewReviewsPanelLayout.createSequentialGroup().addGroup(viewReviewsPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(ReviewToolbar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(viewReviewsPanelLayout.createSequentialGroup().addContainerGap() .addComponent(reviewbtnBack).addGap(466, 466, 466).addComponent(reviewbtnSave) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 206, Short.MAX_VALUE) .addComponent(reviewbtnMove).addGap(18, 18, 18).addComponent(reviewbtnNext)) .addGroup(viewReviewsPanelLayout.createSequentialGroup().addGap(10, 10, 10) .addComponent(reviewSessionsTabp)) .addGroup(viewReviewsPanelLayout.createSequentialGroup().addContainerGap() .addComponent(reviewViewlabel))) .addContainerGap())); viewReviewsPanelLayout.setVerticalGroup(viewReviewsPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(viewReviewsPanelLayout.createSequentialGroup() .addComponent(ReviewToolbar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(2, 2, 2).addComponent(reviewViewlabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent( reviewSessionsTabp, javax.swing.GroupLayout.DEFAULT_SIZE, 601, Short.MAX_VALUE) .addGap(25, 25, 25) .addGroup(viewReviewsPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(reviewbtnBack).addComponent(reviewbtnNext).addComponent(reviewbtnSave) .addComponent(reviewbtnMove)) .addContainerGap())); reportPanel.setName("reportPanel"); // NOI18N reportChartPanel.setName("reportChartPanel"); // NOI18N javax.swing.GroupLayout reportChartPanelLayout = new javax.swing.GroupLayout(reportChartPanel); reportChartPanel.setLayout(reportChartPanelLayout); reportChartPanelLayout.setHorizontalGroup(reportChartPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 495, Short.MAX_VALUE)); reportChartPanelLayout.setVerticalGroup(reportChartPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 436, Short.MAX_VALUE)); reportScrollPOverviewTabel.setName("reportScrollPOverviewTabel"); // NOI18N reportOverviewTable.setBackground(resourceMap.getColor("reportOverviewTable.background")); // NOI18N reportOverviewTable.setModel(new javax.swing.table.DefaultTableModel( new Object[][] { { null, null }, { null, null }, { null, null }, { null, null } }, new String[] { "Charter", "Number of Testsessions" })); reportOverviewTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_LAST_COLUMN); reportOverviewTable.setName("reportOverviewTable"); // NOI18N reportScrollPOverviewTabel.setViewportView(reportOverviewTable); reportOverviewTable.getColumnModel().getColumn(0) .setHeaderValue(resourceMap.getString("reportOverviewTable.columnModel.title0")); // NOI18N reportOverviewTable.getColumnModel().getColumn(1) .setHeaderValue(resourceMap.getString("reportOverviewTable.columnModel.title1")); // NOI18N reportlblSum.setText(resourceMap.getString("reportlblSum.text")); // NOI18N reportlblSum.setName("reportlblSum"); // NOI18N reportlblBug.setText(resourceMap.getString("reportlblBug.text")); // NOI18N reportlblBug.setName("reportlblBug"); // NOI18N reportlblIssue.setText(resourceMap.getString("reportlblIssue.text")); // NOI18N reportlblIssue.setName("reportlblIssue"); // NOI18N javax.swing.GroupLayout reportPanelLayout = new javax.swing.GroupLayout(reportPanel); reportPanel.setLayout(reportPanelLayout); reportPanelLayout.setHorizontalGroup(reportPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(reportPanelLayout.createSequentialGroup().addContainerGap() .addGroup(reportPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(reportScrollPOverviewTabel, javax.swing.GroupLayout.DEFAULT_SIZE, 1000, Short.MAX_VALUE) .addGroup(reportPanelLayout.createSequentialGroup() .addComponent(reportChartPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 428, Short.MAX_VALUE) .addGroup(reportPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(reportlblSum).addComponent(reportlblIssue) .addComponent(reportlblBug)))) .addContainerGap())); reportPanelLayout.setVerticalGroup(reportPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(reportPanelLayout.createSequentialGroup().addContainerGap() .addComponent(reportScrollPOverviewTabel, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(2, 2, 2).addComponent(reportlblSum).addGap(2, 2, 2) .addGroup(reportPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(reportPanelLayout.createSequentialGroup().addGap(5, 5, 5) .addComponent(reportlblBug) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(reportlblIssue)) .addComponent(reportChartPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap())); javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel); mainPanel.setLayout(mainPanelLayout); mainPanelLayout .setHorizontalGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(viewReviewsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(wizardPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 1020, Short.MAX_VALUE) .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(mainPanelLayout.createSequentialGroup().addGap(0, 0, 0) .addComponent(reportPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(0, 0, 0)))); mainPanelLayout .setVerticalGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(viewReviewsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(wizardPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 715, Short.MAX_VALUE) .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(mainPanelLayout.createSequentialGroup().addGap(0, 0, 0) .addComponent(reportPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(0, 0, 0)))); menuBar.setName("menuBar"); // NOI18N fileMenu.setText(resourceMap.getString("fileMenu.text")); // NOI18N fileMenu.setName("fileMenu"); // NOI18N saveMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK)); saveMenuItem.setText(resourceMap.getString("saveMenuItem.text")); // NOI18N saveMenuItem.setName("saveMenuItem"); // NOI18N saveMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuSave(evt); } }); fileMenu.add(saveMenuItem); exitMenuItem.setAction(actionMap.get("quit")); // NOI18N exitMenuItem.setName("exitMenuItem"); // NOI18N fileMenu.add(exitMenuItem); menuBar.add(fileMenu); sessionMenu.setText(resourceMap.getString("sessionMenu.text")); // NOI18N sessionMenu.setName("sessionMenu"); // NOI18N sessionWizardMenuItem.setText(resourceMap.getString("sessionWizardMenuItem.text")); // NOI18N sessionWizardMenuItem.setName("sessionWizardMenuItem"); // NOI18N sessionWizardMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { menuSessionWizard(evt); } }); sessionMenu.add(sessionWizardMenuItem); reviewVieMenuItem.setText(resourceMap.getString("reviewVieMenuItem.text")); // NOI18N reviewVieMenuItem.setName("reviewVieMenuItem"); // NOI18N reviewVieMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { menuReviewView(evt); } }); sessionMenu.add(reviewVieMenuItem); sessionReportMenuItem.setText(resourceMap.getString("sessionReportMenuItem.text")); // NOI18N sessionReportMenuItem.setName("sessionReportMenuItem"); // NOI18N sessionReportMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { menuReportView(evt); } }); sessionMenu.add(sessionReportMenuItem); menuBar.add(sessionMenu); helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N helpMenu.setName("helpMenu"); // NOI18N aboutMenuItem.setAction(actionMap.get("showAboutBox")); // NOI18N aboutMenuItem.setName("aboutMenuItem"); // NOI18N helpMenu.add(aboutMenuItem); helpMenuItem.setAction(actionMap.get("showHelpPdf")); // NOI18N helpMenuItem.setText(resourceMap.getString("helpMenuItem.text")); // NOI18N helpMenuItem.setName("helpMenuItem"); // NOI18N helpMenu.add(helpMenuItem); menuBar.add(helpMenu); statusPanel.setName("statusPanel"); // NOI18N statusPanelSeparator.setName("statusPanelSeparator"); // NOI18N statusMessageLabel.setName("statusMessageLabel"); // NOI18N statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); statusAnimationLabel.setName("statusAnimationLabel"); // NOI18N progressBar.setName("progressBar"); // NOI18N javax.swing.GroupLayout statusPanelLayout = new javax.swing.GroupLayout(statusPanel); statusPanel.setLayout(statusPanelLayout); statusPanelLayout.setHorizontalGroup(statusPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(statusPanelSeparator, javax.swing.GroupLayout.DEFAULT_SIZE, 1020, Short.MAX_VALUE) .addGroup(statusPanelLayout.createSequentialGroup().addContainerGap() .addComponent(statusMessageLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 850, Short.MAX_VALUE) .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(statusAnimationLabel).addContainerGap())); statusPanelLayout.setVerticalGroup(statusPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(statusPanelLayout.createSequentialGroup() .addComponent(statusPanelSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(statusMessageLabel).addComponent(statusAnimationLabel) .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(3, 3, 3))); wizardPopUpBugTab.setName("wizardPopUpBugTab"); // NOI18N wizardPopUpIssueTab.setName("wizardPopUpIssueTab"); // NOI18N setComponent(mainPanel); setMenuBar(menuBar); setStatusBar(statusPanel); }
From source file:com.lp.client.frame.component.PanelDokumentenablage.java
private void jbInit() throws Throwable { if (LPMain.getInstance().getDesktop() .darfAnwenderAufZusatzfunktionZugreifen(MandantFac.ZUSATZFUNKTION_DOKUMENTENABLAGE)) { if (!(new HeliumDocPath()).equals(fullDocPath)) { bHatDokumentenablage = true; }//w w w . ja v a2 s. com } if (bShowExitButton) { String[] aWhichButtonIUse = new String[] { PanelBasis.ACTION_NEW, PanelBasis.ACTION_UPDATE, PanelBasis.ACTION_SAVE, PanelBasis.ACTION_DISCARD }; enableToolsPanelButtons(aWhichButtonIUse); createAndSaveAndShowButton("/com/lp/client/res/scanner.png", "TWAIN-Import", BUTTON_SCAN, null); } dropArea.setCenterText(LPMain.getTextRespectUISPr("lp.datei.draganddrop.ablegen")); dropArea.setBackground(Color.LIGHT_GRAY); dropArea.setSupportFiles(true); dropArea.addDropListener(this); dropArea.setMinimumSize(new Dimension(200, 100)); JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT); JPanel leftPane = new JPanel(); JPanel rightPane = new JPanel(); JLayeredPane rightLayered = new JLayeredPane(); rightLayered.setLayout(new GridBagLayout()); rightLayered.add(rightPane, new GridBagConstraints(1, 1, 1, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); // rightLayered.setLayer(rightPane, 0, 1); if (bShowExitButton && bHatDokumentenablage) rightLayered.add(dropArea, new GridBagConstraints(1, 2, 1, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); // rightLayered.setLayer(dropArea, 1, 1); rightPane.setLayout(new GridBagLayout()); tree = new WrapperJTree(treeModel); tree.setEditable(false); tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); tree.setShowsRootHandles(true); tree.setRowHeight(0); tree.setCellRenderer(new ToolTipCellRenderer()); ToolTipManager.sharedInstance().registerComponent(tree); tree.addTreeSelectionListener(this); refresh(); personalDto = DelegateFactory.getInstance().getPersonalDelegate() .personalFindByPrimaryKey(LPMain.getTheClient().getIDPersonal()); dokumentbelegartDto = DelegateFactory.getInstance().getJCRDocDelegate() .dokumentbelegartfindbyMandant(LPMain.getTheClient().getMandant()); for (int i = 0; i < dokumentbelegartDto.length; i++) { if (!JCRDocFac.DEFAULT_ARCHIV_BELEGART.equals(dokumentbelegartDto[i].getCNr())) wcbBelegart.addItem(dokumentbelegartDto[i].getCNr()); } dokumentgruppierungDto = DelegateFactory.getInstance().getJCRDocDelegate() .dokumentgruppierungfindbyMandant(LPMain.getTheClient().getMandant()); for (int i = 0; i < dokumentgruppierungDto.length; i++) { if (!JCRDocFac.DEFAULT_ARCHIV_GRUPPE.equals(dokumentgruppierungDto[i].getCNr()) || !JCRDocFac.DEFAULT_KOPIE_GRUPPE.equals(dokumentgruppierungDto[i].getCNr()) || !JCRDocFac.DEFAULT_VERSANDAUFTRAG_GRUPPE.equals(dokumentgruppierungDto[i].getCNr())) { wcbGruppierung.addItem(dokumentgruppierungDto[i].getCNr()); } } // Listen for when the selection changes. tree.addTreeExpansionListener(this); wcbVersteckteAnzeigen.setEnabled(true); wcbVersteckteAnzeigen.addActionListener(actionListener); wtfSuche.setEditable(true); wbuSuche.setEnabled(true); wbuSuche.addActionListener(actionListener); wbuPartner = new WrapperButton(); wbuPartner.setText(LPMain.getTextRespectUISPr("button.partner")); wbuPartner.setToolTipText(LPMain.getTextRespectUISPr("button.partner.tooltip")); wbuPartner.setActionCommand(ACTION_SPECIAL_PARTNER); wbuPartner.addActionListener(this); wbuChooseDoc.setActionCommand(ACTION_SPECIAL_CHOOSE); wbuChooseDoc.addActionListener(this); wbuShowDoc.setActionCommand(ACTION_SPECIAL_SHOW); wbuShowDoc.addActionListener(this); wbuSaveDoc.setActionCommand(ACTION_SPECIAL_SAVE); wbuSaveDoc.addActionListener(this); wtfPartner = new WrapperTextField(); wtfPartner.setColumnsMax(Facade.MAX_UNBESCHRAENKT); wtfPartner.setActivatable(false); wtfAnleger.setActivatable(false); wdfZeitpunkt.setActivatable(false); wtfBelegnummer.setActivatable(false); wtfTable.setActivatable(false); wtfRow.setActivatable(false); wtfFilename.setActivatable(false); wtfFilename.setColumnsMax(100); wtfMIME.setActivatable(false); wcbVersteckt.addItemListener(new ItemListener() { @Override public void itemStateChanged(ItemEvent e) { wtfSchlagworte.setMandatoryField(!wcbVersteckt.isSelected()); } }); if (bHatStufe0) { wcbSicherheitsstufe.addItem(JCRDocFac.SECURITY_NONE); } if (bHatStufe1) { wcbSicherheitsstufe.addItem(JCRDocFac.SECURITY_LOW); } if (bHatStufe2) { wcbSicherheitsstufe.addItem(JCRDocFac.SECURITY_MEDIUM); } if (bHatStufe3) { wcbSicherheitsstufe.addItem(JCRDocFac.SECURITY_HIGH); } if (bHatStufe99) { wcbSicherheitsstufe.addItem(JCRDocFac.SECURITY_ARCHIV); } wtfTable.setMandatoryField(true); wtfName.setMandatoryField(true); wtfName.setColumnsMax(200); wtfBelegnummer.setMandatoryField(true); wtfRow.setMandatoryField(true); wtfFilename.setMandatoryField(true); wtfMIME.setMandatoryField(true); wtfAnleger.setMandatoryField(true); wtfSchlagworte.setMandatoryField(true); wtfSchlagworte.setColumnsMax(300); wdfZeitpunkt.setMandatoryField(true); wtfPartner.setMandatoryField(true); treeView = new JScrollPane(tree); treeView.setMinimumSize(new Dimension(200, 10)); treeView.setPreferredSize(new Dimension(200, 10)); iZeile = 0; if (!bShowExitButton) { jpaWorkingOn.add(wtfSuche, new GridBagConstraints(0, iZeile, 1, 1, 0.2, 0.0, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); jpaWorkingOn.add(wbuSuche, new GridBagConstraints(1, iZeile, 1, 1, 0.1, 0.0, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); iZeile++; } jpaWorkingOn.add(wcbVersteckteAnzeigen, new GridBagConstraints(0, iZeile, 1, 1, 1, 0.0, GridBagConstraints.EAST, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); iZeile++; leftPane.add(treeView); jpaWorkingOn.add(splitPane, new GridBagConstraints(0, iZeile, 3, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); iZeile = 0; rightPane.add(wlaName, new GridBagConstraints(0, iZeile, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); rightPane.add(wtfName, new GridBagConstraints(1, iZeile, 3, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); rightPane.add(wlaTable, new GridBagConstraints(4, iZeile, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); rightPane.add(wtfTable, new GridBagConstraints(5, iZeile, 2, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); iZeile++; rightPane.add(wlaSchlagworte, new GridBagConstraints(0, iZeile, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); rightPane.add(wtfSchlagworte, new GridBagConstraints(1, iZeile, 6, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); iZeile++; rightPane.add(wlaZeitpunkt, new GridBagConstraints(0, iZeile, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); rightPane.add(wdfZeitpunkt, new GridBagConstraints(1, iZeile, 3, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); rightPane.add(wlaSicherheitsstufe, new GridBagConstraints(4, iZeile, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); rightPane.add(wcbSicherheitsstufe, new GridBagConstraints(5, iZeile, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); rightPane.add(wcbVersteckt, new GridBagConstraints(6, iZeile, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); iZeile++; rightPane.add(wlaBelegnummer, new GridBagConstraints(0, iZeile, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); rightPane.add(wtfBelegnummer, new GridBagConstraints(1, iZeile, 3, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); rightPane.add(wlaRow, new GridBagConstraints(4, iZeile, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); rightPane.add(wtfRow, new GridBagConstraints(5, iZeile, 2, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); iZeile++; rightPane.add(wlaFilename, new GridBagConstraints(0, iZeile, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); rightPane.add(wtfFilename, new GridBagConstraints(1, iZeile, 3, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); rightPane.add(wlaMIME, new GridBagConstraints(4, iZeile, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); rightPane.add(wtfMIME, new GridBagConstraints(5, iZeile, 2, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); iZeile++; rightPane.add(wlaBelegart, new GridBagConstraints(0, iZeile, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); rightPane.add(wcbBelegart, new GridBagConstraints(1, iZeile, 3, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); rightPane.add(wlaGruppierung, new GridBagConstraints(4, iZeile, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); rightPane.add(wcbGruppierung, new GridBagConstraints(5, iZeile, 2, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); iZeile++; rightPane.add(wbuPartner, new GridBagConstraints(0, iZeile, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); rightPane.add(wtfPartner, new GridBagConstraints(1, iZeile, 3, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); rightPane.add(wlaAnleger, new GridBagConstraints(4, iZeile, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); rightPane.add(wtfAnleger, new GridBagConstraints(5, iZeile, 2, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); iZeile++; rightPane.add(wbuChooseDoc, new GridBagConstraints(0, iZeile, 3, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); rightPane.add(wbuShowDoc, new GridBagConstraints(3, iZeile, 2, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); rightPane.add(wbuSaveDoc, new GridBagConstraints(5, iZeile, 2, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); iZeile++; rightPane.add(wlaVorschau, new GridBagConstraints(0, iZeile, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); iZeile++; rightPane.add(wmcMedia, new GridBagConstraints(0, iZeile, 7, 4, 1.0, 0.5, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0)); splitPane.setLeftComponent(treeView); splitPane.setRightComponent(rightLayered); }
From source file:com.xilinx.kintex7.MainScreen.java
private Container createContentPane() { JPanel contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); contentPane.setOpaque(true);//from w ww . j ava 2 s . c o m mainPanel = new JPanel(new BorderLayout()); mainPanel.setBounds(0, 0, minWidth, minHeight); testPanel = new JPanel(new BorderLayout()); testPanel.add(testAndStats(), BorderLayout.CENTER); mainPanel.add(testPanel, BorderLayout.LINE_START); //Make the center component big, since that's the //typical usage of BorderLayout. tabs = new JTabbedPane(); mainPanel.add(tabs, BorderLayout.CENTER); tabs.add("System Monitor", pciInfo()); tabs.add("Performance Plots", plotPanel()); mainPanel.setOpaque(true); try { imagePanel = new ImageBackgroundPanel(blockDiagram, false); } catch (Exception e) { } /*imagePanel.setBorder(BorderFactory.createCompoundBorder( BorderFactory.createTitledBorder("Design Block Diagram"), BorderFactory.createEmptyBorder(5,5,5,5)));*/ imagePanel.setBackground(Color.WHITE); imagePanel.setSize(minWidth, minHeight); imagePanel.setLocation(0, 0); imagePanel.setOpaque(true); final JLayeredPane layeredPane = new JLayeredPane(); layeredPane.setPreferredSize(new Dimension(minWidth, minHeight)); layeredPane.add(mainPanel, JLayeredPane.DEFAULT_LAYER, 0); layeredPane.add(imagePanel, JLayeredPane.DEFAULT_LAYER, 0); layeredPane.addComponentListener(new ComponentListener() { @Override public void componentResized(ComponentEvent ce) { mainPanel.setBounds(0, 0, Math.max(minWidth, layeredPane.getWidth()), Math.max(minHeight, layeredPane.getHeight())); if (layeredPane.getWidth() > 1024) { tplotPanel.setPreferredSize(new Dimension(300, 100)); } else { tplotPanel.setPreferredSize(new Dimension(200, 100)); } imagePanel.setSize(mainPanel.getWidth(), mainPanel.getHeight()); imagePanel.setLocation(0, 0); mainPanel.repaint(); } @Override public void componentMoved(ComponentEvent ce) { //throw new UnsupportedOperationException("Not supported yet."); } @Override public void componentShown(ComponentEvent ce) { //throw new UnsupportedOperationException("Not supported yet."); } @Override public void componentHidden(ComponentEvent ce) { //throw new UnsupportedOperationException("Not supported yet."); } }); // on top, but invisible initially imagePanel.setVisible(false); JPanel bpanel = new JPanel(new BorderLayout()); final JButton button = new JButton( "<html><b>B<br>L<br>O<br>C<br>K<br> <br>D<br>I<br>A<br>G<br>R<br>A<br>M<br></b></html>"); button.setToolTipText("Click here to see the block diagram"); button.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent event) { adjustSelectionPanel(); } }); bpanel.add(button, BorderLayout.CENTER); contentPane.add(layeredPane, BorderLayout.CENTER); contentPane.add(button, BorderLayout.EAST); JLabel mLabel = new JLabel(modeText, JLabel.CENTER); mLabel.setFont(new Font(modeText, Font.BOLD, 15)); contentPane.add(mLabel, BorderLayout.PAGE_START); return contentPane; }
From source file:com.xilinx.virtex7.MainScreen.java
private Container createContentPane() { JPanel contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); contentPane.setOpaque(true);/*from w w w . j a va 2 s . c om*/ mainPanel = new JPanel(new BorderLayout()); mainPanel.setBounds(0, 0, minWidth, minHeight); testPanel = new JPanel(new BorderLayout()); ttabs = new JTabbedPane(); ttabs.add("DATAPATH 0&1", testAndStats()); if (mode == LandingPage.PERFORMANCE_MODE_RAW || mode == LandingPage.PERFORMANCE_MODE_RAW_DV || mode == LandingPage.APPLICATION_MODE || mode == LandingPage.APPLICATION_MODE_P2P) // condition for placing dynamic tabs. a kcah ttabs.add("DATAPATH 2&3", testAndStatsSecondTab()); else testAndStatsSecondTab(); testPanel.add(ttabs, BorderLayout.CENTER); testPanel.add(messageBox(), BorderLayout.PAGE_END); mainPanel.add(testPanel, BorderLayout.LINE_START); //Make the center component big, since that's the //typical usage of BorderLayout. tabs = new JTabbedPane(); mainPanel.add(tabs, BorderLayout.CENTER); tabs.add("System Monitor", pciInfo()); tabs.add("Performance Plots", plotPanel()); mainPanel.setOpaque(true); try { imagePanel = new ImageBackgroundPanel(blockDiagram, false); } catch (Exception e) { } /*imagePanel.setBorder(BorderFactory.createCompoundBorder( BorderFactory.createTitledBorder("Design Block Diagram"), BorderFactory.createEmptyBorder(5,5,5,5)));*/ imagePanel.setBackground(Color.WHITE); imagePanel.setSize(minWidth, minHeight); imagePanel.setLocation(0, 0); imagePanel.setOpaque(true); final JLayeredPane layeredPane = new JLayeredPane(); layeredPane.setPreferredSize(new Dimension(minWidth, minHeight)); layeredPane.add(mainPanel, JLayeredPane.DEFAULT_LAYER, 0); layeredPane.add(imagePanel, JLayeredPane.DEFAULT_LAYER, 0); layeredPane.addComponentListener(new ComponentListener() { @Override public void componentResized(ComponentEvent ce) { mainPanel.setBounds(0, 0, Math.max(minWidth, layeredPane.getWidth()), Math.max(minHeight, layeredPane.getHeight())); if (layeredPane.getWidth() > 1024) { tplotPanel.setPreferredSize(new Dimension(300, 100)); } else { tplotPanel.setPreferredSize(new Dimension(200, 100)); } imagePanel.setSize(mainPanel.getWidth(), mainPanel.getHeight()); imagePanel.setLocation(0, 0); mainPanel.repaint(); } @Override public void componentMoved(ComponentEvent ce) { //throw new UnsupportedOperationException("Not supported yet."); } @Override public void componentShown(ComponentEvent ce) { //throw new UnsupportedOperationException("Not supported yet."); } @Override public void componentHidden(ComponentEvent ce) { //throw new UnsupportedOperationException("Not supported yet."); } }); // on top, but invisible initially imagePanel.setVisible(false); JPanel bpanel = new JPanel(new BorderLayout()); final JButton button = new JButton( "<html><b>B<br>L<br>O<br>C<br>K<br> <br>D<br>I<br>A<br>G<br>R<br>A<br>M<br></b></html>"); button.setToolTipText("Click here to see the block diagram"); button.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent event) { adjustSelectionPanel(); } }); bpanel.add(button, BorderLayout.CENTER); contentPane.add(layeredPane, BorderLayout.CENTER); contentPane.add(button, BorderLayout.EAST); JPanel panel = new JPanel(new BorderLayout()); JLabel mLabel = new JLabel(modeText, JLabel.CENTER); mLabel.setFont(new Font(modeText, Font.BOLD, 15)); panel.add(mLabel, BorderLayout.PAGE_START); JPanel ledPanel = new JPanel(new BorderLayout()); JPanel iledPanel = new JPanel(); iledPanel.setLayout(new BoxLayout(iledPanel, BoxLayout.X_AXIS)); led_ddr3_1 = new JLabel("DDR3 0", new ImageIcon(led1), JLabel.CENTER); led_ddr3_2 = new JLabel("DDR3 1", new ImageIcon(led1), JLabel.CENTER); led_phy0 = new JLabel("PHY 0", new ImageIcon(led1), JLabel.CENTER); led_phy1 = new JLabel("PHY 1", new ImageIcon(led1), JLabel.CENTER); led_phy2 = new JLabel("PHY 2", new ImageIcon(led1), JLabel.CENTER); led_phy3 = new JLabel("PHY 3", new ImageIcon(led1), JLabel.CENTER); JPanel le1 = new JPanel(new BorderLayout()); le1.add(led_ddr3_1, BorderLayout.CENTER); JPanel le2 = new JPanel(new BorderLayout()); le2.add(led_ddr3_2, BorderLayout.CENTER); JPanel le3 = new JPanel(new BorderLayout()); le3.add(led_phy0, BorderLayout.CENTER); JPanel le4 = new JPanel(new BorderLayout()); le4.add(led_phy1, BorderLayout.CENTER); JPanel le5 = new JPanel(new BorderLayout()); le5.add(led_phy2, BorderLayout.CENTER); JPanel le6 = new JPanel(new BorderLayout()); le6.add(led_phy3, BorderLayout.CENTER); iledPanel.add(le1); iledPanel.add(le2); iledPanel.add(le3); iledPanel.add(le4); iledPanel.add(le5); iledPanel.add(le6); if (mode == LandingPage.PERFORMANCE_MODE_RAW || mode == LandingPage.PERFORMANCE_MODE_RAW_DV) { startAll_tooltip = "This will start tests on all data paths"; startAlltests = new JButton("Start All"); startAlltests.setToolTipText(startAll_tooltip); startAlltests.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent ae) { if (startAlltests.getText().equals("Start All")) { startAll_tooltip = "This will stop tests on all data paths"; startAlltests.setToolTipText(startAll_tooltip); // check whether any tests are already started String message = ""; if (testStarted || testStarted1) message = "Test(s) on Path 0&1 are running. Cannot do Start All"; if (testStarted2 || testStarted3) { if (message.length() > 0) // test 1 and 0 are also running message = "Test(s) on Path 0&1 and 2&3 are running. Cannot do Start All"; else message = "Test(s) on Path 2&3 are running. Cannot do Start All"; } if (message.length() > 0) { JOptionPane.showMessageDialog(null, message, "Error", JOptionPane.ERROR_MESSAGE); } else { String ledsMsg = checkLedsState(); // condition to check the ddr and py leds are enable or not if (ledsMsg.length() == 0) { startAlltests.setEnabled(false); startAlltests.setText("Stop All"); startTest.doClick(); stest.doClick(); s3test.doClick(); s4test.doClick(); // disable all buttons startTest.setEnabled(false); stest.setEnabled(false); s3test.setEnabled(false); s4test.setEnabled(false); startAlltests.setEnabled(true); } else {// shows alert when leds are disabled JOptionPane.showMessageDialog(null, ledsMsg, "Error", JOptionPane.ERROR_MESSAGE); } } } else { startAlltests.setEnabled(false); startAll_tooltip = "This will start tests on all data paths"; startAlltests.setToolTipText(startAll_tooltip); /* startTest.setEnabled(true); stest.setEnabled(true); s3test.setEnabled(true); s4test.setEnabled(true); s3test.doClick(); s4test.doClick(); startTest.doClick(); stest.doClick(); */ SwingWorker worker = new SwingWorker<Void, Void>() { @Override protected Void doInBackground() throws Exception { try { stopTest4(); s4test.setEnabled(false); stopTest3(); s3test.setEnabled(false); stopTest2(); stest.setEnabled(false); stopTest1(); startTest.setEnabled(false); startAlltests.setText("Start All"); startAlltests.setEnabled(true); startTest.setEnabled(true); stest.setEnabled(true); s3test.setEnabled(true); s4test.setEnabled(true); } catch (Exception e) { e.printStackTrace(); } return null; } }; worker.execute(); } } }); iledPanel.add(startAlltests); } ledPanel.add(iledPanel, BorderLayout.CENTER); //tstats.add(ledPanel); panel.add(ledPanel, BorderLayout.CENTER); contentPane.add(panel, BorderLayout.PAGE_START); return contentPane; }
From source file:org.accada.hal.impl.sim.GraphicSimulator.java
/** * creates the layered pane if it does not already exists * /*from w ww . java2 s . co m*/ * @return layered pane */ private JLayeredPane getJLayeredPane() { if (jLayeredPane == null) { jLayeredPane = new JLayeredPane(); jLayeredPane.setLayout(null); jLayeredPane.setOpaque(true); jLayeredPane.setBackground(Color.WHITE); jLayeredPane.add(getReader(), new Integer(0)); // add antennas String[] antennaIds = null; antennaIds = controller.getReadPointNames(); for (int i = 0; i < antennaIds.length; i++) { createNewAntenna(antennaIds[i]); } jLayeredPane.add(getContextMenu()); jLayeredPane.add(getMgmtSimMenu()); // add mouse listener jLayeredPane.addMouseListener(new MouseAdapter() { // context menu public void mouseReleased(MouseEvent e) { hideActiveContextMenuAndSelection(); if (e.getButton() == MouseEvent.BUTTON3) { Point posOnScreen = getJLayeredPane().getLocationOnScreen(); contextMenu.setLocation(posOnScreen.x + e.getX(), posOnScreen.y + e.getY()); contextMenu.setVisible(true); mgmtSimMenu.setVisible(false); setActiveContextMenu(contextMenu); } else { contextMenu.setVisible(false); mgmtSimMenu.setVisible(false); if (e.getButton() == MouseEvent.BUTTON1) { selection.select(tags); } } } // selection public void mousePressed(final MouseEvent e) { hideActiveContextMenuAndSelection(); if (e.getButton() == MouseEvent.BUTTON1) { selection.setBounds(0, 0, getProperty("WindowWidth"), getProperty("WindowHeight")); selection.setStartPoint(e.getPoint()); jLayeredPane.add(selection, new Integer(2)); } } }); // add drag listener jLayeredPane.addMouseMotionListener(new MouseMotionAdapter() { public void mouseDragged(MouseEvent e) { if (selection.isActive()) { selection.setCurrentPoint(e.getPoint()); } } }); } return jLayeredPane; }
From source file:org.accada.hal.impl.sim.multi.GraphicSimulatorServer.java
/** * creates the layered pane if it does not already exists * /*from w ww. ja va 2s . co m*/ * @return layered pane */ private JLayeredPane getJLayeredPane() { if (jLayeredPane == null) { jLayeredPane = new JLayeredPane(); jLayeredPane.setLayout(null); jLayeredPane.setOpaque(true); jLayeredPane.setBackground(Color.WHITE); //jLayeredPane.add(getReader(), new Integer(0)); // add readers createReaders(controller.getReaderIds()); // add context menu jLayeredPane.add(getContextMenu()); // add mouse listener jLayeredPane.addMouseListener(new MouseAdapter() { // context menu public void mouseReleased(MouseEvent e) { hideActiveContextMenuAndSelection(); if (e.getButton() == MouseEvent.BUTTON3) { Point posOnScreen = getJLayeredPane().getLocationOnScreen(); contextMenu.setLocation(posOnScreen.x + e.getX(), posOnScreen.y + e.getY()); contextMenu.setVisible(true); setActiveContextMenu(contextMenu); } else { contextMenu.setVisible(false); if (e.getButton() == MouseEvent.BUTTON1) { selection.select(tags); } } } // selection public void mousePressed(final MouseEvent e) { hideActiveContextMenuAndSelection(); if (e.getButton() == MouseEvent.BUTTON1) { selection.setBounds(0, 0, getProperty("WindowWidth"), getProperty("WindowHeight")); selection.setStartPoint(e.getPoint()); jLayeredPane.add(selection, new Integer(2)); } } }); // add drag listener jLayeredPane.addMouseMotionListener(new MouseMotionAdapter() { public void mouseDragged(MouseEvent e) { if (selection.isActive()) { selection.setCurrentPoint(e.getPoint()); } } }); } return jLayeredPane; }
From source file:org.accada.reader.hal.impl.sim.GraphicSimulator.java
/** * creates the layered pane if it does not already exists * /* www. ja v a2s . c o m*/ * @return layered pane */ private JLayeredPane getJLayeredPane() { if (jLayeredPane == null) { jLayeredPane = new JLayeredPane(); jLayeredPane.setLayout(null); jLayeredPane.setOpaque(true); jLayeredPane.setBackground(Color.WHITE); jLayeredPane.add(getReader(), new Integer(0)); // add antennas String[] antennaIds = null; try { antennaIds = controller.getReadPointNames(); } catch (HardwareException ignored) { } for (int i = 0; i < antennaIds.length; i++) { createNewAntenna(antennaIds[i]); } jLayeredPane.add(getContextMenu()); jLayeredPane.add(getMgmtSimMenu()); // add mouse listener jLayeredPane.addMouseListener(new MouseAdapter() { // context menu public void mouseReleased(MouseEvent e) { hideActiveContextMenuAndSelection(); if (e.getButton() == MouseEvent.BUTTON3) { Point posOnScreen = getJLayeredPane().getLocationOnScreen(); contextMenu.setLocation(posOnScreen.x + e.getX(), posOnScreen.y + e.getY()); contextMenu.setVisible(true); mgmtSimMenu.setVisible(false); setActiveContextMenu(contextMenu); } else { contextMenu.setVisible(false); mgmtSimMenu.setVisible(false); if (e.getButton() == MouseEvent.BUTTON1) { selection.select(tags); } } } // selection public void mousePressed(final MouseEvent e) { hideActiveContextMenuAndSelection(); if (e.getButton() == MouseEvent.BUTTON1) { selection.setBounds(0, 0, getProperty("WindowWidth"), getProperty("WindowHeight")); selection.setStartPoint(e.getPoint()); jLayeredPane.add(selection, new Integer(2)); } } }); // add drag listener jLayeredPane.addMouseMotionListener(new MouseMotionAdapter() { public void mouseDragged(MouseEvent e) { if (selection.isActive()) { selection.setCurrentPoint(e.getPoint()); } } }); } return jLayeredPane; }