Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #2002 > unrolled thread

Re: Image on JFrame - pro

Started by"Oberon" <oberon@THRWHITE.remove-dii-this>
First post2011-04-27 15:36 +0000
Last post2011-04-27 15:36 +0000
Articles 2 — 1 participant

Back to article view | Back to comp.lang.java.gui

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Image on JFrame - pro "Oberon" <oberon@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
    Re: Image on JFrame - pro "Oberon" <oberon@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000

#2002 — Re: Image on JFrame - pro

From"Oberon" <oberon@THRWHITE.remove-dii-this>
Date2011-04-27 15:36 +0000
SubjectRe: Image on JFrame - pro
Message-ID<1184019209.593095.308720@g4g2000hsf.googlegroups.com>
  To: comp.lang.java.gui
On 9 Lip, 22:05, "Andrew Thompson" <u32984@uwe> wrote:

> >public class AboutFrame extends JFrame{
> ..
> >        public void paint(Graphics g){
>
> That should be paintComponent(g) for Swing apps.

Hmm if I change to paintComponent(g) Image is not able

The problem looks (my printscreen):  http://www.fotosik.pl/pokaz_obrazek/pelny/b4b6b1bb2ba349af.html

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [next] | [standalone]


#2003

From"Oberon" <oberon@THRWHITE.remove-dii-this>
Date2011-04-27 15:36 +0000
Message-ID<1184020836.684731.34370@g4g2000hsf.googlegroups.com>
In reply to#2002
  To: comp.lang.java.gui
OK works:
It works using paint(g) on paintComponent(g) it doesn't ;/

the problem was that i forget aboute:
super.paint(g)  ;)

thnks

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.gui


csiph-web