Examples of JTextField


Examples of javax.swing.JTextField

    proxyType.addItem("No Proxy");
    proxyType.addItem("HTTP");
    proxyType.addItem("Socks 4");
    proxyType.addItem("Socks 5");
    proxyType.setSelectedIndex(Integer.parseInt(genProp.getValue("proxyType")));
    proxyHost = new JTextField();
    proxyHost.setText(genProp.getValue("proxyHost"));
    proxyPort = new JTextField();
    proxyPort.setText(genProp.getValue("proxyPort"));

    proxyPanel.setLayout(new GridBagLayout());
    c.gridy = 0;
    proxyPanel.add(proxyType, c);
View Full Code Here

Examples of javax.swing.JTextField

   
    panel.setLayout(new BorderLayout());
   
    JPanel filePanel = new JPanel(new BorderLayout(5,0));
   
    mFile = new JTextField(mExecFile);
   
    filePanel.add(mFile, BorderLayout.CENTER);
   
    JButton chooseFile = new JButton("...");
   
View Full Code Here

Examples of javax.swing.JTextField

        setBorder(Borders.DLU4_BORDER);
        CellConstraints cc = new CellConstraints();

        add(new JLabel(mLocalizer.msg("ip", "IP of the Dreambox") + ":"), cc.xy(1, 1));

        mDreamAddress = new JTextField();
        mDreamAddress.setText(mOldAdress);
        mDreamAddress.getDocument().addDocumentListener(new DocumentListener() {
            public void insertUpdate(DocumentEvent event) {
                updateValue();
            }

            public void removeUpdate(DocumentEvent event) {
                updateValue();
            }

            public void changedUpdate(DocumentEvent event) {
                updateValue();
            }

            public void updateValue() {
                mProperties.setProperty("ip", mDreamAddress.getText());
            }
        });

        add(mDreamAddress, cc.xy(3, 1));

        add(new JLabel(mLocalizer.msg("user", "Username") + ":"), cc.xy(1, 3));
        mUsername = new JTextField();
        mUsername.setText(mOldUserName);
        mUsername.getDocument().addDocumentListener(new DocumentListener() {
            public void insertUpdate(DocumentEvent event) {
                updateValue();
            }
View Full Code Here

Examples of javax.swing.JTextField

    content.add(panel, cc.xyw(1,1,6));

    JLabel name = new JLabel(mLocalizer.msg("user", "Username")+":");
    content.add(name, cc.xy(2, 3));
   
    mNameField = new JTextField();
    content.add(mNameField, cc.xy(4,3));

    mNameField.setText(mUsername);
   
    JLabel password = new JLabel(mLocalizer.msg("password", "Password")+":");
View Full Code Here

Examples of javax.swing.JTextField

    JLabel lblNewLabel = new JLabel("\u7528\u6237\u540D");
    sl_panel.putConstraint(SpringLayout.NORTH, lblNewLabel, 45, SpringLayout.NORTH, panel);
    sl_panel.putConstraint(SpringLayout.WEST, lblNewLabel, 10, SpringLayout.WEST, panel);
    panel.add(lblNewLabel);
   
    usernameField = new JTextField();
    sl_panel.putConstraint(SpringLayout.WEST, usernameField, 18, SpringLayout.EAST, lblNewLabel);
    sl_panel.putConstraint(SpringLayout.SOUTH, btnNewButton_2, -6, SpringLayout.NORTH, usernameField);
    usernameField.setToolTipText("\u6682\u65F6\u53EA\u652F\u6301\u76DB\u5927\u5E10\u6237");
    sl_panel.putConstraint(SpringLayout.NORTH, usernameField, 42, SpringLayout.NORTH, panel);
    panel.add(usernameField);
    usernameField.setColumns(10);
   
    JLabel lblNewLabel_1 = new JLabel("\u5BC6\u7801");
    sl_panel.putConstraint(SpringLayout.WEST, lblNewLabel_1, 207, SpringLayout.WEST, panel);
    sl_panel.putConstraint(SpringLayout.EAST, usernameField, -30, SpringLayout.WEST, lblNewLabel_1);
    sl_panel.putConstraint(SpringLayout.EAST, btnNewButton_2, 0, SpringLayout.EAST, lblNewLabel_1);
    sl_panel.putConstraint(SpringLayout.NORTH, lblNewLabel_1, 45, SpringLayout.NORTH, panel);
    panel.add(lblNewLabel_1);
   
    passwordField = new JPasswordField();
    passwordField.setToolTipText("\u8BF7\u586B\u5165\u5BC6\u7801");
    sl_panel.putConstraint(SpringLayout.WEST, passwordField, 6, SpringLayout.EAST, lblNewLabel_1);
    sl_panel.putConstraint(SpringLayout.EAST, passwordField, 159, SpringLayout.EAST, lblNewLabel_1);
    panel.add(passwordField);
   
    JCheckBox checkBox = new JCheckBox("\u542F\u7528\u4EE3\u7406");
    sl_panel.putConstraint(SpringLayout.WEST, checkBox, 10, SpringLayout.WEST, panel);
    checkBox.setEnabled(false);
    panel.add(checkBox);
   
    JLabel label_1 = new JLabel("\u4EE3\u7406\u670D\u52A1\u5668");
    sl_panel.putConstraint(SpringLayout.NORTH, label_1, 4, SpringLayout.NORTH, checkBox);
    sl_panel.putConstraint(SpringLayout.WEST, label_1, 6, SpringLayout.EAST, checkBox);
    panel.add(label_1);
   
    JLabel label_2 = new JLabel("\u7AEF\u53E3");
    sl_panel.putConstraint(SpringLayout.NORTH, label_2, 4, SpringLayout.NORTH, checkBox);
    panel.add(label_2);
   
    proxyPortField = new JTextField();
    proxyPortField.setEditable(false);
    sl_panel.putConstraint(SpringLayout.NORTH, proxyPortField, 1, SpringLayout.NORTH, checkBox);
    sl_panel.putConstraint(SpringLayout.WEST, proxyPortField, 6, SpringLayout.EAST, label_2);
    proxyPortField.setText("8080");
    panel.add(proxyPortField);
    proxyPortField.setColumns(10);
   
    proxyHostField = new JTextField();
    proxyHostField.setEditable(false);
    sl_panel.putConstraint(SpringLayout.WEST, proxyHostField, 6, SpringLayout.EAST, label_1);
    sl_panel.putConstraint(SpringLayout.EAST, proxyHostField, -172, SpringLayout.EAST, panel);
    sl_panel.putConstraint(SpringLayout.WEST, label_2, 6, SpringLayout.EAST, proxyHostField);
    sl_panel.putConstraint(SpringLayout.NORTH, proxyHostField, 1, SpringLayout.NORTH, checkBox);
    panel.add(proxyHostField);
    proxyHostField.setColumns(10);
   
    JLabel label_3 = new JLabel("\u672C\u5730\u6587\u4EF6\u5939");
    sl_panel.putConstraint(SpringLayout.NORTH, label_3, 21, SpringLayout.SOUTH, lblNewLabel);
    sl_panel.putConstraint(SpringLayout.WEST, label_3, 10, SpringLayout.WEST, panel);
    panel.add(label_3);
   
    rootpathField = new JTextField();
    sl_panel.putConstraint(SpringLayout.NORTH, checkBox, 13, SpringLayout.SOUTH, rootpathField);
    sl_panel.putConstraint(SpringLayout.NORTH, rootpathField, -3, SpringLayout.NORTH, label_3);
    sl_panel.putConstraint(SpringLayout.WEST, rootpathField, 6, SpringLayout.EAST, label_3);
    sl_panel.putConstraint(SpringLayout.EAST, rootpathField, -91, SpringLayout.EAST, panel);
    rootpathField.setEditable(false);
    rootpathField.setEnabled(false);
    panel.add(rootpathField);
    rootpathField.setColumns(10);
   
    JButton selectRootPathButton = new JButton("\u9009\u62E9");
    selectRootPathButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        JFileChooser jfc = new JFileChooser();
        jfc.setName("请选择本地存放文件夹");
        jfc.setDialogTitle("请选择本地存放文件夹");
        jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
        int rc = jfc.showOpenDialog(frmEverbox);
        if(rc == JFileChooser.APPROVE_OPTION )
          rootpathField.setText(jfc.getSelectedFile().getAbsolutePath());
      }
    });
    sl_panel.putConstraint(SpringLayout.NORTH, selectRootPathButton, -4, SpringLayout.NORTH, label_3);
    sl_panel.putConstraint(SpringLayout.WEST, selectRootPathButton, 6, SpringLayout.EAST, rootpathField);
    panel.add(selectRootPathButton);
   
    uploadEnableBox = new JCheckBox("\u542F\u7528\u4E0A\u4F20");
    sl_panel.putConstraint(SpringLayout.WEST, uploadEnableBox, 10, SpringLayout.WEST, panel);
    uploadEnableBox.setToolTipText("\u542F\u7528\u4E0A\u4F20\u6A21\u5F0F");
    uploadEnableBox.setSelected(true);
    sl_panel.putConstraint(SpringLayout.NORTH, uploadEnableBox, 6, SpringLayout.SOUTH, checkBox);
    panel.add(uploadEnableBox);
   
    downloadEnableBox = new JCheckBox("\u542F\u7528\u4E0B\u8F7D");
    downloadEnableBox.setToolTipText("\u542F\u7528\u4E0B\u8F7D\u6A21\u5F0F");
    sl_panel.putConstraint(SpringLayout.NORTH, downloadEnableBox, 0, SpringLayout.NORTH, uploadEnableBox);
    sl_panel.putConstraint(SpringLayout.WEST, downloadEnableBox, 0, SpringLayout.WEST, lblNewLabel_1);
    panel.add(downloadEnableBox);
   
    JLabel lblNewLabel_2 = new JLabel("\u5FFD\u7565\u6587\u4EF6\u6269\u5C55\u540D");
    sl_panel.putConstraint(SpringLayout.WEST, lblNewLabel_2, 10, SpringLayout.WEST, panel);
    panel.add(lblNewLabel_2);
   
    uploadMaxsizeField = new JTextField();
    uploadMaxsizeField.setToolTipText("\u8BBE\u7F6E\u4E0A\u4F20\u6587\u4EF6\u6700\u5927\u5C3A\u5BF8,\u4F8B\u5982100m");
    panel.add(uploadMaxsizeField);
    uploadMaxsizeField.setColumns(10);
   
    JLabel label_4 = new JLabel("\u5FFD\u7565\u6587\u4EF6\u6269\u5C55\u540D");
    sl_panel.putConstraint(SpringLayout.NORTH, label_4, 0, SpringLayout.NORTH, lblNewLabel_2);
    sl_panel.putConstraint(SpringLayout.WEST, label_4, 0, SpringLayout.WEST, lblNewLabel_1);
    sl_panel.putConstraint(SpringLayout.EAST, label_4, 0, SpringLayout.EAST, label_2);
    panel.add(label_4);
   
    downloadLimitField = new JTextField();
    downloadLimitField.setEditable(false);
    sl_panel.putConstraint(SpringLayout.EAST, downloadLimitField, 0, SpringLayout.EAST, proxyPortField);
    downloadLimitField.setColumns(10);
    panel.add(downloadLimitField);
   
    JLabel label_5 = new JLabel("\u6587\u4EF6\u6700\u5927\u5C3A\u5BF8");
    sl_panel.putConstraint(SpringLayout.WEST, uploadMaxsizeField, 17, SpringLayout.EAST, label_5);
    sl_panel.putConstraint(SpringLayout.WEST, label_5, 10, SpringLayout.WEST, panel);
    sl_panel.putConstraint(SpringLayout.NORTH, label_5, 45, SpringLayout.SOUTH, uploadEnableBox);
    sl_panel.putConstraint(SpringLayout.NORTH, uploadMaxsizeField, -3, SpringLayout.NORTH, label_5);
    panel.add(label_5);
   
    JLabel label_6 = new JLabel("\u6587\u4EF6\u6700\u5C0F\u5C3A\u5BF8");
    sl_panel.putConstraint(SpringLayout.WEST, label_6, 10, SpringLayout.WEST, panel);
    sl_panel.putConstraint(SpringLayout.NORTH, lblNewLabel_2, 20, SpringLayout.SOUTH, label_6);
    sl_panel.putConstraint(SpringLayout.NORTH, label_6, 16, SpringLayout.SOUTH, label_5);
    panel.add(label_6);
   
    JLabel label_7 = new JLabel("\u5FFD\u7565\u8DEF\u5F84");
    sl_panel.putConstraint(SpringLayout.WEST, label_7, 10, SpringLayout.WEST, panel);
    sl_panel.putConstraint(SpringLayout.EAST, lblNewLabel, 0, SpringLayout.EAST, label_7);
    sl_panel.putConstraint(SpringLayout.NORTH, label_7, 44, SpringLayout.SOUTH, lblNewLabel_2);
    panel.add(label_7);
   
    uploadIgnoreHiddenBox = new JCheckBox("\u5FFD\u7565\u9690\u85CF\u6587\u4EF6");
    sl_panel.putConstraint(SpringLayout.WEST, uploadIgnoreHiddenBox, 10, SpringLayout.WEST, panel);
    uploadIgnoreHiddenBox.setToolTipText("\u662F\u5426\u5FFD\u7565\u9690\u85CF\u6587\u4EF6");
    sl_panel.putConstraint(SpringLayout.NORTH, uploadIgnoreHiddenBox, 20, SpringLayout.SOUTH, label_7);
    uploadIgnoreHiddenBox.setSelected(true);
    panel.add(uploadIgnoreHiddenBox);
   
    JLabel label_8 = new JLabel("\u6587\u4EF6\u6700\u5927\u5C3A\u5BF8");
    sl_panel.putConstraint(SpringLayout.EAST, uploadMaxsizeField, -30, SpringLayout.WEST, label_8);
    sl_panel.putConstraint(SpringLayout.EAST, label_8, 0, SpringLayout.EAST, label_2);
    sl_panel.putConstraint(SpringLayout.NORTH, label_8, 3, SpringLayout.NORTH, uploadMaxsizeField);
    sl_panel.putConstraint(SpringLayout.WEST, label_8, 0, SpringLayout.WEST, lblNewLabel_1);
    panel.add(label_8);
   
    JLabel label_9 = new JLabel("\u6587\u4EF6\u6700\u5C0F\u5C3A\u5BF8");
    sl_panel.putConstraint(SpringLayout.NORTH, label_9, 0, SpringLayout.NORTH, label_6);
    sl_panel.putConstraint(SpringLayout.WEST, label_9, 0, SpringLayout.WEST, lblNewLabel_1);
    sl_panel.putConstraint(SpringLayout.EAST, label_9, 0, SpringLayout.EAST, label_2);
    panel.add(label_9);
   
    JLabel label_10 = new JLabel("\u5FFD\u7565\u8DEF\u5F84");
    sl_panel.putConstraint(SpringLayout.NORTH, label_10, 0, SpringLayout.NORTH, label_7);
    sl_panel.putConstraint(SpringLayout.WEST, label_10, 0, SpringLayout.WEST, lblNewLabel_1);
    panel.add(label_10);
   
    uploadMinsizeField = new JTextField();
    sl_panel.putConstraint(SpringLayout.WEST, uploadMinsizeField, 17, SpringLayout.EAST, label_6);
    sl_panel.putConstraint(SpringLayout.EAST, uploadMinsizeField, -30, SpringLayout.WEST, label_9);
    uploadMinsizeField.setToolTipText("\u8BBE\u7F6E\u4E0A\u4F20\u6587\u4EF6\u6700\u5C0F\u5C3A\u5BF8,\u4F8B\u5982100k");
    sl_panel.putConstraint(SpringLayout.NORTH, uploadMinsizeField, -3, SpringLayout.NORTH, label_6);
    panel.add(uploadMinsizeField);
    uploadMinsizeField.setColumns(10);
   
    uploadIgnoreSuffixField = new JTextField();
    sl_panel.putConstraint(SpringLayout.WEST, uploadIgnoreSuffixField, 6, SpringLayout.EAST, lblNewLabel_2);
    sl_panel.putConstraint(SpringLayout.EAST, uploadIgnoreSuffixField, -30, SpringLayout.WEST, label_4);
    uploadIgnoreSuffixField.setToolTipText("\u9700\u8981\u5FFD\u7565\u7684\u6587\u4EF6\u540D\u540E\u7F00,\u53EF\u586B\u5165\u591A\u4E2A,\u7528\u82F1\u6587\u9017\u53F7\u5206\u9694");
    sl_panel.putConstraint(SpringLayout.NORTH, uploadIgnoreSuffixField, -3, SpringLayout.NORTH, lblNewLabel_2);
    panel.add(uploadIgnoreSuffixField);
    uploadIgnoreSuffixField.setColumns(10);
   
    downloadIgnoreSuffixField = new JTextField();
    downloadIgnoreSuffixField.setToolTipText("\u9700\u8981\u5FFD\u7565\u7684\u6587\u4EF6\u540D\u540E\u7F00,\u53EF\u586B\u5165\u591A\u4E2A,\u7528\u82F1\u6587\u9017\u53F7\u5206\u9694");
    sl_panel.putConstraint(SpringLayout.NORTH, downloadIgnoreSuffixField, -3, SpringLayout.NORTH, lblNewLabel_2);
    sl_panel.putConstraint(SpringLayout.WEST, downloadIgnoreSuffixField, 0, SpringLayout.WEST, proxyPortField);
    panel.add(downloadIgnoreSuffixField);
    downloadIgnoreSuffixField.setColumns(10);
   
    downloadMinsizeField = new JTextField();
    downloadMinsizeField.setToolTipText("\u8BBE\u7F6E\u4E0B\u8F7D\u6587\u4EF6\u6700\u5C0F\u5C3A\u5BF8,\u4F8B\u59821m");
    sl_panel.putConstraint(SpringLayout.NORTH, downloadMinsizeField, -3, SpringLayout.NORTH, label_6);
    sl_panel.putConstraint(SpringLayout.WEST, downloadMinsizeField, 0, SpringLayout.WEST, proxyPortField);
    panel.add(downloadMinsizeField);
    downloadMinsizeField.setColumns(10);
   
    uploadLimitField = new JTextField();
    uploadLimitField.setText("\u8BBE\u7F6E\u6700\u5927\u4E0A\u4F20\u901F\u5EA6");
    sl_panel.putConstraint(SpringLayout.SOUTH, uploadLimitField, -6, SpringLayout.NORTH, uploadMaxsizeField);
    uploadLimitField.setEditable(false);
    panel.add(uploadLimitField);
    uploadLimitField.setColumns(10);
   
    downloadMaxsizeField = new JTextField();
    downloadMaxsizeField.setToolTipText("\u8BBE\u7F6E\u4E0B\u8F7D\u6587\u4EF6\u6700\u5927\u5C3A\u5BF8,\u4F8B\u59821g");
    sl_panel.putConstraint(SpringLayout.SOUTH, downloadLimitField, -6, SpringLayout.NORTH, downloadMaxsizeField);
    sl_panel.putConstraint(SpringLayout.NORTH, downloadMaxsizeField, 0, SpringLayout.NORTH, uploadMaxsizeField);
    sl_panel.putConstraint(SpringLayout.WEST, downloadMaxsizeField, 0, SpringLayout.WEST, proxyPortField);
    panel.add(downloadMaxsizeField);
    downloadMaxsizeField.setColumns(10);
   
    JCheckBox checkBox_4 = new JCheckBox("\u5220\u9664\u672C\u5730\u6587\u4EF6\u9700\u8981\u786E\u8BA4");
    sl_panel.putConstraint(SpringLayout.WEST, checkBox_4, 10, SpringLayout.WEST, panel);
    checkBox_4.setEnabled(false);
    sl_panel.putConstraint(SpringLayout.NORTH, checkBox_4, 70, SpringLayout.SOUTH, uploadIgnoreHiddenBox);
    panel.add(checkBox_4);
   
    JCheckBox checkBox_5 = new JCheckBox("\u8986\u76D6\u672C\u5730\u6587\u4EF6\u9700\u8981\u786E\u8BA4");
    checkBox_5.setEnabled(false);
    sl_panel.putConstraint(SpringLayout.NORTH, checkBox_5, 0, SpringLayout.NORTH, checkBox_4);
    sl_panel.putConstraint(SpringLayout.WEST, checkBox_5, 0, SpringLayout.WEST, lblNewLabel_1);
    panel.add(checkBox_5);
   
    JLabel label_11 = new JLabel("\u4E0A\u4F20\u9650\u901F");
    sl_panel.putConstraint(SpringLayout.WEST, uploadLimitField, 16, SpringLayout.EAST, label_11);
    sl_panel.putConstraint(SpringLayout.EAST, label_11, 0, SpringLayout.EAST, checkBox);
    sl_panel.putConstraint(SpringLayout.WEST, label_11, 10, SpringLayout.WEST, panel);
    sl_panel.putConstraint(SpringLayout.SOUTH, label_11, -12, SpringLayout.NORTH, label_5);
    panel.add(label_11);
   
    uploadIgnorePath = new JTextField();
    sl_panel.putConstraint(SpringLayout.WEST, uploadIgnorePath, 41, SpringLayout.EAST, label_7);
    sl_panel.putConstraint(SpringLayout.EAST, uploadIgnorePath, -30, SpringLayout.WEST, label_10);
    uploadIgnorePath.setToolTipText("\u9700\u8981\u5FFD\u7565\u7684\u76F8\u5BF9\u8DEF\u5F84,\u7528\u82F1\u6587\u9017\u53F7\u5206\u9694");
    sl_panel.putConstraint(SpringLayout.SOUTH, uploadIgnorePath, 0, SpringLayout.SOUTH, label_7);
    panel.add(uploadIgnorePath);
    uploadIgnorePath.setColumns(10);
   
    downloadIgnorePath = new JTextField();
    downloadIgnorePath.setToolTipText("\u9700\u8981\u5FFD\u7565\u7684\u76F8\u5BF9\u8DEF\u5F84,\u7528\u82F1\u6587\u9017\u53F7\u5206\u9694");
    sl_panel.putConstraint(SpringLayout.NORTH, downloadIgnorePath, -3, SpringLayout.NORTH, label_7);
    sl_panel.putConstraint(SpringLayout.WEST, downloadIgnorePath, 0, SpringLayout.WEST, proxyPortField);
    panel.add(downloadIgnorePath);
    downloadIgnorePath.setColumns(10);
View Full Code Here

Examples of javax.swing.JTextField

    content
        .setLayout(new FormLayout("5dlu, 15dlu, fill:pref:grow, 3dlu, 100dlu",
            "pref, 3dlu,pref, 3dlu,pref, 3dlu,pref, 3dlu,pref, 3dlu,pref, 3dlu,pref, 3dlu,pref, fill:3dlu:grow ,pref, 3dlu,pref"));

    content.add(new JLabel(mLocalizer.msg("select", "Select Calendar")), cc.xyw(2, 3, 2));
    mCalendarChooser = new JTextField();
    content.add(mCalendarChooser, cc.xy(5, 3));

    ButtonBarBuilder2 builder = new ButtonBarBuilder2();
    builder.addGlue();
View Full Code Here

Examples of javax.swing.JTextField

        GridBagConstraints c = new GridBagConstraints();
        c.anchor = GridBagConstraints.WEST;
        c.insets = new Insets(5, 5, 5, 5);
        panel.add(nameLabel, c);
        String taskName = (String) workItem.getParameter("TaskName");
        JTextField nameField = new JTextField(
            taskName == null ? "" : taskName);
        nameField.setEditable(false);
        c = new GridBagConstraints();
        c.weightx = 1;
        c.fill = GridBagConstraints.HORIZONTAL;
        c.insets = new Insets(5, 5, 5, 5);
        panel.add(nameField, c);
       
        JLabel priorityLabel = new JLabel("Priority");
        c = new GridBagConstraints();
        c.gridy = 1;
        c.anchor = GridBagConstraints.WEST;
        c.insets = new Insets(5, 5, 5, 5);
        panel.add(priorityLabel, c);
        String priority = (String) workItem.getParameter("Priority");
        JTextField priorityField = new JTextField(
            priority == null ? "" : priority);
        priorityField.setEditable(false);
        c = new GridBagConstraints();
        c.gridy = 1;
        c.weightx = 1;
        c.fill = GridBagConstraints.HORIZONTAL;
        c.insets = new Insets(5, 5, 5, 5);
        panel.add(priorityField, c);
       
        JLabel commentLabel = new JLabel("Comment");
        c = new GridBagConstraints();
        c.gridy = 2;
        c.anchor = GridBagConstraints.WEST;
        c.insets = new Insets(5, 5, 5, 5);
        panel.add(commentLabel, c);
        String comment = (String) workItem.getParameter("Comment");
        JTextArea params = new JTextArea(
            comment == null ? "" : comment);
        params.setEditable(false);
        c = new GridBagConstraints();
        c.gridy = 2;
        c.weightx = 1;
        c.weighty = 1;
        c.fill = GridBagConstraints.BOTH;
        c.insets = new Insets(5, 5, 5, 5);
        panel.add(params, c);
       
        int additionalParameters = 0;
        for (Map.Entry<String, Object> entry: workItem.getParameters().entrySet()) {
            String name = entry.getKey();
            if (!"TaskName".equals(name)
                    && !"Priority".equals(name)
                    && !"Comment".equals(name)
                    && !"ActorId".equals(name)) {
                additionalParameters++;
                JLabel label = new JLabel(name);
                c = new GridBagConstraints();
                c.gridy = 2 + additionalParameters;
                c.anchor = GridBagConstraints.WEST;
                c.insets = new Insets(5, 5, 5, 5);
                panel.add(label, c);
                JTextField field = new JTextField(
                    workItem.getParameter(name).toString());
                field.setEditable(false);
                c = new GridBagConstraints();
                c.gridy = 2 + additionalParameters;
                c.weightx = 1;
                c.fill = GridBagConstraints.HORIZONTAL;
                c.insets = new Insets(5, 5, 5, 5);
                panel.add(field, c);
            }
        }
       
        // Result Panel
        JPanel resultPanel = new JPanel();
        resultPanel.setLayout(new GridBagLayout());
        resultPanel.setBorder(new TitledBorder("Results"));
       
        JLabel resultNameLabel = new JLabel("Name");
        c = new GridBagConstraints();
        c.insets = new Insets(5, 5, 5, 5);
        resultPanel.add(resultNameLabel, c);
        resultNameField = new JTextField();
        c = new GridBagConstraints();
        c.weightx = 1;
        c.fill = GridBagConstraints.HORIZONTAL;
        c.insets = new Insets(5, 5, 5, 5);
        resultPanel.add(resultNameField, c);
        JLabel resultValueLabel = new JLabel("Value");
        c = new GridBagConstraints();
        c.insets = new Insets(5, 5, 5, 5);
        resultPanel.add(resultValueLabel, c);
        resultValueField = new JTextField();
        c = new GridBagConstraints();
        c.weightx = 1;
        c.fill = GridBagConstraints.HORIZONTAL;
        c.insets = new Insets(5, 5, 5, 5);
        resultPanel.add(resultValueField, c);
View Full Code Here

Examples of javax.swing.JTextField

       
        JLabel label = new JLabel("Actor");
        GridBagConstraints c = new GridBagConstraints();
        c.insets = new Insets(5, 5, 5, 5);
        panel.add(label, c);
        actorTextField = new JTextField();
        c = new GridBagConstraints();
        c.weightx = 1;
        c.fill = GridBagConstraints.HORIZONTAL;
        c.insets = new Insets(5, 5, 5, 5);
        panel.add(actorTextField, c);
View Full Code Here

Examples of javax.swing.JTextField

        JLabel resultName = new JLabel("Result");
        c = new GridBagConstraints();
        c.gridy = 1;
        c.insets = new Insets(5, 5, 5, 5);
        panel.add(resultName, c);
        resultNameTextField = new JTextField();
        c = new GridBagConstraints();
        c.gridx = 1;
        c.gridy = 1;
        c.weightx = 0.3;
        c.fill = GridBagConstraints.HORIZONTAL;
        c.insets = new Insets(5, 5, 5, 5);
        panel.add(resultNameTextField, c);
       
        JLabel resultValue = new JLabel("Value");
        c = new GridBagConstraints();
        c.gridx = 2;
        c.gridy = 1;
        c.insets = new Insets(5, 5, 5, 5);
        panel.add(resultValue, c);
        resultValueTextField = new JTextField();
        c = new GridBagConstraints();
        c.gridx = 3;
        c.gridy = 1;
        c.weightx = 0.7;
        c.fill = GridBagConstraints.HORIZONTAL;
View Full Code Here

Examples of javax.swing.JTextField

    northPn.add(Box.createRigidArea(new Dimension(0,3)));

    JPanel commentPanel = new JPanel();
    commentPanel.setLayout(new BorderLayout());
    commentPanel.add(new JLabel(mLocalizer.msg("comment", "Comment")), BorderLayout.NORTH);
    mCommentField = new JTextField();
    commentPanel.add(mCommentField, BorderLayout.CENTER);
    northPn.add(commentPanel);

    mRememberSettingsCb = new JCheckBox(mLocalizer.msg("rememberSetting", "Remember setting"));
    JPanel pn1 = new JPanel(new BorderLayout());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.