javawindowsshaped-window

L shaped java application window


I want to create a java application that is the shape of an "L" so that the application only occupies the left and bottom borders of the screen. I also do not want the normal borders and title bar at the top. I've seen other people creating circles and other shapes like that, but no complex shapes. This is for a windows xp computer and will never be on any other os.

So, how would I do this?


Solution

  • java.awt.Window/javax.swing.JWindow and java.awt.Frame/javax.swing.JFrame with setUndecorated will create frameless windows. You could put two or more together to create an L-shape.

    From 6u10, the Sun JRE also has a non-standard API or non-rectangular and transparent windows.