Results 1 to 8 of 8
  1. #1
    ynnorj is offline Member
    Join Date
    Aug 2008
    Posts
    5
    Rep Power
    0

    Question Java SWT Transparent Buttons

    Can we make transparent swt buttons? If it is possible, how can we be able to do it? Thanks!:)

  2. #2
    serjant's Avatar
    serjant is offline Senior Member
    Join Date
    Jun 2008
    Location
    Ukraine,Zaporozhye
    Posts
    487
    Rep Power
    7

    Default

    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

  3. #3
    ynnorj is offline Member
    Join Date
    Aug 2008
    Posts
    5
    Rep Power
    0

    Question

    Are there no codings like
    btn1.setColor(Color.Transparent)
    or something? Thanks

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,267
    Rep Power
    25

    Default

    How about setOpaque(false);

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    How about setOpaque(false);
    I know this works for Swing but as the OP is talking about SWT, does it work for this framework?

  6. #6
    ynnorj is offline Member
    Join Date
    Aug 2008
    Posts
    5
    Rep Power
    0

    Default

    Sorry for posting this topic in this category. Thanks anyways for the answers. Guess I should transfer this topic to the other category. Thanks!

  7. #7
    i4ba1 is offline Member
    Join Date
    Aug 2008
    Posts
    13
    Rep Power
    0

    Question how to link first form to second form?

    Hai all,

    i use swt framework. i create to form using swt in eclipse. in my first form i have a button. when the button is clicked, i want the second form is show and the first form is disposed. can you help me please??.

  8. #8
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. How to use SWT Buttons
    By Java Tip in forum SWT
    Replies: 0
    Last Post: 07-11-2008, 04:44 PM
  2. Text effect: rotation and transparent
    By Java Tip in forum java.awt
    Replies: 0
    Last Post: 06-21-2008, 08:49 PM
  3. Next and Previous Buttons
    By JavaNewb in forum New To Java
    Replies: 1
    Last Post: 05-09-2008, 01:23 AM
  4. Replies: 1
    Last Post: 07-17-2007, 04:10 AM
  5. Transparent JTextPane
    By Ada in forum AWT / Swing
    Replies: 1
    Last Post: 05-31-2007, 09:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •