Article View: borland.public.jbuilder.java.swing
Article #1812Drawing on a jPanel within a scrollpane on a java swing applet, how??
From: ilepper
Date: Fri, 01 Aug 2003 08:15
Date: Fri, 01 Aug 2003 08:15
35 lines
1946 bytes
1946 bytes
Hello there, These newsgroups have always helped me a lot, so I'd thought to try my luck again. I just cant it working the I want, have searched the internet forth and back, without satisfying result. Anyway, my problem, I have the following, a java swing applet, with a jScrollPane, within that pane I put a jPanel, on which I would like to draw some rectangles with text in them. These rectangles should also be mouse clickable btw. Maybe im aprouching this from a totally wrong angle, all the examples I found used a Frame, which I dont have, because I only want to draw within the scrollPane. So how do I do that. Maybe its real easy, I must admit im not a java graphics guru, so please dont flame me :) Does anyone have an example by hand? Also take in account that these rectangles should also be mouse clickable, the user clicks on them and sees some detailed information about them. So perhaps using rectangles isnt the right aprouch either. I hope someone can push me in the right direction Thanks in advance Cheers Ido ps if you email, please remove the NOSPAM
Technical Details
Message-ID:
<CFN378344277307523@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,f4f404ceda993b26,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-08-01 01:22:08 PST Date: Fri, 1 Aug 2003 10:15:55 +0200 From: ilepper <ilepperNOSPAM@fbk.eur.nl> Message-ID: <CFN378344277307523@newsgroups.borland.com> Newsgroups: borland.public.jbuilder.java.swing Subject: Drawing on a jPanel within a scrollpane on a java swing applet, how?? User-Agent: Codeforge Sophax 1.5 NNTP-Posting-Host: 130.115.26.50 X-Trace: newsgroups.borland.com 1059725756 130.115.26.50 (1 Aug 2003 01:15:56 -0700) Lines: 35 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail