-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
1.2.0
-
x86
-
windows_95, windows_nt
The default background color for a TextField is black on Windows,
white on Solaris. If I run the same application with 1.1.3, the
background is white on Windows and Solaris.
The full source is in the attachments, it includes both sources
and the compiled classes I used to test. To run the example,
unzip the file (with recursive directory creation options turned on)
under, for example, the directory c:\test then set the CLASSPATH to
whatever you need plus c:\test then run
java dynamicobjects.perspectives.NewPerspectiveDialog
sorry for the complexity of it, but I extracted part of a program we're
working on so you could see the exact environment that creates the
problem.
------------------------------------------------------------------
The following is a snapshot of the code that creates the TextField.
public class testText extends Frame implements ActionListener {
TextField tf = new TextField("TextField");
testText() {
super ("Textfield Example");
add(tf, BorderLayout.CENTER);
setBackground(SystemColor.menu);
// Add listener fr text field
tf.addActionListener(this);
pack();
show();
}
public void actionPerformed(ActionEvent evt) {
System.out.println(tf.getText());
}
static public void main(String[] args) {
new testText();
}
}
====================================================================
User reports that this problem still exists in 1.2beta,
sheri.good@Eng 1997-10-28
====================================================================
Still doesn't work in 1.2beta3-B
daniel.indrigo@Canada 1998-01-12
white on Solaris. If I run the same application with 1.1.3, the
background is white on Windows and Solaris.
The full source is in the attachments, it includes both sources
and the compiled classes I used to test. To run the example,
unzip the file (with recursive directory creation options turned on)
under, for example, the directory c:\test then set the CLASSPATH to
whatever you need plus c:\test then run
java dynamicobjects.perspectives.NewPerspectiveDialog
sorry for the complexity of it, but I extracted part of a program we're
working on so you could see the exact environment that creates the
problem.
------------------------------------------------------------------
The following is a snapshot of the code that creates the TextField.
public class testText extends Frame implements ActionListener {
TextField tf = new TextField("TextField");
testText() {
super ("Textfield Example");
add(tf, BorderLayout.CENTER);
setBackground(SystemColor.menu);
// Add listener fr text field
tf.addActionListener(this);
pack();
show();
}
public void actionPerformed(ActionEvent evt) {
System.out.println(tf.getText());
}
static public void main(String[] args) {
new testText();
}
}
====================================================================
User reports that this problem still exists in 1.2beta,
sheri.good@Eng 1997-10-28
====================================================================
Still doesn't work in 1.2beta3-B
daniel.indrigo@Canada 1998-01-12