Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #2787
| From | "Eric Czarny" <eric.czarny@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: ListCellRenderer Only |
| Message-ID | <10dd3dfa-43cd-4e02-856e-300f05b452aa@c30g2000hsa.googlegroups.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <15f1be8a-01d1-45d1-8765-6f20edf4edfc@n20g20 |
| Date | 2011-04-27 15:41 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui On Nov 17, 3:20 pm, Eric Czarny <ecza...@gmail.com> wrote: > On Nov 17, 12:51 am, "Andrew Thompson" <u32984@uwe> wrote: > > > Eric Czarny wrote: > > > .. > > > >I forgot all about MediaTracker, thanks for the link! > > > Knute's code examples are excellent, for quickly > > explaining these sorts of questions. ;-) > > > -- > > Andrew Thompsonhttp://www.athompson.info/andrew/ > > > Message posted via JavaKB.comhttp://www.javakb.com/Uwe/Forums.aspx/java-gui/200711/1 > > I'm still having trouble getting the JList to render more than one > cell. The cells are actually there (I can select them, etc...), but it > doesn't look like the paintComponent method has any affect. Any ideas > as to why this happens? Is there some behavior of ListCellRenderer I > am overlooking? I found a solution to my problem and decided to post the solution for anybody else who runs into this problem. It turns out I was drawing in relation to the wrong point of origin. By removing the calls to getX and getY in paintComponent I was able to draw in the correct places. I feel a little dumb. --- * 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
Back to comp.lang.java.gui | Previous | Next | Find similar | Unroll thread
Re: ListCellRenderer Only "Eric Czarny" <eric.czarny@THRWHITE.remove-dii-this> - 2011-04-27 15:41 +0000
csiph-web