A JFrame is a little more than just a regular java app. You must extend and import a bunch of graphics classes included with JDK. To do this you need the following:
So I got a JFrame app the other day for a plugin on a program. I found out how to change variable values in a text file without a recompile of the java class. Here it is (I did not include the preliminary java declarations/import classes, but they must also be included as usual).
The var declare portion of app.java file
Static int varName = Integer.parseInt(readData("config.txt", "WindowWidth"));
The config.txt file
WindowWidth = 205
After compiling the java file (cmd “javac app.java”), you will be able to change the initial value of varName by changing the value of WindowWidth in the text file. It works great!!
I started my spring 2008 semester today. And I’m position to tackle it.
This semester I’m taking Calculus 3, Physics 2, and Robotics. And after that I’ll have just 6 or 7 hours left for my AS degree.
84% on a math test. Wow I haven’t done that well since, well, College Algebra three or four years ago. This brings my average for Calc 2 up to 82.5%. Looks like I might just pass the class (and get a high GPA to boot).
Anyway, it’s Christie’s birthday, so check out http://www.youtube.com/depwl9992 for the latest videos (one of which we recorded last night for the birthday and the very newest that we did a couple months ago). Everyone who’s seen the basketball video has just about laughed their heads off. So hope you enjoy that one too. I’ll keep the birthday video featured for a little while, then I’ll go back to the “most recent.”
Cowman update: it is NOT coming along. The director is fairly busy with her senior year of high-school, so she hasn’t had much time to mix any of the videos. But hopefully I can get ahold of MY legos so that I can work on a video of my own (yeah right).
That’s all for now.