|
Post by chriscrawford on Sept 18, 2015 7:11:53 GMT -8
8:07 AM As a diversion, I eliminated the file chooser dialog that allows the user to select which storyworld to work with. Now it starts up automatically with Siboot. That simplifies matters somewhat. We can restore the file chooser dialog when we build Dramagine as a separate product.
I am still stumped over the refusal of the Front End window to repaint. The window appears, I can set its title, but I can't get it to paint, no matter where I place the repaint() command. This is particularly frustrating, as I have never experienced a problem like this before. The method repaint() ALWAYS triggers at least one call to paint(). And of course, I can't directly call paint() -- Java forbids that. I hate Java #2363
|
|
|
Post by chriscrawford on Sept 18, 2015 13:57:59 GMT -8
I'm still stuck. I learned that I was committing a serious Java no-no: I was drawing directly into the JFrame -- that's not permitted. It has worked fine for me for months, but in my attempts to find solutions to the problem on the web, I ran across some material explaining that you must draw into a JComponent that is set inside the JFrame. So I went to work, rewriting lots of code to insert a JPanel into the JFrame and then repainting the JPanel. After all that work, the result was: zero change. It worked exactly the same as it had worked before. Or rather, didn't work. Yes, I tried both paint() and paintComponent().
So right now I am stuck. I hate Java #2364.
|
|