my dialog example as following:
public class DialogNotify extends JDialog{
public DialogNotify() {
setModal(true);
setSize(200, 100);
setVisible(true);
}
}
how to make it shown frameless ? by frameless, I mean with "close" button on top right or menu bar on top left.
I found this blog entry on the topic: Making a Custom Frameless Window
The key thing seems to be to call setUndecorated(true)
to suppress the frame and titlebar.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.