151 |
int dim[]=new int[2]; |
int dim[]=new int[2]; |
152 |
gtkWidgetGetDimensions (dim); |
gtkWidgetGetDimensions (dim); |
153 |
Dimension d = new Dimension (dim[0],dim[1]); |
Dimension d = new Dimension (dim[0],dim[1]); |
|
System.out.println ("min: " + this + d); |
|
154 |
return (d); |
return (d); |
155 |
} |
} |
156 |
|
|
159 |
int dim[]=new int[2]; |
int dim[]=new int[2]; |
160 |
gtkWidgetGetDimensions (dim); |
gtkWidgetGetDimensions (dim); |
161 |
Dimension d = new Dimension (dim[0],dim[1]); |
Dimension d = new Dimension (dim[0],dim[1]); |
|
System.out.println ("pref: " + this + d); |
|
162 |
return (d); |
return (d); |
163 |
} |
} |
164 |
|
|
240 |
|
|
241 |
public void setBackground (Color c) |
public void setBackground (Color c) |
242 |
{ |
{ |
243 |
System.out.println ("setBackground [UNIMPLEMENTED"); |
// System.out.println ("setBackground [UNIMPLEMENTED"); |
244 |
} |
} |
245 |
|
|
246 |
native public void setNativeBounds (int x, int y, int width, int height); |
native public void setNativeBounds (int x, int y, int width, int height); |
275 |
|
|
276 |
public void setForeground (Color c) |
public void setForeground (Color c) |
277 |
{ |
{ |
278 |
System.out.println ("setForeground [UNIMPLEMENTED"); |
// System.out.println ("setForeground [UNIMPLEMENTED"); |
279 |
} |
} |
280 |
|
|
281 |
public Color getForeground () |
public Color getForeground () |
347 |
do |
do |
348 |
{ |
{ |
349 |
component = component.getParent (); |
component = component.getParent (); |
|
System.out.println ("COMPONPEER: " + component); |
|
350 |
p = component.getPeer (); |
p = component.getPeer (); |
351 |
} while (p instanceof java.awt.peer.LightweightPeer); |
} while (p instanceof java.awt.peer.LightweightPeer); |
352 |
|
|