Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2009
    Location
    Near Atlanta, GA.
    Posts
    3
    Rep Power
    0

    Red face Problem editing existing UI

    Hello Everyone,

    I am new to this forum, and I am fairly new to Java. Brief background...

    I have been taking Java for several months from an online university. We have finally just broken into client/server applications with GUI components. My new instructor is all about reusing code... I have always written my own. Herein lies the problem.

    We were provided basic socket-stream client and server application classes. Our job is to modify those classes (and methods) to meet the objectives of "the customer".

    In this process we must modify the UI of the client application... add another text area, a few buttons, etc. The existing client class does not show a "design" button for the UI configuration (I'm using NetBeans 6.x, BTW). It appears that the existing GUI is AWT rather than Swing.

    If I try to add components as AWT, they don't seem to show-up... ever! If I try to move to Swing and move the code (with updates to the declarations of course), then the whole application breaks.

    The short version of the question...

    How can I easily modify an existing GUI if it is done in AWT rather than Swing... where I could easily just drag new components to the frame?

    Thanks, and sorry I was so "long-winded" on this.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Perhaps you need to update your GUI in code and not use the the drag-and-drop NetBeans editor.

    By the way, how do you know that the app is AWT? Does it use Frame or Applet and not JFrame or JApplet? What components are present? Does it have Buttons or JButtons?

  3. #3
    Join Date
    Apr 2009
    Location
    Near Atlanta, GA.
    Posts
    3
    Rep Power
    0

    Default

    Quite honestly, I am terrible at building GUIs in code. I can write an entire application in the time that it takes me to get the GUI layed-out the way that I want. Conversely, I can build the UI in about 10 minutes through the designer.

    I can tell what component type is being used based on the import statements at the top of the class.

    I have to turn in this assignment tonight (after work), and if I have to alter the GUI in code, I'll never make it. It simply takes too long to get things where they need to be.

    Remember, I'm not developer with decades of experience. Before this assignment, I have done ONE GUI, and that was with the designer.

    Thanks for the suggestions, though.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Perhaps you can ask for an extension and then get some help from the teacher. Best of luck regardless.

Similar Threads

  1. Photo Editing
    By stekun in forum Advanced Java
    Replies: 3
    Last Post: 02-23-2010, 05:11 AM
  2. Text editing
    By right2001 in forum New To Java
    Replies: 1
    Last Post: 04-10-2009, 07:03 AM
  3. Replies: 1
    Last Post: 03-01-2009, 04:47 PM
  4. Editing Array Problem
    By jaybeeb in forum New To Java
    Replies: 1
    Last Post: 12-15-2008, 05:15 AM
  5. Editing & Testing Java on Mac
    By TheRocket in forum New To Java
    Replies: 7
    Last Post: 11-22-2008, 01:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •