• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get have a frame which is of round shape. or any other shape, just no rectangl  RSS feed

 
maniyar Khalandar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i have created a beautiful remote control image, i want to create an application with it using swings. But my problem is if i create a JFrame, the title bar, minimize and maximize windows will always come.
Is there any way to hide this things and just show the components in the frame. just like other applications on the net, for example net to phone or remote control like shapes.
Thanks in advance. for your kind help.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Interesting problem.
So far I haven't seen anything like this.
I was thinking of the setClip() method of the
graphics class but that also seems to clip an
image to a rectangular dimensions specified.
Sorry, not sure - well, never gave it a thought!
regds.
- satya
 
Glen Tanner
Ranch Hand
Posts: 147
Java Python Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you use a java.awt.Window instead? JFrame inherits from it, anyway.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out this thread... it covered the same topic

-Nate
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!