55 |
create (((TextArea)awtComponent).getScrollbarVisibility ()); |
create (((TextArea)awtComponent).getScrollbarVisibility ()); |
56 |
} |
} |
57 |
|
|
58 |
// native void create (Object parent, String text, int scroll); |
native void gtkTextGetSize (int dims[]); |
|
native void gtkTextGetSize (int rows, int cols, int dims[]); |
|
59 |
|
|
60 |
public GtkTextAreaPeer (TextArea ta) |
public GtkTextAreaPeer (TextArea ta) |
61 |
{ |
{ |
69 |
{ |
{ |
70 |
int dims[] = new int[2]; |
int dims[] = new int[2]; |
71 |
|
|
72 |
gtkTextGetSize (rows, cols, dims); |
gtkTextGetSize (dims); |
73 |
|
|
74 |
return (new Dimension (dims[0], dims[1])); |
return (new Dimension (dims[0], dims[1])); |
75 |
} |
} |
78 |
{ |
{ |
79 |
int dims[] = new int[2]; |
int dims[] = new int[2]; |
80 |
|
|
81 |
gtkTextGetSize (rows, cols, dims); |
gtkTextGetSize (dims); |
82 |
|
|
83 |
return (new Dimension (dims[0], dims[1])); |
return (new Dimension (dims[0], dims[1])); |
84 |
} |
} |