Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-11-2008, 03:41 PM
Member
 
Join Date: Aug 2008
Posts: 5
ynnorj is on a distinguished road
Java SWT Transparent Buttons
Can we make transparent swt buttons? If it is possible, how can we be able to do it? Thanks!
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-11-2008, 04:56 PM
serjant's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Ukraine,Zaporozhye
Posts: 356
serjant is on a distinguished road
Send a message via ICQ to serjant Send a message via Skype™ to serjant
You can create the buttons and then to make SynthLookAndFeel where you can declare on buttons style ang put on buttons images,then when the windows drags or moves you can make screenshot of that area where the button is and put again the image on button
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 08-12-2008, 03:35 AM
Member
 
Join Date: Aug 2008
Posts: 5
ynnorj is on a distinguished road
Are there no codings like
btn1.setColor(Color.Transparent)
or something? Thanks
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 08-12-2008, 04:31 AM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Heredia, Costa Rica
Posts: 2,225
Norm is on a distinguished road
How about setOpaque(false);
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 08-12-2008, 05:44 AM
Fubarable's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 1,289
Fubarable is on a distinguished road
Quote:
How about setOpaque(false);
I know this works for Swing but as the OP is talking about SWT, does it work for this framework?
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 08-13-2008, 02:38 PM
Member
 
Join Date: Aug 2008
Posts: 5
ynnorj is on a distinguished road
Sorry for posting this topic in this category. Thanks anyways for the answers. Guess I should transfer this topic to the other category. Thanks!
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use SWT Buttons Java Tip SWT 0 07-11-2008 06:44 PM
Text effect: rotation and transparent Java Tip java.awt 0 06-21-2008 10:49 PM
Next and Previous Buttons JavaNewb New To Java 1 05-09-2008 03:23 AM
How can I get a transparent pixel from an image samson Java 2D 1 07-17-2007 06:10 AM
Transparent JTextPane Ada AWT / Swing 1 05-31-2007 11:50 PM


All times are GMT +3. The time now is 12:04 PM.


VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org