hi

What is the difference between in JFrame and JWindow?
If I want to develop a a desktop application either I have to use JWindow or JFrame.

personally, I never used JWindow, but you should be able to use both.

The JWindow class creates a window with no title bar or the associated buttons. A JFrame looks more or less like a normal window that you would expect to see in any application. I personally like JFrames more.

1) JWindow is un_decorated Container, there aren't any button (JFrame has three, JDialog only one),

2) this window isn't possible close, hide or terminate current JVM without additional Action e.g from JButton, JMenu or another code that call System.exit(i int), best way is use this container as popup window for JFrame,

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.