Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
550 views
in Technique[技术] by (71.8m points)

java - JButton minimizing a window(JFrame)

Im trying to create my own Frame for my application. I have removed the standard Frame by using setUndecorated(true). I have a working exit button (not that difficult), but i want to have a JButton equal to the windows-minimizing-button in the top-right corner. I have tried several solutions as hide(), HIDE_ON_CLOSE and even setVisible(). But non of them is giving me the wanted result.

Im extending a JFrame to my class.

I am thinking of some Mouselistener(?), but im like a big question mark right now.

enter image description here

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...