-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.2.0
-
sparc
-
solaris_2.6
Displaying a TextArea on Solaris using JDK1.2 ("L" build) causes the
following Motif message to be printed:
Warning:
Name: HorScrollBar
Class: XmScrollBar
The scrollbar page increment is less than 1.
This message is distracting to users, and is a serious problem for
large applications such as JavaTest.
If there is a workaround for this problem, it should be posted.
The following application can be used to generate this message.
===========================================
/*
* TextareaTest.java
* Displaying a TextArea on Solaris generates a Motif horizontal scrollbar
* warning message
* Using JDK1.2 "L" build - 3/11/98
*
*/
import java.awt.*;
import java.awt.event.*;
public class TextareaTest extends Frame {
static TextArea textarea = null;
public TextareaTest() {
setLayout(new BorderLayout());
setFont(new Font("Helvetica", Font.PLAIN, 14));
Panel p1 = new Panel();
textarea = new TextArea(6, 80);
p1.add(textarea);
add("North", p1);
setTitle("TextareaTest Application");
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
pack();
show();
}
public static void main(String args[]) {
new TextareaTest();
}
}
===========================================