Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Swing / AWT / SWT
JList transparent? Possibility to draw
Mathew Mintalm
Ranch Hand
Posts: 103
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello everyone, I would like to ask you something, im trying to create such transparent panel with possibility to draw rectangles on:
Someone told me that I should list JList to do it, but still i could not figure it out, how to make this jlist transparent with possibility to draw.
Thanks for support
Darryl Burke
Bartender
Posts: 5167
11
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I don't see any involvement of JList here. I would guess you misinterpreted advice to use a java.util.List and iterate over the list in a paintComponent override to paint the rectangles.
Some learning resources:
http://download.oracle.com/javase/tutorial/uiswing/index.html
http://download.oracle.com/javase/tutorial/uiswing/painting/index.html
http://download.oracle.com/javase/tutorial/collections/index.html
luck, db
There are no new questions, but there may be new answers.
A lot of people cry when they cut onions. The trick is not to form an emotional bond. This tiny ad told me:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How can i make canvas Transparent
Glass panes -- transparent panes
Making an image transparent
transparent frame?
Capture "part" of a component to Image
More...