Click here to Skip to main content
15,891,657 members
Articles / Desktop Programming / Windows Forms
Article

TwoSB (two student bodies) IDE for Java

Rate me:
Please Sign up or sign in to vote.
1.47/5 (11 votes)
8 Nov 20042 min read 20K   7  
Visual Studio.Net IDE written to support the java language

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.

C#
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

  1. The editor should allow for a right-click copy/paste menu.
  2. There should be a Recent Files List on the File Menu.
  3. AutoSave (save every nth seconds or nth changes).
  4. Colorize based on the content in the editor window.
  5. Run applications from a package.

    Pending

  6. The menus should all use standard shortcuts (example: CTRL+S for Save).
  7. There should be a Recent Files List on the File Menu

    Closed

  8. Allow the user to specify the java pathname.
  9. Confirm Save on Exit or Opening a new file after a change.
  10. Create output files that can be read by Notepad.
  11. There should be an Open New Window menu to open a new instance of the IDE
  12. Allow for compiles with a “package” statement.
  13. The editor should allow for tabs.
C#
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.

C#
private void mnuSource_Click(object sender, System.EventArgs e)
        {
                    
            System.Diagnostics.Process.Start
            ("http://java.sun.com");
        }

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
United States United States
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.

Comments and Discussions

 
-- There are no messages in this forum --