Package org.woped.metrics.helpers

Examples of org.woped.metrics.helpers.WatermarkedJTextField


                    }
                  });
                  jMetricsIDTextField.getDocument().addDocumentListener(new MetricsBuilderListener());
                }
                {
                  jMetricsNameTextField = new WatermarkedJTextField(Messages.getString("MetricsBuilder.Watermarks.Name"));
                  jPanelMBNorth.add(jMetricsNameTextField);
                  jMetricsNameTextField
                      .setPreferredSize(new java.awt.Dimension(
                          236, 25));
                  jMetricsNameTextField.setTransferHandler(new TransferHandler(){
                    private static final long serialVersionUID = 973043666511565759L;

                    public boolean canImport(
                        TransferHandler.TransferSupport support) {
                        return false;
                    }
                  });
                  jMetricsNameTextField.getDocument().addDocumentListener(new MetricsBuilderListener());
                }
                }
                }
              {
                jPanelMBNorthCenter = new JPanel();
                BorderLayout jPanelMBNorthCenterLayout = new BorderLayout();
                jPanelMBNorthCenterLayout.setVgap(3);
                jPanelMBNorthCenterLayout.setHgap(5);
                jPanelMBNorthCenter.setLayout(jPanelMBNorthCenterLayout);
                jPanelId.add(jPanelMBNorthCenter,
                    BorderLayout.SOUTH);
                jPanelMBNorthCenter.setPreferredSize(new java.awt.Dimension(395, 123));
                jPanelMBNorthCenter.setSize(395, 120);
                {
                  jMetricsDescriptionTextField = new WatermarkedJTextField(Messages.getString("MetricsBuilder.Watermarks.Description"));
                  jPanelMBNorthCenter.add(jMetricsDescriptionTextField, BorderLayout.NORTH);
                  jMetricsDescriptionTextField.setPreferredSize(new java.awt.Dimension(395, 68));
                  jMetricsDescriptionTextField.setSize(395, 68);
                  jMetricsDescriptionTextField.setTransferHandler(new TransferHandler() {
                    private static final long serialVersionUID = 8700297967169121889L;

                    public boolean canImport(
                        TransferHandler.TransferSupport support) {
                        return false;
                    }
                  });
                  jMetricsDescriptionTextField.getDocument().addDocumentListener(new MetricsBuilderListener());
                }
                {
                  jMetricsFormulaTextField = new WatermarkedJTextField(Messages.getString("MetricsBuilder.Watermarks.Formula"));
                  jPanelMBNorthCenter.add(jMetricsFormulaTextField, BorderLayout.CENTER);
                  jMetricsFormulaTextField.setPreferredSize(new java.awt.Dimension(395, 25));
                  jMetricsFormulaTextField
                      .setDropMode(DropMode.USE_SELECTION);
                  jMetricsFormulaTextField
View Full Code Here

TOP

Related Classes of org.woped.metrics.helpers.WatermarkedJTextField

Copyright © 2018 www.massapicom. 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.