86 |
native void gtkWidgetGetDimensions(int[] dim); |
native void gtkWidgetGetDimensions(int[] dim); |
87 |
native void gtkWidgetGetLocationOnScreen(int[] point); |
native void gtkWidgetGetLocationOnScreen(int[] point); |
88 |
native void gtkWidgetSetCursor (int type); |
native void gtkWidgetSetCursor (int type); |
89 |
|
native void gtkWidgetSetBackground (int red, int green, int blue); |
90 |
|
native void gtkWidgetSetForeground (int red, int green, int blue); |
91 |
|
|
92 |
void create () |
void create () |
93 |
{ |
{ |
116 |
|
|
117 |
connectHooks (); |
connectHooks (); |
118 |
|
|
119 |
if (awtComponent.getForeground () == null) |
if (awtComponent.getForeground () != null) |
120 |
awtComponent.setForeground (getForeground ()); |
setForeground (awtComponent.getForeground ()); |
121 |
if (awtComponent.getBackground () == null) |
if (awtComponent.getBackground () != null) |
122 |
awtComponent.setBackground (getBackground ()); |
setBackground (awtComponent.getBackground ()); |
|
// if (c.getFont () == null) |
|
|
// c.setFont (cp.getFont ()); |
|
123 |
if (awtComponent.getFont() != null) |
if (awtComponent.getFont() != null) |
124 |
setFont(awtComponent.getFont()); |
setFont(awtComponent.getFont()); |
125 |
|
|
276 |
|
|
277 |
public void setBackground (Color c) |
public void setBackground (Color c) |
278 |
{ |
{ |
279 |
// System.out.println ("setBackground [UNIMPLEMENTED"); |
gtkWidgetSetBackground (c.getRed(), c.getGreen(), c.getBlue()); |
280 |
} |
} |
281 |
|
|
282 |
native public void setNativeBounds (int x, int y, int width, int height); |
native public void setNativeBounds (int x, int y, int width, int height); |
314 |
|
|
315 |
public void setForeground (Color c) |
public void setForeground (Color c) |
316 |
{ |
{ |
317 |
// System.out.println ("setForeground [UNIMPLEMENTED"); |
gtkWidgetSetForeground (c.getRed(), c.getGreen(), c.getBlue()); |
318 |
} |
} |
319 |
|
|
320 |
public Color getForeground () |
public Color getForeground () |