equal
deleted
inserted
replaced
341 @Deprecated |
341 @Deprecated |
342 public Insets insets() { |
342 public Insets insets() { |
343 ComponentPeer peer = this.peer; |
343 ComponentPeer peer = this.peer; |
344 if (peer instanceof ContainerPeer) { |
344 if (peer instanceof ContainerPeer) { |
345 ContainerPeer cpeer = (ContainerPeer)peer; |
345 ContainerPeer cpeer = (ContainerPeer)peer; |
346 return (Insets)cpeer.insets().clone(); |
346 return (Insets)cpeer.getInsets().clone(); |
347 } |
347 } |
348 return new Insets(0, 0, 0, 0); |
348 return new Insets(0, 0, 0, 0); |
349 } |
349 } |
350 |
350 |
351 /** |
351 /** |
3929 } |
3929 } |
3930 } else { |
3930 } else { |
3931 if (comp.isVisible()) { |
3931 if (comp.isVisible()) { |
3932 ComponentPeer peer = comp.getPeer(); |
3932 ComponentPeer peer = comp.getPeer(); |
3933 if (peer != null) { |
3933 if (peer != null) { |
3934 peer.show(); |
3934 peer.setVisible(true); |
3935 } |
3935 } |
3936 } |
3936 } |
3937 } |
3937 } |
3938 } |
3938 } |
3939 } |
3939 } |
3950 } |
3950 } |
3951 } else { |
3951 } else { |
3952 if (comp.isVisible()) { |
3952 if (comp.isVisible()) { |
3953 ComponentPeer peer = comp.getPeer(); |
3953 ComponentPeer peer = comp.getPeer(); |
3954 if (peer != null) { |
3954 if (peer != null) { |
3955 peer.hide(); |
3955 peer.setVisible(false); |
3956 } |
3956 } |
3957 } |
3957 } |
3958 } |
3958 } |
3959 } |
3959 } |
3960 } |
3960 } |