Introduction
2SB consists of two Vatterott college students. In the previous phase we learned about C#. With the knowledge that we gained from Microsoft, we were able to create a users' interface for Java with C#. This is an application to help beginning Java programmers to use the correct structure.
Colorize
This part of the code is for the keywords. We wanted them to stand out as in Visual Studio. There is an option to turn it on or off. At this point it refreshes the screen every five seconds. In a later release we hope to have it permanently on where the user would not notice the refresh.
public class ColorWord
{
private string m_Keyword;
private Color m_Color;
public ColorWord(string keyword, string color)
{
m_Keyword = keyword;
if (color.Equals("red"))
{
m_Color = Color.Red;
}
if (color.Equals("green"))
{
m_Color = Color.Green;
}
if (color.Equals("blue"))
{
m_Color = Color.Blue;
}
}
public string getKeyword()
{
return m_Keyword;
}
public Color getColor()
{
return m_Color;
}
}
New
With the new option, there are three choices: application, applet, and HTML, since there are three source files that could be used with java.
Changes
As we have been working on this project, over the last four weeks, we kept a document right in the application. This was to tell what had been done, what was to be worked on, and what was currently being worked on.
At the time we chose to enter this into the article it looked like this.
Open
- The editor should allow for a right-click copy/paste menu.
- There should be a Recent Files List on the File Menu.
- AutoSave (save every nth seconds or nth changes).
- Colorize based on the content in the editor window.
- Run applications from a package.
Pending
- The menus should all use standard shortcuts (example: CTRL+S for Save).
- There should be a Recent Files List on the File Menu
Closed
- Allow the user to specify the java pathname.
- Confirm Save on Exit or Opening a new file after a change.
- Create output files that can be read by Notepad.
- There should be an Open New Window menu to open a new instance of the IDE
- Allow for compiles with a “package” statement.
- The editor should allow for tabs.
private void mnuChanges_Click(object sender, System.EventArgs e)
{
string docfilename=Application.StartupPath +
"\\ChangeDocument.doc";
System.Diagnostics.Process.Start(docfilename);
}
Help
For our help option, we decided to put a link to the source, java.sun.com
instead of going with the traditional help option. In a later version, we plan to include both.
private void mnuSource_Click(object sender, System.EventArgs e)
{
System.Diagnostics.Process.Start
("http://java.sun.com");
}
Our names are Bobbie Leonard and Doug Hoult. Doug's email is rastaman832003@yahoo.com. TwoSB represents "Two Student Bodies". We are both students at Vatterott College.