115 |
this.awtComponent = awtComponent; |
this.awtComponent = awtComponent; |
116 |
insets = new Insets (0, 0, 0, 0); |
insets = new Insets (0, 0, 0, 0); |
117 |
|
|
|
/* temporary try/catch block until all peers use this creation method */ |
|
|
try { |
|
118 |
create (); |
create (); |
119 |
|
|
120 |
GtkArgList args = new GtkArgList (); |
GtkArgList args = new GtkArgList (); |
145 |
|
|
146 |
Rectangle bounds = awtComponent.getBounds (); |
Rectangle bounds = awtComponent.getBounds (); |
147 |
setBounds (bounds.x, bounds.y, bounds.width, bounds.height); |
setBounds (bounds.x, bounds.y, bounds.width, bounds.height); |
148 |
} catch (RuntimeException ex) { ; } |
setVisible (awtComponent.isVisible ()); |
149 |
} |
} |
150 |
|
|
151 |
public int checkImage (Image image, int width, int height, |
public int checkImage (Image image, int width, int height, |
447 |
|
|
448 |
public void setVisible (boolean b) |
public void setVisible (boolean b) |
449 |
{ |
{ |
450 |
set ("visible", b); |
if (b) |
451 |
} |
show (); |
452 |
|
else |
453 |
public void hide () |
hide (); |
|
{ |
|
|
setVisible (false); |
|
454 |
} |
} |
455 |
|
|
456 |
public void show () |
public native void hide (); |
457 |
{ |
public native void show (); |
|
setVisible (true); |
|
|
} |
|
458 |
|
|
459 |
protected void postMouseEvent(int id, long when, int mods, int x, int y, |
protected void postMouseEvent(int id, long when, int mods, int x, int y, |
460 |
int clickCount, boolean popupTrigger) |
int clickCount, boolean popupTrigger) |
508 |
|
|
509 |
public void getArgs (Component component, GtkArgList args) |
public void getArgs (Component component, GtkArgList args) |
510 |
{ |
{ |
|
args.add ("visible", component.isVisible ()); |
|
511 |
args.add ("sensitive", component.isEnabled ()); |
args.add ("sensitive", component.isEnabled ()); |
512 |
|
|
513 |
ComponentPeer p; |
ComponentPeer p; |