Sep 26 2005
Making a Custom Frameless Window
There are many ways to create your own window type in Java. The level of complexity often depends on the level of customization that you want. I’m going to walk you through the creation of a simple, custom, “frameless”, window that extends JDialog. I started off using JWindow, but noticed that it was not passing focus to my JTextField components. I probably could have implemented a focus traversal policy, but since the JDialog’s focus behavior was what I needed anyway, I just extended it instead.
Continue Reading »