Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2008
    Posts
    13
    Rep Power
    0

    Default Problems with JFrame losing the Design view

    I have been working on a project in Netbeans, and suddenly I no longer have the Design view. I can still edit the code and run the project, but I cannot access the Design view. The Source | Design are no longer on the tool bar! How can I get them back? Thanks in advance for any help.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    First of all, don't interact with others thread if your question is not related to the original thread. Best thing is start a new thread. At the time I've done it for you. :)

    Regrading your question, may be your form file is deleted. Check in the src folder of your project that a form file can be found or not.

    Basically this is happened on memory clash of GUI design. Closing and reopening the project solve the issue in most of the cases.

  3. #3
    Join Date
    Jul 2008
    Posts
    13
    Rep Power
    0

    Unhappy

    Sorry, I am new to this forum. I didn't intend to impose an irrelevant thread. How do I make a new thread? It is not obvious anywhere no the site that I can see. Maybe right in front of me?

  4. #4
    Join Date
    Jul 2008
    Posts
    13
    Rep Power
    0

    Default no form or src

    In my project, there is no src folder. If you could tell me what a form file is, I could do a search for it. I am using a Macintosh, so searcing is easy if I have part of a name. Is there a standard ending for a form file that I could use to search for it?

  5. #5
    Join Date
    Jul 2008
    Posts
    13
    Rep Power
    0

    Default form file

    I found a .form file for a new JFrame I created in my source folder, but there is no form file for the project I am working on anymore. Clearly it got lost somehow today. Is there any way to regenerate it? quitting and restarting doesn't do it.

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    In your project folder, there should be a folder called src and all you *.java files are included inside it. Actually in the src folder you can find a folder same as your project name. In that folder all *.java files are included, with the form file I'm talking about. I'm wondering about this, even on Macintosh the folder structure should be same.

    Form file has the same name as the GUI java file. Say the Java file is MyGUI.java so the form file is MyGUI.form


  7. #7
    Join Date
    Jul 2008
    Posts
    13
    Rep Power
    0

    Default

    This is set up a bit differently. It is an existing ant script, so the files are all in a folder called "plugins." I write automated image analysis plugins for medical research using ImageJ, so I am limited to that format. On the Mac the folder is called "source" but what's in a name? ;-) a complete computer search shows no form file any longer for that particular file. Can it be recreated?

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    I don't think it can be recreated. But I think you can do something like this. But I strongly advice you to have a backup of your project as it is you have now.

    Create a GUI class with the same name you have. Then check there exist the form I'm talking about. If so, replace the *.java file with the previous one. Then wait to load the project files. See there is any success.

    Normally *.form contain all implementation details in xml format. Data written to the file, after loading all project files. It's works for me.

Similar Threads

  1. Design Calendar UI
    By praveen.kb in forum AWT / Swing
    Replies: 0
    Last Post: 01-21-2008, 12:54 PM
  2. Replies: 1
    Last Post: 07-19-2007, 12:20 AM
  3. problems with jDialog in a JFrame
    By bbq in forum AWT / Swing
    Replies: 1
    Last Post: 07-05-2007, 05:14 AM
  4. Design patterns
    By Freddie in forum New To Java
    Replies: 2
    Last Post: 05-12-2007, 07:21 AM

Posting Permissions

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