• 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

transperent window

 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi ranchers .. i m here again..
can i make a transperent window using swing?. i need a transperant window with some components visible.rest of my window area should show the desktop background..
welcome to all solutions and suggestions
can i make a curser like adobe acrobat viewer curser using swing?(a hand grabbing action while dragging the mouse).
basha
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't really make a transparent window using just Swing... (well, you can try to fake it by taking a screenshot and painting on the background of your component, but it doesn't really work... if you move the window around, the background will not update fast enough...) You might want to take a look at SkinLF they support non-rectangular windows (which may have something to do with your questions.)

And yes, you can change cursors, so you could make a hand grab... make a graphic of the hand grab and the hand open, and use the Toolkit class to make your cursors.



Then you would swap these Cursors in a mouseListener:
 
basha khan
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks a lot nate.
"There are only five notes in the musical scale,but their variations are so many that they cannot all be heard.There are only five basic colours,but their variations are so many that they cannot all be seen"
appreciating ur work with swing which offer so many combinations.
basha
 
This guy is skipping without a rope. At least, that's what this tiny ad said:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic