Add scalability to your application. Adjusting the window size should adjust the flag accordingly. If you do this, set the resizable property to true. Use property binding based on the window’s width and height to the components of the pane. Property Binding would need to be set on all the nodes in your pane. As perhaps a better technique would be to use the code shown for the polygon example in Chapter 14.
Make sure you post a GUI and email a gist before the due date. First thing Tuesday, in class, I’m going to discuss my solution to this problem.
We’ll finally put to rest Complex numbers with this HW7. HW7 will involve the actual Regular Expression (RegEx) implementation of the complex number string constructor. In HW6, many students created a GUI that looks like this, more or less:
This GUI supports entering complex numbers as strings. We will use regular expressions to perform the task of converting strings to complex numbers. The GUI will ultimately call the Complex constructor that takes a string input to produce the number.
Here’s some sample code we discussed in class that you can put into your constructor:
This GUI is going to support entering complex numbers as strings. Remember the constructor that takes a string in HW3? HW7 will involve the actual Regular Expression (RegEx) implementation of the complex number string constructor. We will be using regular expressions to perform the task of converting strings to complex numbers. Not officially knowing what regular expression are at this point, let’s start by getting a GUI created that will support them. The GUI will ultimately call that constructor.
The textboxes will hold actual complex number strings of the form
a + bi, a, or bi
For now, when you click on the equals button, have textbox C display “Not Yet Implemented“.
Be sure to put your name on the GUI at that bottom and POST it to your site.
This is not an extra credit homework. You will build this using JavaFX! No JOptionPanes or any other old technology.
Extra Credit can be obtained if you embellish the app in some way. i.e.
use placeholder text
if you click the equals, a popup box shows that does something cool
Even though homework assignments don’t explicitly mention basic requirements, please assume the following:
When submitting a GUI, the only GUI code that is acceptable is JavaFX. Please don’t waste your time with old junk technology. JOptionPane programs are just not good both from a technology stand point and from a user interface prospective.
The errors I encountered in class that dealt with JavaFX, I have not seen before. They don’t occur on my office or home computers. The only difference I can think of between the lab computers and my home or office machine is the lab is running the older Windows 7.
To get rid of them, should they present themselves, is to first follow this procedure:
Right click on the Project and select Properties.
Click on Java Build Path
Click on the Libraries Tab
You should see an entry that looks like “JRE System Library”. Double click on that.
Choose “Workspace Default JRE” then click Finish
Click Apply, then OK
If they still show, make the following modifications to the project properties:
This assignment will be considered HW1 and is due Monday, Jan 28 11:59pm.
Welcome CSC-112 Students!
Start the Linux Orientation Assignment. You are going to need to create and maintain a small website to deliver your GUI apps to the world. Use your winter session downtime to get this done and free up your time during the regular semester.
Email me firstname.lastname@example.org to request an account on this cs machine. I’ll respond with your username and an initial password so can proceed with this exercise.
Students who complete this Linux configuration assignment during the break will receive an extra 10 points. That’s right, a big 20 out of 10 for demonstrating their enthusiasm for learning.
(There may be an issue or two as the cs server is running on a different environment than in previous semesters. Just email me if you encounter an error and I’ll fix the problem ASAP.)
SetJavaPathV5.vbs — This utility will set the Environment PATH variable to include the directory where the JDK is located. This utility is handy when running the JDK tools from the command line. Just download it, unzip the vbs file, and click it. It will probably take awhile for the program to find the JDK, so be patient!
All course announcements and correspondence will be done through this page. It is your responsibility to visit this course page at least once every two days to view the latest course announcements, homework, and news. It is unacceptable to say that you are not aware of something happening in the course.