mainPanel.add(label, constraintsLabel); urlText = new TextField(); urlText.setEditable(false); urlText.setFont(font);
public StringAttributeEditor() { widget = new TextField(); origs = ""; } }
public FileEditor() { widget = new TextField(); origs = ""; } }
public void addTextField( String defaultText, int columns, String label ) { TextField tf = new TextField( defaultText,columns ); QuestionComponent q = new QuestionComponent( TEXTFIELD, null, label, tf ); components.add(q); }
public IntegerAttributeEditor() { widget = new TextField(); widget.addKeyListener(new IntegerListener()); origs = ""; } }
void setScore(int s) { score = s; String st = "score: "+s; if(score_txt == null) { score_txt = new TextField(st); score_txt.setEditable(false); } else score_txt.setText(st); } void addScore(int s) {
public DoubleAttributeEditor() { widget = new TextField(); widget.addKeyListener(new DoubleListener()); origs = ""; } }
@Override protected void initThreads(Container container, GridBagConstraints constraints) { this.threadsLabel = new Label("Threads:"); container.add(this.threadsLabel, constraints); this.threadsField = new TextField(ApfloatContext.getContext().getProperty(ApfloatContext.NUMBER_OF_PROCESSORS), 5); constraints.gridwidth = GridBagConstraints.REMAINDER; container.add(this.threadsField, constraints); }
/** Add a left-aligned, full-width text field. */ public TextField addTextField(int len, int width, int anchor, double weightx, double weighty, int fill, int shift) { TextField textfield = new TextField("", len); textfield.setBackground(textColor); return (TextField)(addComponent(textfield, width, anchor, weightx, weighty, fill, shift)); }
public LongAttributeEditor() { widget = new TextField(); widget.addKeyListener(new LongListener()); origs = ""; } }
/** Add a left-aligned, full-width text field. */ public TextField addTextField(String text, int len, int width, int anchor, double weightx, double weighty, int fill, int shift) { TextField textfield = new TextField(text, len); textfield.setBackground(textColor); return (TextField)(addComponent(textfield, width, anchor, weightx, weighty, fill, shift)); }
public void push (int state, Object value) { Panel q = new Panel(new BorderLayout()); TextField t; q.add(t = new TextField(""+state, 5), "West"); t.setEditable(false); t.setBackground(Color.white); t.setFont(font); q.add(t = new TextField(value != null ? value.toString() : ""), "Center"); t.setEditable(false); t.setBackground(Color.white); t.setFont(font); panel.add(q, level, 0); validate(); }
public InstanceSavePanel() { setLayout(new BorderLayout()); arffFile_Tex = new TextField("arffoutput.arff"); add("Center", arffFile_Tex); count_Lab = new Label("0 instances"); add("East", count_Lab); // setSize(60,40); setBackground(Color.lightGray); }
private TextField addField() { final TextField tf = new TextField(10); tf.addFocusListener(this); tf.addKeyListener(this); tf.setEditable(true); panel.add(tf); return tf; }
/** Set things up nicely. */ public TiledImageComponent() { setLayout(new FlowLayout()); add(new Label("Name:", Label.CENTER)); add(nameTF=new TextField(10)); add(new Label("Password:", Label.CENTER)); add(passTF=new TextField(10)); passTF.setEchoChar('*'); add(new Label("Domain:", Label.CENTER)); add(domainTF=new TextField(10)); im = getToolkit().getImage(DEFAULT_IMAGE_NAME); }
FComponent(SelectFileEditor editor) { this.editor = editor; this.text = new TextField(); this.select = new Button("Select"); select.setActionCommand("select"); select.addActionListener(this); setLayout( new BorderLayout()); add(text,"Center"); add(select,"East"); } }
/** Init() is an Applet method used to set up the GUI and listeners */ public void init() { add(new Label("Hex:")); add(textField = new TextField(10)); textField.addTextListener(new FieldEditingListener(textField)); }
public Object clone() { TestGroup t = new TestGroup(lab.getText(),txt.isEditable()); t.txt = new TextField(); t.txt.setText(txt.getText()); t.ctxt = (ColorText)ctxt.clone(); return t; } public TestGroup(String s,boolean b) {
@Override public void set(final WidgetModel model) { super.set(model); getComponent().setLayout(new BorderLayout()); path = new TextField(20); path.addTextListener(this); getComponent().add(path, BorderLayout.CENTER); browse = new Button("Browse"); browse.addActionListener(this); getComponent().add(browse, BorderLayout.EAST); refreshWidget(); }