/* WARNING: THIS METHOD WILL BE REGENERATED. */ private javax.swing.JPanel getJDialogContentPane() { if (ivjJDialogContentPane == null) { try { ivjJDialogContentPane = new javax.swing.JPanel(); ivjJDialogContentPane.setName("JDialogContentPane"); ivjJDialogContentPane.setLayout(new java.awt.GridBagLayout()); java.awt.GridBagConstraints constraintsJButton1 = new java.awt.GridBagConstraints(); constraintsJButton1.gridx = 0; constraintsJButton1.gridy = 1; constraintsJButton1.ipadx = 50; constraintsJButton1.insets = new java.awt.Insets(6, 0, 6, 0); getJDialogContentPane().add(getJButton1(), constraintsJButton1); java.awt.GridBagConstraints constraintsJScrollPane1 = new java.awt.GridBagConstraints(); constraintsJScrollPane1.gridx = 0; constraintsJScrollPane1.gridy = 0; constraintsJScrollPane1.fill = java.awt.GridBagConstraints.BOTH; constraintsJScrollPane1.weightx = 1.0; constraintsJScrollPane1.weighty = 1.0; constraintsJScrollPane1.insets = new java.awt.Insets(6, 6, 6, 4); getJDialogContentPane().add(getJScrollPane1(), constraintsJScrollPane1); // user code begin {1} // user code end } catch (java.lang.Throwable ivjExc) { // user code begin {2} // user code end handleException(ivjExc); } } return ivjJDialogContentPane; }
/** * This method initializes panelCommand * * @return javax.swing.JPanel */ private javax.swing.JPanel getPanelCommand() { if (panelCommand == null) { panelCommand = new javax.swing.JPanel(); panelCommand.setLayout(new java.awt.GridBagLayout()); panelCommand.setName(prefix + ".panel"); GridBagConstraints gridBagConstraints1 = new GridBagConstraints(); GridBagConstraints gridBagConstraints2 = new GridBagConstraints(); gridBagConstraints1.gridx = 0; gridBagConstraints1.gridy = 0; gridBagConstraints1.insets = new java.awt.Insets(2, 2, 2, 2); gridBagConstraints1.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints1.weightx = 1.0D; gridBagConstraints2.gridx = 0; gridBagConstraints2.gridy = 1; gridBagConstraints2.weightx = 1.0; gridBagConstraints2.weighty = 1.0; gridBagConstraints2.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints2.insets = new java.awt.Insets(0, 0, 0, 0); gridBagConstraints2.anchor = java.awt.GridBagConstraints.NORTHWEST; panelCommand.add(this.getPanelToolbar(), gridBagConstraints1); panelCommand.add(getWorkPanel(), gridBagConstraints2); } return panelCommand; }
/** * This method initializes jPanel * * @return javax.swing.JPanel */ private JPanel getJPanel() { if (jPanel == null) { java.awt.GridBagConstraints gridBagConstraints7 = new GridBagConstraints(); java.awt.GridBagConstraints gridBagConstraints5 = new GridBagConstraints(); java.awt.GridBagConstraints gridBagConstraints2 = new GridBagConstraints(); jPanel = new JPanel(); jPanel.setLayout(new GridBagLayout()); jPanel.setName("jPanel"); gridBagConstraints2.weightx = 1.0; gridBagConstraints2.weighty = 1.0; gridBagConstraints2.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints5.gridx = 0; gridBagConstraints5.gridy = 1; gridBagConstraints5.ipadx = 0; gridBagConstraints5.ipady = 0; gridBagConstraints5.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints5.weightx = 1.0D; gridBagConstraints5.weighty = 1.0D; gridBagConstraints5.insets = new java.awt.Insets(2, 5, 2, 5); gridBagConstraints5.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints7.weightx = 1.0; gridBagConstraints7.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints7.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints7.gridx = 0; gridBagConstraints7.gridy = 0; gridBagConstraints7.insets = new java.awt.Insets(2, 5, 2, 5); jPanel.add(getTxtHeadline(), gridBagConstraints7); jPanel.add(getPanelParam(), gridBagConstraints5); } return jPanel; }
/** * This method initializes logPanel * * @return javax.swing.JPanel */ private JPanel getLogPanel() { if (logPanel == null) { GridBagConstraints gridBagConstraints15 = new GridBagConstraints(); gridBagConstraints15.fill = GridBagConstraints.BOTH; gridBagConstraints15.weighty = 1.0; gridBagConstraints15.gridx = 0; gridBagConstraints15.gridy = 1; gridBagConstraints15.insets = new Insets(10, 10, 10, 10); gridBagConstraints15.weightx = 1.0; GridBagConstraints gridBagConstraints12 = new GridBagConstraints(); gridBagConstraints12.gridx = 0; gridBagConstraints12.insets = new Insets(5, 5, 5, 0); gridBagConstraints12.gridy = 2; GridBagConstraints gridBagConstraints9 = new GridBagConstraints(); gridBagConstraints9.gridx = 0; gridBagConstraints9.insets = new Insets(5, 0, 5, 0); gridBagConstraints9.ipadx = 0; gridBagConstraints9.gridy = 0; logTitleLabel = new JLabel(); logTitleLabel.setText("EAR Log View"); logTitleLabel.setFont(new Font("Courier New", Font.BOLD, 20)); logPanel = new JPanel(); logPanel.setLayout(new GridBagLayout()); logPanel.setName("logPanel"); logPanel.add(logTitleLabel, gridBagConstraints9); logPanel.add(getLogScrollPane(), gridBagConstraints15); logPanel.add(getBackButton(), gridBagConstraints12); } return logPanel; }
/* WARNING: THIS METHOD WILL BE REGENERATED. */ private javax.swing.JPanel getJFrameContentPane() { if (ivjJFrameContentPane == null) { try { ivjJFrameContentPane = new javax.swing.JPanel(); ivjJFrameContentPane.setName("JFrameContentPane"); ivjJFrameContentPane.setLayout(new java.awt.GridBagLayout()); ivjJFrameContentPane.setBackground(java.awt.SystemColor.control); java.awt.GridBagConstraints constraintsTestingBrowserPanel1 = new java.awt.GridBagConstraints(); constraintsTestingBrowserPanel1.gridx = 1; constraintsTestingBrowserPanel1.gridy = 1; constraintsTestingBrowserPanel1.fill = java.awt.GridBagConstraints.BOTH; constraintsTestingBrowserPanel1.weightx = 1.0; constraintsTestingBrowserPanel1.weighty = 1.0; constraintsTestingBrowserPanel1.insets = new java.awt.Insets(2, 2, 2, 2); getJFrameContentPane().add(getTestingBrowserPanel1(), constraintsTestingBrowserPanel1); // user code begin {1} // user code end } catch (java.lang.Throwable ivjExc) { // user code begin {2} // user code end handleException(ivjExc); } } return ivjJFrameContentPane; }
JPanel getPanel() { if (panel == null) { panel = createPanel(); panel.setName(axisName); } return panel; }
/** * Return the JFrameContentPane property value. * * @return javax.swing.JPanel */ private /* WARNING: THIS METHOD WILL BE REGENERATED. */ javax.swing.JPanel getMainPanel() { if (ivjMainPanel == null) { try { ivjMainPanel = new javax.swing.JPanel(); ivjMainPanel.setName("MainPanel"); ivjMainPanel.setLayout(new java.awt.GridBagLayout()); ivjMainPanel.setBackground(java.awt.SystemColor.control); java.awt.GridBagConstraints constraintsProfileBrowserPanel = new java.awt.GridBagConstraints(); constraintsProfileBrowserPanel.gridx = 1; constraintsProfileBrowserPanel.gridy = 1; constraintsProfileBrowserPanel.fill = java.awt.GridBagConstraints.BOTH; constraintsProfileBrowserPanel.weightx = 1.0; constraintsProfileBrowserPanel.weighty = 1.0; constraintsProfileBrowserPanel.insets = new java.awt.Insets(2, 2, 2, 2); getMainPanel().add(getProfileBrowserPanel(), constraintsProfileBrowserPanel); // user code begin {1} // user code end } catch (java.lang.Throwable ivjExc) { // user code begin {2} // user code end handleException(ivjExc); } } return ivjMainPanel; }
private JPanel getJPanel1() { if (jPanel1 == null) { jPanel1 = new JPanel(); jPanel1.setLayout(new CardLayout()); jPanel1.setName("jPanel1"); jPanel1.add(getJScrollPane1(), getJScrollPane1().getName()); } return jPanel1; }
/** * This method initializes separatorPanel * * @return javax.swing.JPanel */ private JPanel getSeparatorPanel() { if (separatorPanel == null) { separatorPanel = new JPanel(); separatorPanel.setLayout(new GridBagLayout()); separatorPanel.setBounds(new Rectangle(5, 108, 316, 2)); separatorPanel.setName("bottomPanelSeparator"); } return separatorPanel; }
public static JPanel createLabelPanel(String name, String label, JComponent content) { JPanel panel = new JPanel(new FlowLayout(FlowLayout.LEFT)); panel.setName("UIHelper.createLabelPanel"); JLabel jlabel; panel.add(jlabel = UIFactory.getFactory().createLabel(name, label)); jlabel.setHorizontalAlignment(JLabel.LEFT); panel.add(content); panel.setAlignmentX(JPanel.LEFT_ALIGNMENT); return panel; }
public DatabaseTab(final UISubsystem ui) throws Exception { init(ui.getRl(), ui.getRl().getResourceStream("xui/optionstabs/databasetab.xui.xml")); this.ui = ui; Language.translateXUIElements(getClass(), xui.getXUIComponents()); SubstanceThemeHelper.setButtonsToGeneralArea(xui.getXUIComponents()); tab = (JPanel) xui.getComponent("databasetab"); tab.setName(Language.getLocalizedString(getClass(), "title")); tab.setToolTipText(Language.getLocalizedString(getClass(), "tooltip")); }
/** * This method initializes resultInitialPanel1 * * @return javax.swing.JPanel */ private JPanel getResultInitialPanel1() { if (resultInitialPanel1 == null) { FlowLayout flowLayout = new FlowLayout(); flowLayout.setAlignment(FlowLayout.LEFT); resultInitialPanel1 = new JPanel(); resultInitialPanel1.setLayout(flowLayout); resultInitialPanel1.setName("resultInitialPanel1"); resultInitialPanel1.setBackground(WINDOW_BACKGROUND_COLOR); } return resultInitialPanel1; }
// </editor-fold > public DivPanel(JPanel parent, String name) { super(); this.parentPanel = parent; super.setName(name); if (this.parentPanel != null) { focusAndDropMouseAdapter = new FocusAndDropMouseAdapter(this.parentPanel, this); this.addMouseListener(focusAndDropMouseAdapter); scaleMouseAdapter = new ScaleMouseAdapter(this.parentPanel, this); this.addMouseMotionListener(scaleMouseAdapter); } }
private JPanel generatePanel(ID id, String label, boolean visibility, JTextField textField) { JPanel panel = new JPanel(); panel.setLayout(new GridLayout(2, 0)); panel.add(new JLabel(label)); panel.add(Box.createRigidArea(new Dimension(0, 5))); panel.add(textField); panel.setName(id.getValue()); panel.setVisible(visibility); return panel; }
public AllometryFunctionEditor( TreePopulation oPop, Allometry oAllom, AllometryParameterEdit oEdit) { super(oEdit, "Edit Allometry Functions", true); m_oPop = oPop; m_oAllom = oAllom; m_oParentEdit = oEdit; // Help ID m_oPop.getGUIManager().getHelpBroker().enableHelpKey(this.getRootPane(), m_sHelpID, null); Object[][] p_oTableData = null; Object[] p_oHeader; boolean[] p_bAppliesTo = new boolean[m_oPop.getNumberOfSpecies()]; int i; for (i = 0; i < p_bAppliesTo.length; i++) { p_bAppliesTo[i] = true; } // Assemble the allometry functions data p_oTableData = Behavior.formatDataForTable(p_oTableData, m_oAllom.getWhatAdultHDFunction()); p_oTableData = Behavior.formatDataForTable(p_oTableData, m_oAllom.getWhatSaplingHDFunction()); p_oTableData = Behavior.formatDataForTable(p_oTableData, m_oAllom.getWhatSeedlingHDFunction()); p_oTableData = Behavior.formatDataForTable(p_oTableData, m_oAllom.getWhatAdultCRDFunction()); p_oTableData = Behavior.formatDataForTable(p_oTableData, m_oAllom.getWhatSaplingCRDFunction()); p_oTableData = Behavior.formatDataForTable(p_oTableData, m_oAllom.getWhatAdultCDHFunction()); p_oTableData = Behavior.formatDataForTable(p_oTableData, m_oAllom.getWhatSaplingCDHFunction()); p_oHeader = Behavior.formatSpeciesHeaderRow(p_bAppliesTo, m_oPop); // Create the table from the data m_oTable = new EnhancedTable(p_oTableData, p_oHeader, this, "Allometry Functions"); // Create a table panel with an empty panel in CENTER so that the // table won't automatically fill the space JPanel jTablePanel = new JPanel(new BorderLayout()); jTablePanel.setName("Table Panel"); jTablePanel.setBorder(BorderFactory.createEmptyBorder(10, 0, 0, 0)); jTablePanel.setAlignmentX(Component.LEFT_ALIGNMENT); jTablePanel.add(m_oTable, BorderLayout.LINE_START); jTablePanel.add(new JPanel(), BorderLayout.CENTER); // Assemble the window JPanel jContentPanel = (JPanel) getContentPane(); jContentPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); getContentPane().setLayout(new java.awt.BorderLayout()); getContentPane().add(jTablePanel, BorderLayout.CENTER); getContentPane() .add( new OKCancelButtonPanel(this, m_oPop.getGUIManager().getHelpBroker(), m_sHelpID), BorderLayout.PAGE_END); }
/** Constructor for the GUI */ public GUI_Pi(Controller controller) { this.controller = controller; KeyDetector key = new KeyDetector(this, controller); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); resWidth = screenSize.width; resHeight = screenSize.height; initGui(); mainMenu.setName("Main"); // gamesMenu panels are initiated and given their name in a separate // class optionsMenu.setName("Options"); aboutMenu.setName("About"); this.controller.updateButtons(Main_Menu_Buttons); this.controller.updateButtons(gamePanel.buttons()); this.contentPane.revalidate(); this.contentPane.repaint(); }
/** * This method initializes resultProgressPanel4 * * @return javax.swing.JPanel */ private JPanel getResultProgressPanel4() { if (resultProgressPanel4 == null) { FlowLayout flowLayout = new FlowLayout(); flowLayout.setAlignment(FlowLayout.LEFT); flowLayout.setHgap(0); resultProgressPanel4 = new JPanel(); resultProgressPanel4.setLayout(flowLayout); resultProgressPanel4.setName("resultInProgressPanel4"); resultProgressPanel4.setBackground(WINDOW_BACKGROUND_COLOR); resultProgressPanel4.add(getResultProgressBar4(), null); } return resultProgressPanel4; }
private static void addTab(String tabName, JPanel panel) { container.addTab(tabName, panel); panel.setName(tabName); int index = container.indexOfTab(tabName); container.setToolTipTextAt(index, tabName); container.setSelectedIndex(index, true); container.setIconAt( index, new ImageIcon(FramePropertyLoader.getImageIcon("tabIcon").getImage())); resizeTab(MainRoboOfficeJFrame.getInstance().getWidth()); // tabTable.put(tabName,index); Tab currentTab = (Tab) panel; currentTab.setFocus(); }
private JPanel setupUpperPanel() { // strand links StrandLinksPanel strandLinksPanel = new StrandLinksPanel(mainFrame, scene, true); // person links PersonLinksPanel personLinksPanel = new PersonLinksPanel(mainFrame, scene); // location links LocationLinksPanel locationLinksPanel = new LocationLinksPanel(mainFrame, scene); JPanel buttonPanel = new JPanel(new MigLayout("flowy,insets 0")); buttonPanel.setName("buttonpanel"); buttonPanel.setOpaque(false); buttonPanel.add(btEdit); buttonPanel.add(btDelete); buttonPanel.add(btNew); JPanel panel = new JPanel(new MigLayout("ins 0", "[][grow][]", "[top][top][top]")); panel.setName(CN_UPPER_PANEL); panel.setOpaque(false); panel.add(lbSceneNo, "grow,width pref+10px,split 3"); panel.add(lbStatus); panel.add(lbInformational); panel.add(strandLinksPanel, "grow"); panel.add(buttonPanel, "spany 4,wrap"); JScrollPane scroller = new JScrollPane( personLinksPanel, JScrollPane.VERTICAL_SCROLLBAR_NEVER, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); scroller.setMinimumSize(new Dimension(20, 16)); scroller.setOpaque(false); scroller.getViewport().setOpaque(false); scroller.setBorder(null); panel.add(scroller, "spanx 2,growx,wrap"); panel.add(locationLinksPanel, "spanx 2,grow,wrap"); panel.add(lbTime); return panel; }
/** * This method initializes jPanel_TitleArea * * @return javax.swing.JPanel */ private JPanel getJPanel_TitleArea() { if (jPanel_TitleArea == null) { GridLayout gridLayout = new GridLayout(); gridLayout.setRows(2); gridLayout.setHgap(0); gridLayout.setColumns(0); gridLayout.setVgap(10); jPanel_TitleArea = new JPanel(); jPanel_TitleArea.setLayout(gridLayout); jPanel_TitleArea.setName("jPanel2"); jPanel_TitleArea.add(jLabel_Title, null); jPanel_TitleArea.add(getJPanel_ExplArea1(), null); } return jPanel_TitleArea; }
/** * This method initializes jPanel_ExplArea2 * * @return javax.swing.JPanel */ private JPanel getJPanel_ExplArea2() { if (jPanel_ExplArea2 == null) { jLabal_SubExpl = new ExtendedLabel(); jLabal_SubExpl.setText(""); jLabal_SubExpl.setFont(new Font("Dialog", Font.PLAIN, 14)); GridLayout gridLayout1 = new GridLayout(); gridLayout1.setRows(2); jPanel_ExplArea2 = new JPanel(); jPanel_ExplArea2.setName("jPanel4"); jPanel_ExplArea2.setLayout(gridLayout1); jPanel_ExplArea2.add(jLabel_MainExpl, null); jPanel_ExplArea2.add(jLabal_SubExpl, null); } return jPanel_ExplArea2; }
public void testWithComponentName() { panel.setName("someName"); // Mock object will return root. So we ensure that lookupImpl was called assertSame(root, strategy.lookup(root, "someName")); assertEquals("someName", strategy.getName(panel)); assertEquals("someName", strategy.get("lookupImpl(Component,String)")); assertEquals(root, strategy.lookup(root, "none")); assertEquals("none", strategy.get("lookupImpl(Component,String)")); assertNull(strategy.getName(anotherPanel)); strategy.register("someName", panel); assertSame(panel, strategy.lookup(root, "someName")); assertEquals("someName", strategy.getName(panel)); Exception ex = null; try { strategy.register("someOtherName", panel); } catch (Exception e) { ex = e; } assertTrue(ex instanceof IllegalArgumentException); assertSame(panel, strategy.lookup(root, "someName")); assertEquals("someName", strategy.getName(panel)); assertSame(root, strategy.lookup(root, "someOtherName")); assertEquals("someOtherName", strategy.get("lookupImpl(Component,String)")); anotherPanel.setName("someName"); assertSame(panel, strategy.lookup(root, "someName")); assertEquals("someName", strategy.getName(anotherPanel)); assertEquals("someName", strategy.getName(panel)); }
private JPanel createValidationPanel(Container contentPane) { JPanel pnValidationContainer = new JPanel(); contentPane.add(pnValidationContainer, BorderLayout.SOUTH); pnValidationContainer.setLayout(new BorderLayout(0, 0)); pnValidation = new JPanel(); pnValidation.setMinimumSize(new Dimension(0, 0)); pnValidation.setName(NAME_VALIDATION_PANEL); validationModel = new DefaultValidationResultModel(); pnValidation.setLayout(new MigLayout("", "[grow]", "[40px,grow]")); validationResultList = ValidationResultViewFactory.createReportList(validationModel); pnValidation.add(validationResultList, "cell 0 0,alignx right,growy"); pnValidationContainer.add(pnValidation, BorderLayout.NORTH); return pnValidationContainer; }
/** * Initialize the common user interface components. * * <p> */ protected JButton[] initUI( String title, JComponent extraComps, String confirm, String[][] extra, String cancel) { JButton[] extraBtns = null; /* create dialog body components */ { JPanel body = new JPanel(); body.setName("MainDialogPanel"); body.setLayout(new BoxLayout(body, BoxLayout.Y_AXIS)); body.add(UIFactory.createPanelLabel("Existing Layouts:")); body.add(Box.createRigidArea(new Dimension(0, 4))); { DefaultMutableTreeNode root = new DefaultMutableTreeNode(new TreeData(), true); DefaultTreeModel model = new DefaultTreeModel(root, true); JTree tree = new JFancyTree(model); pTree = tree; tree.setName("DarkTree"); tree.setCellRenderer(new JLayoutTreeCellRenderer()); tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); { JScrollPane scroll = UIFactory.createScrollPane( pTree, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, new Dimension(230, 120), new Dimension(230, 150), null); body.add(scroll); } } if (extraComps != null) body.add(extraComps); extraBtns = super.initUI(title, body, confirm, null, extra, cancel); } return extraBtns; }
/* WARNING: THIS METHOD WILL BE REGENERATED. */ private javax.swing.JPanel getJPanel1() { if (ivjJPanel1 == null) { try { ivjJPanel1 = new javax.swing.JPanel(); ivjJPanel1.setName("JPanel1"); ivjJPanel1.setLayout(new java.awt.FlowLayout()); getJPanel1().add(getOKButton(), getOKButton().getName()); // user code begin {1} // user code end } catch (java.lang.Throwable ivjExc) { // user code begin {2} // user code end handleException(ivjExc); } } return ivjJPanel1; }
/** * Creates and returns a Container containing the buttons. The buttons are created by calling * <code>getButtons</code>. */ protected Container createButtonArea() { JPanel bottom = new JPanel(); Border border = (Border) DefaultLookup.get(optionPane, this, "OptionPane.buttonAreaBorder"); bottom.setName("OptionPane.buttonArea"); if (border != null) { bottom.setBorder(border); } bottom.setLayout( new ButtonAreaLayout( DefaultLookup.getBoolean(optionPane, this, "OptionPane.sameSizeButtons", true), DefaultLookup.getInt(optionPane, this, "OptionPane.buttonPadding", 6), DefaultLookup.getInt( optionPane, this, "OptionPane.buttonOrientation", SwingConstants.CENTER), DefaultLookup.getBoolean(optionPane, this, "OptionPane.isYesLast", false))); addButtonComponents(bottom, getButtons(), getInitialValueIndex()); return bottom; }
/** * This method initializes resultUnattemptedPanel4 * * @return javax.swing.JPanel */ private JPanel getResultUnattemptedPanel4() { if (resultUnattemptedPanel4 == null) { resultUnattemptedLabel4 = new JLabel(); resultUnattemptedLabel4.setFont(WINDOW_FONT_BOLD); resultUnattemptedLabel4.setText(TASK_RESULT_UNATTEMPTED); FlowLayout flowLayout = new FlowLayout(); flowLayout.setAlignment(FlowLayout.LEFT); resultUnattemptedPanel4 = new JPanel(); resultUnattemptedPanel4.setLayout(flowLayout); resultUnattemptedPanel4.setName("resultUnattemptedPanel4"); resultUnattemptedPanel4.setBackground(WINDOW_BACKGROUND_COLOR); resultUnattemptedPanel4.add(resultUnattemptedLabel4, null); } return resultUnattemptedPanel4; }
/** * This method initializes resultFailPanel4 * * @return javax.swing.JPanel */ private JPanel getResultFailPanel4() { if (resultFailPanel4 == null) { resultFailIconLabel4 = new JLabel(); resultFailIconLabel4.setIcon(new ImageIcon(getClass().getResource("images/fail.gif"))); resultFailIconLabel4.setFont(WINDOW_FONT_BOLD); resultFailIconLabel4.setText(TASK_RESULT_FAIL_DOWNLOAD); FlowLayout flowLayout = new FlowLayout(); flowLayout.setAlignment(FlowLayout.LEFT); resultFailPanel4 = new JPanel(); resultFailPanel4.setLayout(flowLayout); resultFailPanel4.setName("resultFailPanel4"); resultFailPanel4.setBackground(WINDOW_BACKGROUND_COLOR); resultFailPanel4.add(resultFailIconLabel4, null); } return resultFailPanel4; }
/** * This method initializes resultPassPanel4 * * @return javax.swing.JPanel */ private JPanel getResultPassPanel4() { if (resultPassPanel4 == null) { resultPassLabel4 = new JLabel(); resultPassLabel4.setFont(WINDOW_FONT_BOLD); resultPassLabel4.setText("x of y"); FlowLayout flowLayout = new FlowLayout(); flowLayout.setAlignment(FlowLayout.LEFT); resultPassPanel4 = new JPanel(); resultPassPanel4.setLayout(flowLayout); resultPassPanel4.setName("resultPassPanel4"); resultPassPanel4.setBackground(WINDOW_BACKGROUND_COLOR); resultPassPanel4.add(resultPassLabel4, null); } return resultPassPanel4; }
/** * This method initializes resultPassPanel3 * * @return javax.swing.JPanel */ private JPanel getResultPassPanel3() { if (resultPassPanel3 == null) { resultPassIconLabel3 = new JLabel(); resultPassIconLabel3.setIcon(new ImageIcon(getClass().getResource("images/pass.gif"))); resultPassIconLabel3.setFont(WINDOW_FONT_BOLD); resultPassIconLabel3.setText(TASK_RESULT_PASS); FlowLayout flowLayout = new FlowLayout(); flowLayout.setAlignment(FlowLayout.LEFT); resultPassPanel3 = new JPanel(); resultPassPanel3.setLayout(flowLayout); resultPassPanel3.setName("resultPassPanel3"); resultPassPanel3.setBackground(WINDOW_BACKGROUND_COLOR); resultPassPanel3.add(resultPassIconLabel3, null); } return resultPassPanel3; }