I\'ve started learning basic Java and wanted to rewrite a Game Map Generator that I\'ve once wrote in PHP. I\'ve got part of it working fine (This is just the start), but whenever I want to display 2
I have a simple drawing program, I set开发者_如何学JAVA my Jframe\'s size with the following code:
I\'d like to build an app that has 2 windows. The first one should always be in the first monitor, and can\'t be maximized.
Yes, this question is everywhere.But all of the (working) solutions use the AWTUtilities toolkit, which is restricted.
So, I\'ve been working to redo my code so that the painting is all done in a JPanel instead of a JFrame so I can do some very much needed image buffering.
I created a window and want to intercept the exit with the method windowStateChanged to save the data before the application closes. However, it doesn\'t appear to be saving the data before it closes.
I seem to have the reverse problem to most people.I have the following pretty standard code to see if the user wants to do some saves before closing the window:
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarif开发者_StackOverflowy the problem by editing this
I can make a program to enter a series of values of geometric figures to show me开发者_Go百科 in a JFrame.
Making a very basic paint program for a class and one of the requirements is that we must make an eraser. Not sure how to do that, We are using a bufferedimage that is then getting pasted to our jfram