Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #6186
| From | Peter Cheung <cmk128@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | can't stop JPanel paint |
| Date | 2011-07-14 04:43 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <728e86bb-daed-40cd-b8a2-d2bf08059dd5@glegroupsg2000goo.googlegroups.com> (permalink) |
Hi
I have overrider all the paintXX method and did nothing in there. But why I still able to see the component on top of the JPanel?
thanks
from Peter (cmk128@hotmail.com)
import java.awt.CardLayout;
public class Carousel extends JPanel {
public Carousel() {
setLayout(new CardLayout(0, 0));
b.setSize(100, 100);
}
public Component add(Component c) {
add(c, "");
return c;
}
public void paint(Graphics g) {
}
public void paintComponents(Graphics g) {
}
public void paintChildren(Graphics g) {
System.out.println("ss");
}
public void paintImmediately(int x, int y, int w, int h) {
}
public void paintImmediately(Rectangle r) {
}
public void repaint(long tm, int x, int y, int width, int height) {
}
}
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar
can't stop JPanel paint Peter Cheung <cmk128@gmail.com> - 2011-07-14 04:43 -0700 Re: can't stop JPanel paint supercalifragilisticexpialadiamaticonormalizeringelimatisticantations <supercalifragilisticexpialadiamaticonormalizeringelimatisticantations@averylongandannoyingdomainname.com> - 2011-07-14 08:37 -0400 Re: can't stop JPanel paint Roedy Green <see_website@mindprod.com.invalid> - 2011-07-26 06:30 -0700
csiph-web