/** 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)); }
/** 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 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(); }
if (IJ.isLinux()) tf.setBackground(Color.white); tf.addActionListener(this); tf.addTextListener(this);
if (IJ.isLinux()) tf.setBackground(Color.white); tf.addActionListener(this); tf.addTextListener(this);
if (IJ.isLinux()) tf.setBackground(Color.white); tf.setEchoChar(echoChar); echoChar = 0;
if (IJ.isLinux()) tf.setBackground(Color.white); tf.setEchoChar(echoChar); echoChar = 0;
defaultString = ""; TextField tf = new TextField(defaultString, columns); if (IJ.isLinux()) tf.setBackground(Color.white); tf.addActionListener(this); tf.addTextListener(this);
defaultString = ""; TextField tf = new TextField(defaultString, columns); if (IJ.isLinux()) tf.setBackground(Color.white); tf.addActionListener(this); tf.addTextListener(this);
exprField.setBackground (java.awt.Color.white); exprField.setName ("exprField"); exprField.setFont (new Font ("Dialog", 0, 11));
exprField.setBackground (java.awt.Color.white); exprField.setName ("exprField"); exprField.setFont (new Font ("Dialog", 0, 11));
exprField.setBackground (java.awt.Color.white); exprField.setName ("exprField"); exprField.setFont (new java.awt.Font ("Dialog", 0, 11));
exprField.setBackground (java.awt.Color.white); exprField.setName ("exprField"); exprField.setFont (new java.awt.Font ("Dialog", 0, 11));
q = new Panel(new BorderLayout()); q.add(token = new TextField(12), "West"); token.setEditable(false); token.setBackground(Color.white); token.setFont(font); q.add(value = new TextField(24), "Center"); value.setEditable(false); value.setBackground(Color.white); value.setFont(font); p.add(q, "Center");
cancelButton = new Button("Done"); text1 = new TextField(15); text1.setBackground(Color.white); text2 = new TextField(15); text2.setBackground(Color.white); label1 = new Label("Search for:"); label2 = new Label(" Replace all with:");
status.setBounds(1, HEIGHT - 21, WIDTH - 2, 20); status.setEditable(false); status.setBackground(getBackground()); setResizable(false); setVisible(true);
yournameTF = new TextField(20); yournameTF.setName("yournameTF"); yournameTF.setBackground(Color.white); p.add(yournameTF); add(p); improveTF = new TextField(); improveTF.setName("improveTF"); improveTF.setBackground(Color.white); add(improveTF); bestpartTF = new TextField(); bestpartTF.setName("bestpartTF"); bestpartTF.setBackground(Color.white); add(bestpartLabel); add(bestpartTF);