List of usage examples for javax.swing BoxLayout X_AXIS
int X_AXIS
To view the source code for javax.swing BoxLayout X_AXIS.
Click Source Link
From source file:op.controlling.PnlControlling.java
private void initComponents() { tabMain = new JideTabbedPane(); scrollPane1 = new JScrollPane(); cpsControlling = new CollapsiblePanes(); panel2 = new JPanel(); //======== this ======== setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); //======== tabMain ======== {//from w w w . j a v a 2 s . c o m tabMain.setBoldActiveTab(true); tabMain.setFont(new Font("Arial", Font.PLAIN, 16)); tabMain.setShowTabButtons(true); tabMain.setTabPlacement(SwingConstants.LEFT); tabMain.setHideOneTab(true); tabMain.addChangeListener(e -> tabMainStateChanged(e)); //======== scrollPane1 ======== { //======== cpsControlling ======== { cpsControlling.setLayout(new BoxLayout(cpsControlling, BoxLayout.X_AXIS)); } scrollPane1.setViewportView(cpsControlling); } tabMain.addTab("controlling", scrollPane1); //======== panel2 ======== { panel2.setLayout(new BoxLayout(panel2, BoxLayout.X_AXIS)); } tabMain.addTab("text", panel2); } add(tabMain); }
From source file:op.FrmMain.java
/** * This method is called from within the constructor to * initialize the form.//from www .j av a 2s. com * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the PrinterForm Editor. */ // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { pnlMain = new JPanel(); pnlMainMessage = new JPanel(); btnTX = new JButton(); panel1 = new JPanel(); pnlIcons = new JPanel(); lblMainMsg = new JLabel(); btnExit = new JButton(); lblSubMsg = new JideLabel(); btnHelp = new JButton(); pbMsg = new JProgressBar(); btnReload = new JButton(); splitPaneLeft = new JideSplitPane(); pnlCard = new JPanel(); pnlWait = new JPanel(); lblWait = new JLabel(); pbTimeout = new JProgressBar(); panel2 = new JPanel(); btnResetSplitpane = new JButton(); statusBar = new StatusBar(); //======== this ======== setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); setTitle("Offene-Pflege.de"); addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent e) { thisWindowClosing(e); } }); Container contentPane = getContentPane(); contentPane.setLayout(new BoxLayout(contentPane, BoxLayout.X_AXIS)); //======== pnlMain ======== { pnlMain.setLayout(new FormLayout("0dlu, $lcgap, pref, $lcgap, left:default:grow, 2*($rgap)", "$rgap, pref, $rgap, default:grow, 3dlu, $nlgap, bottom:pref, $lgap, 0dlu")); //======== pnlMainMessage ======== { pnlMainMessage.setBackground(new Color(220, 223, 208)); pnlMainMessage.setBorder(new SoftBevelBorder(SoftBevelBorder.RAISED)); pnlMainMessage.setLayout(new FormLayout( "0dlu, $lcgap, 23dlu, $lcgap, default:grow, $lcgap, min, $lcgap, 0dlu", "0dlu, $lgap, 15dlu, $lgap, fill:11dlu, $lgap, fill:pref:grow, $lgap, pref, $lgap, 0dlu")); //---- btnTX ---- btnTX.setIcon(new ImageIcon(getClass().getResource("/artwork/32x32/ambulance2.png"))); btnTX.setBorder(null); btnTX.setBorderPainted(false); btnTX.setSelectedIcon(null); btnTX.setToolTipText("Verlegungsbericht drucken"); btnTX.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); btnTX.setPressedIcon( new ImageIcon(getClass().getResource("/artwork/32x32/ambulance2_pressed.png"))); btnTX.setContentAreaFilled(false); btnTX.addActionListener(e -> btnTXActionPerformed(e)); pnlMainMessage.add(btnTX, CC.xywh(3, 3, 1, 3)); //======== panel1 ======== { panel1.setOpaque(false); panel1.setLayout(new BoxLayout(panel1, BoxLayout.LINE_AXIS)); //======== pnlIcons ======== { pnlIcons.setOpaque(false); pnlIcons.setLayout(new BoxLayout(pnlIcons, BoxLayout.LINE_AXIS)); } panel1.add(pnlIcons); //---- lblMainMsg ---- lblMainMsg.setText("OPDE"); lblMainMsg.setFont(new Font("Arial Rounded MT Bold", Font.PLAIN, 22)); lblMainMsg.setForeground(new Color(105, 80, 69)); lblMainMsg.setHorizontalAlignment(SwingConstants.CENTER); lblMainMsg.setIcon(null); lblMainMsg.setHorizontalTextPosition(SwingConstants.LEADING); panel1.add(lblMainMsg); } pnlMainMessage.add(panel1, CC.xy(5, 3, CC.CENTER, CC.DEFAULT)); //---- btnExit ---- btnExit.setIcon(new ImageIcon(getClass().getResource("/artwork/32x32/lock.png"))); btnExit.setBorder(null); btnExit.setBorderPainted(false); btnExit.setOpaque(false); btnExit.setContentAreaFilled(false); btnExit.setToolTipText("Abmelden"); btnExit.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); btnExit.setPressedIcon(new ImageIcon(getClass().getResource("/artwork/32x32/lock_pressed.png"))); btnExit.addActionListener(e -> btnExitActionPerformed(e)); pnlMainMessage.add(btnExit, CC.xywh(7, 3, 1, 3)); //---- lblSubMsg ---- lblSubMsg.setText("OPDE"); lblSubMsg.setFont(new Font("Arial", Font.PLAIN, 14)); lblSubMsg.setForeground(new Color(105, 80, 69)); lblSubMsg.setHorizontalAlignment(SwingConstants.CENTER); lblSubMsg.setVerticalAlignment(SwingConstants.TOP); pnlMainMessage.add(lblSubMsg, CC.xywh(5, 5, 1, 3)); //---- btnHelp ---- btnHelp.setText(null); btnHelp.setIcon(new ImageIcon(getClass().getResource("/artwork/32x32/help.png"))); btnHelp.setBorderPainted(false); btnHelp.setContentAreaFilled(false); btnHelp.setPressedIcon(new ImageIcon(getClass().getResource("/artwork/32x32/help_pressed.png"))); btnHelp.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); btnHelp.addActionListener(e -> btnHelpActionPerformed(e)); pnlMainMessage.add(btnHelp, CC.xywh(3, 7, 1, 3)); //---- pbMsg ---- pbMsg.setValue(50); pbMsg.setFont(new Font("Arial Rounded MT Bold", Font.PLAIN, 12)); pbMsg.setForeground(new Color(105, 80, 69)); pnlMainMessage.add(pbMsg, CC.xy(5, 9, CC.FILL, CC.FILL)); //---- btnReload ---- btnReload.setIcon(new ImageIcon(getClass().getResource("/artwork/32x32/reload0000.png"))); btnReload.setBorder(null); btnReload.setBorderPainted(false); btnReload.setOpaque(false); btnReload.setContentAreaFilled(false); btnReload.setToolTipText("Ansicht aktualisieren"); btnReload.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); btnReload .setPressedIcon(new ImageIcon(getClass().getResource("/artwork/32x32/reload_pressed.png"))); btnReload.addActionListener(e -> btnReloadActionPerformed(e)); pnlMainMessage.add(btnReload, CC.xywh(7, 7, 1, 3)); } pnlMain.add(pnlMainMessage, CC.xywh(3, 2, 4, 1, CC.DEFAULT, CC.FILL)); //---- splitPaneLeft ---- splitPaneLeft.setOneTouchExpandable(true); splitPaneLeft.setProportionalLayout(true); splitPaneLeft.setShowGripper(true); splitPaneLeft.addPropertyChangeListener("dividerLocation", e -> splitPaneLeftPropertyChange(e)); pnlMain.add(splitPaneLeft, CC.xy(3, 4, CC.FILL, CC.FILL)); //======== pnlCard ======== { pnlCard.setLayout(new CardLayout()); //======== pnlWait ======== { pnlWait.setLayout(new BorderLayout()); //---- lblWait ---- lblWait.setText("text"); lblWait.setFont(new Font("Arial", Font.BOLD, 22)); lblWait.setHorizontalAlignment(SwingConstants.CENTER); pnlWait.add(lblWait, BorderLayout.CENTER); } pnlCard.add(pnlWait, "cardWait"); } pnlMain.add(pnlCard, CC.xy(5, 4, CC.FILL, CC.FILL)); pnlMain.add(pbTimeout, CC.xywh(3, 5, 4, 1, CC.FILL, CC.DEFAULT)); //======== panel2 ======== { panel2.setLayout(new BoxLayout(panel2, BoxLayout.X_AXIS)); //---- btnResetSplitpane ---- btnResetSplitpane.setText(null); btnResetSplitpane .setIcon(new ImageIcon(getClass().getResource("/artwork/22x22/view_top_bottom.png"))); btnResetSplitpane.setAlignmentY(1.0F); btnResetSplitpane.addActionListener(e -> btnResetSplitpaneActionPerformed(e)); panel2.add(btnResetSplitpane); //---- statusBar ---- statusBar.setBackground(new Color(238, 238, 238)); statusBar.setAlignmentY(1.0F); panel2.add(statusBar); } pnlMain.add(panel2, CC.xywh(3, 7, 4, 1, CC.FILL, CC.BOTTOM)); } contentPane.add(pnlMain); setSize(945, 695); setLocationRelativeTo(getOwner()); }
From source file:op.FrmMain.java
private CollapsiblePane addNursingRecords(final Station station) { // bwButtonMap = new HashMap<Resident, JideButton>(); EntityManager em = OPDE.createEM();/*from w w w. j ava 2 s. co m*/ Query query; if (station == null) { query = em.createQuery("SELECT b FROM Resident b WHERE b.station IS NULL ORDER BY b.name, b.firstname"); } else { query = em.createQuery( "SELECT b FROM Resident b WHERE b.station = :station ORDER BY b.name, b.firstname"); query.setParameter("station", station); } ArrayList<Resident> residentList = new ArrayList<Resident>(query.getResultList()); em.close(); CollapsiblePane mypane = new CollapsiblePane( station == null ? SYSTools.xx("misc.msg.Archive") : station.getName()); mypane.setFont(SYSConst.ARIAL14); mypane.setEmphasized(station != null && station.equals(StationTools.getStationForThisHost())); mypane.setStyle(CollapsiblePane.PLAIN_STYLE); JPanel labelPanel = new JPanel(); labelPanel.setLayout(new VerticalLayout()); labelPanel.setBackground(Color.WHITE); try { mypane.setCollapsed(!mypane.isEmphasized()); } catch (PropertyVetoException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } if (!residentList.isEmpty() && station != null) { JideButton button = GUITools.createHyperlinkButton("opde.mainframe.printdailyplan", SYSConst.icon22print2, new ActionListener() { @Override public void actionPerformed(ActionEvent e) { if ((e.getModifiers() & InputEvent.CTRL_MASK) != 0) { PrescriptionTools.printDailyPlan(station, "html"); } else { PrescriptionTools.printDailyPlan(station, "pdf"); } } }); button.setBackground(Color.WHITE); labelPanel.add(button); } for (final Resident resident : residentList) { ActionListener actionListener = new ActionListener() { @Override public void actionPerformed(ActionEvent actionEvent) { if (currentResident != resident) { if (previousProgButton != null) { previousProgButton.setBackground(Color.WHITE); previousProgButton.setOpaque(false); } previousProgButton = (JideButton) actionEvent.getSource(); previousProgButton.setBackground(Color.YELLOW); previousProgButton.setOpaque(true); currentResident = resident; if (currentVisiblePanel instanceof PnlCare) { ((NursingRecordsPanel) currentVisiblePanel).switchResident(resident); } else { setPanelTo(new PnlCare(resident, jspSearch)); } } } }; JPanel singleButtonPanel = new JPanel(); singleButtonPanel.setLayout(new BoxLayout(singleButtonPanel, BoxLayout.X_AXIS)); singleButtonPanel.setBorder(null); singleButtonPanel.setOpaque(false); String titel = resident.getName() + ", " + resident.getFirstname() + " [" + resident.getRIDAnonymous() + "]"; JideButton button = GUITools.createHyperlinkButton(titel, null, actionListener); button.setForegroundOfState(ThemePainter.STATE_DEFAULT, resident.getGender() == ResidentTools.FEMALE ? Color.red : Color.blue); button.setBackground(Color.WHITE); singleButtonPanel.add(button); OPDE.getDisplayManager().clearSubMessages(); if (station != null) { // not for the archive JPanel pnl = new JPanel(); pnl.setLayout(new BoxLayout(pnl, BoxLayout.X_AXIS)); pnl.setOpaque(false); pnl.setBorder(null); setIconPanel(pnl, resident); synchronized (iconPanels) { iconPanels.put(resident, pnl); } singleButtonPanel.add(pnl); } labelPanel.add(singleButtonPanel); } mypane.setContentPane(labelPanel); listOfNursingrecords.add(mypane); return mypane; }
From source file:op.system.DlgLogin.java
/** * This method is called from within the constructor to * initialize the printerForm./*from w w w . ja va2 s . c o m*/ * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the PrinterForm Editor. */ // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel2 = new JPanel(); lblOPDE = new JLabel(); btnAbout = new JButton(); lblUsernamePassword = new JLabel(); txtUsername = new JTextField(); txtPassword = new JPasswordField(); panel1 = new JPanel(); btnExit = new JButton(); hSpacer1 = new JPanel(null); btnLogin = new JButton(); //======== this ======== setModalityType(Dialog.ModalityType.APPLICATION_MODAL); setResizable(false); setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); addWindowListener(new WindowAdapter() { @Override public void windowActivated(WindowEvent e) { thisWindowActivated(e); } }); Container contentPane = getContentPane(); contentPane.setLayout(new FormLayout("13dlu, default, 13dlu", "13dlu, $lgap, fill:48dlu:grow, $lgap, default, $lgap, 13dlu")); //======== jPanel2 ======== { jPanel2.setBorder(new EmptyBorder(5, 5, 5, 5)); jPanel2.setOpaque(false); jPanel2.setLayout(new VerticalLayout(10)); //---- lblOPDE ---- lblOPDE.setText("Offene-Pflege.de"); lblOPDE.setFont(new Font("Arial", Font.PLAIN, 24)); lblOPDE.setHorizontalAlignment(SwingConstants.CENTER); jPanel2.add(lblOPDE); //---- btnAbout ---- btnAbout.setIcon(new ImageIcon(getClass().getResource("/artwork/256x256/opde-logo.png"))); btnAbout.setBorderPainted(false); btnAbout.setBorder(null); btnAbout.setOpaque(false); btnAbout.setContentAreaFilled(false); btnAbout.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); btnAbout.setToolTipText(null); btnAbout.addActionListener(e -> btnAboutActionPerformed(e)); jPanel2.add(btnAbout); //---- lblUsernamePassword ---- lblUsernamePassword.setText("text"); lblUsernamePassword.setFont(new Font("Arial", Font.PLAIN, 18)); jPanel2.add(lblUsernamePassword); //---- txtUsername ---- txtUsername.setFont(new Font("Arial", Font.PLAIN, 18)); txtUsername.addActionListener(e -> txtUsernameActionPerformed(e)); txtUsername.addFocusListener(new FocusAdapter() { @Override public void focusGained(FocusEvent e) { txtUsernameFocusGained(e); } }); jPanel2.add(txtUsername); //---- txtPassword ---- txtPassword.setFont(new Font("Arial", Font.PLAIN, 18)); txtPassword.addActionListener(e -> txtPasswordActionPerformed(e)); txtPassword.addFocusListener(new FocusAdapter() { @Override public void focusGained(FocusEvent e) { txtPasswordFocusGained(e); } }); jPanel2.add(txtPassword); } contentPane.add(jPanel2, CC.xy(2, 3, CC.FILL, CC.DEFAULT)); //======== panel1 ======== { panel1.setLayout(new BoxLayout(panel1, BoxLayout.X_AXIS)); //---- btnExit ---- btnExit.setIcon(new ImageIcon(getClass().getResource("/artwork/22x22/exit.png"))); btnExit.addActionListener(e -> btnExitActionPerformed(e)); panel1.add(btnExit); panel1.add(hSpacer1); //---- btnLogin ---- btnLogin.setIcon(new ImageIcon(getClass().getResource("/artwork/22x22/apply.png"))); btnLogin.setActionCommand("btnLogin"); btnLogin.addActionListener(e -> DoLogin(e)); panel1.add(btnLogin); } contentPane.add(panel1, CC.xy(2, 5, CC.RIGHT, CC.DEFAULT)); setSize(320, 540); setLocationRelativeTo(getOwner()); }
From source file:op.users.PnlUser.java
/** * This method is called from within the constructor to * initialize the form.// w ww . j a va2 s . c o m * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the PrinterForm Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { tabMain = new JTabbedPane(); jspUsers = new JScrollPane(); cpsUsers = new CollapsiblePanes(); jspGroups = new JScrollPane(); cpsGroups = new CollapsiblePanes(); //======== this ======== setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); //======== tabMain ======== { tabMain.setFont(new Font("Arial", Font.PLAIN, 18)); //======== jspUsers ======== { //======== cpsUsers ======== { cpsUsers.setLayout(new BoxLayout(cpsUsers, BoxLayout.X_AXIS)); } jspUsers.setViewportView(cpsUsers); } tabMain.addTab("text", jspUsers); //======== jspGroups ======== { //======== cpsGroups ======== { cpsGroups.setLayout(new FormLayout("default, $lcgap, default", "2*(default, $lgap), default")); } jspGroups.setViewportView(cpsGroups); } tabMain.addTab("text", jspGroups); } add(tabMain); }
From source file:org.apache.cayenne.modeler.CayenneModelerFrame.java
/** Initializes main toolbar. */ protected void initToolbar() { JToolBar toolBar = new JToolBar(); toolBar.add(getAction(NewProjectAction.class).buildButton()); toolBar.add(getAction(OpenProjectAction.class).buildButton()); toolBar.add(getAction(SaveAction.class).buildButton()); toolBar.addSeparator();/* w ww. j ava 2 s . com*/ toolBar.add(getAction(RemoveAction.class).buildButton()); toolBar.addSeparator(); toolBar.add(getAction(CutAction.class).buildButton()); toolBar.add(getAction(CopyAction.class).buildButton()); toolBar.add(getAction(PasteAction.class).buildButton()); toolBar.addSeparator(); toolBar.add(getAction(UndoAction.class).buildButton()); toolBar.add(getAction(RedoAction.class).buildButton()); toolBar.addSeparator(); toolBar.add(getAction(CreateNodeAction.class).buildButton()); toolBar.add(getAction(CreateDataMapAction.class).buildButton()); toolBar.addSeparator(); toolBar.add(getAction(CreateDbEntityAction.class).buildButton()); toolBar.add(getAction(CreateProcedureAction.class).buildButton()); toolBar.addSeparator(); toolBar.add(getAction(CreateObjEntityAction.class).buildButton()); toolBar.add(getAction(CreateEmbeddableAction.class).buildButton()); toolBar.add(getAction(CreateQueryAction.class).buildButton()); toolBar.addSeparator(); toolBar.add(getAction(NavigateBackwardAction.class).buildButton()); toolBar.add(getAction(NavigateForwardAction.class).buildButton()); JPanel east = new JPanel(new BorderLayout()); // is used to place search feature // components the most right on a // toolbar final JTextField findField = new JTextField(10); findField.addKeyListener(new KeyListener() { public void keyPressed(KeyEvent e) { if (e.getKeyCode() != KeyEvent.VK_ENTER) { findField.setBackground(Color.white); } } public void keyReleased(KeyEvent e) { } public void keyTyped(KeyEvent e) { } }); findField.setAction(getAction(FindAction.class)); JLabel findLabel = new JLabel("Search:"); findLabel.setLabelFor(findField); Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() { public void eventDispatched(AWTEvent event) { if (event instanceof KeyEvent) { if (((KeyEvent) event).getModifiers() == Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() && ((KeyEvent) event).getKeyCode() == KeyEvent.VK_F) { findField.requestFocus(); } } } }, AWTEvent.KEY_EVENT_MASK); JPanel box = new JPanel(); // is used to place label and text field one after // another box.setLayout(new BoxLayout(box, BoxLayout.X_AXIS)); box.add(findLabel); box.add(findField); east.add(box, BorderLayout.EAST); toolBar.add(east); getContentPane().add(toolBar, BorderLayout.NORTH); }
From source file:org.apache.jmeter.gui.MainFrame.java
/** * Create the JMeter tool bar pane containing the running indicator. * * @return a panel containing the running indicator *///from w ww .j av a2s . com private Component createToolBar() { Box toolPanel = new Box(BoxLayout.X_AXIS); // add the toolbar this.toolbar = JMeterToolBar.createToolbar(true); GuiPackage guiInstance = GuiPackage.getInstance(); guiInstance.setMainToolbar(toolbar); toolPanel.add(toolbar); toolPanel.add(Box.createRigidArea(new Dimension(10, 15))); toolPanel.add(Box.createGlue()); toolPanel.add(testTimeDuration); toolPanel.add(Box.createRigidArea(new Dimension(20, 15))); toolPanel.add(errorsOrFatalsLabel); toolPanel.add(warnIndicator); toolPanel.add(Box.createRigidArea(new Dimension(20, 15))); toolPanel.add(activeThreads); toolPanel.add(new JLabel(" / ")); toolPanel.add(totalThreads); toolPanel.add(Box.createRigidArea(new Dimension(10, 15))); toolPanel.add(runningIndicator); return toolPanel; }
From source file:org.apache.jmeter.protocol.http.control.gui.WebServiceSamplerGui.java
private final JPanel createTopPanel() { JPanel topPanel = new JPanel(); topPanel.setLayout(new VerticalLayout(5, VerticalLayout.BOTH)); JPanel wsdlHelper = new JPanel(); wsdlHelper.setLayout(new BoxLayout(wsdlHelper, BoxLayout.Y_AXIS)); wsdlHelper.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString("webservice_configuration_wizard"))); // $NON-NLS-1$ // Button for browsing webservice wsdl JPanel wsdlEntry = new JPanel(); wsdlEntry.setLayout(new BoxLayout(wsdlEntry, BoxLayout.X_AXIS)); Border margin = new EmptyBorder(0, 5, 0, 5); wsdlEntry.setBorder(margin);//from w w w . j av a 2s. c om wsdlHelper.add(wsdlEntry); wsdlEntry.add(wsdlField); wsdlEntry.add(wsdlButton); wsdlButton.addActionListener(this); // Web Methods JPanel listPanel = new JPanel(); listPanel.setLayout(new FlowLayout(FlowLayout.LEFT)); JLabel selectLabel = new JLabel(JMeterUtils.getResString("webservice_methods")); // $NON-NLS-1$ wsdlMethods = new JLabeledChoice(); wsdlHelper.add(listPanel); listPanel.add(selectLabel); listPanel.add(wsdlMethods); listPanel.add(selectButton); selectButton.addActionListener(this); topPanel.add(wsdlHelper); JPanel urlPane = new JPanel(); urlPane.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); urlPane.add(protocol); urlPane.add(Box.createRigidArea(new Dimension(5, 0))); urlPane.add(domain); urlPane.add(Box.createRigidArea(new Dimension(5, 0))); urlPane.add(port); urlPane.add(Box.createRigidArea(new Dimension(5, 0))); urlPane.add(connectTimeout); topPanel.add(urlPane); topPanel.add(createParametersPanel()); return topPanel; }
From source file:org.apache.jmeter.protocol.http.control.gui.WebServiceSamplerGui.java
private final JPanel createParametersPanel() { JPanel paramsPanel = new JPanel(); paramsPanel.setLayout(new BoxLayout(paramsPanel, BoxLayout.X_AXIS)); paramsPanel.add(path);// w ww . j a v a 2 s . co m paramsPanel.add(Box.createHorizontalGlue()); paramsPanel.add(soapAction); paramsPanel.add(Box.createHorizontalGlue()); paramsPanel.add(maintainSession); return paramsPanel; }
From source file:org.apache.jmeter.protocol.system.gui.SystemSamplerGui.java
/** * @return JPanel return code config/*from w w w . j a v a 2 s. co m*/ */ private JPanel makeReturnCodePanel() { JPanel panel = new JPanel(); panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS)); panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString("return_code_config_box_title"))); // $NON-NLS-1$ checkReturnCode = new JCheckBox(JMeterUtils.getResString("check_return_code_title")); // $NON-NLS-1$ checkReturnCode.addItemListener(this); desiredReturnCode = new JLabeledTextField(JMeterUtils.getResString("expected_return_code_title")); // $NON-NLS-1$ desiredReturnCode.setSize(desiredReturnCode.getSize().height, 30); panel.add(checkReturnCode); panel.add(Box.createHorizontalStrut(5)); panel.add(desiredReturnCode); checkReturnCode.setSelected(true); return panel; }