Problem with Netbeans IDE 5.0: Building Gui

Hello,
I have the following problem with Netbeans IDE 5.0 (I made the same with netbeans 3.6 and it works properly):
Step 1) Create a myJPanel class (new JPanel Form)
Step 2) make a simple operation on myJPanel such as adding a JTable.
Step 3) Create a myJForm Class (new JFrame Form)
Step 4) Adding a JPanel to myJFrame (default name jPanel1)
Step 5) Select JPanle1 within myJFrame and go to code-> custom creation code and write "new myJPanel();"
this should set the jPanel1 (and all its contents and behaviours) created
in step 4 equals to myJPanel();
Step 6) run myJFrame;
........ and nothing happens. It is dispalyed just a gray JFrame.
It seems that myJFrame is able to istantiate myJPanel() but is not able to paint it. what's wrong?
Hope you may help me,
thx

Unfortunately, Netbeans 3.6 files and Netbeans 5 files are not compatible. Except the Java source files, Netbeans uses other aditional files such as xml files etc for forming GUI and other reasons. I have also faced the same problem with you. Good luck.

Similar Messages

  • Problem with netbeans IDE

    hey! i am a learner of j2se 5.0 and am horrible at command line compiling. so i use netbeans IDE and well it has been doing excellently till now.
    recently i had a porblem with ImageIcons and i found the exact problem which i was having but with repect to applets , that is, the images were not displaying properly. i have managed to solve the problem as far as applets are concerned, but it is not so with applications.
    the thing is when i use the run function of the IDE, it displays all icons perfectly and its as if nothing is wrong.
    it creates a .jar file which when i separately click to execute by going to its folder, does so but does not display any images. In fact it executes and behaves in such a way that it's exactly as if i have not used icons in the program- it displays everything else. should i change some setting of the IDE? but if some setting is to be changed, y is it running normally when run from the IDE( F6 key).
    also when i used the command line (after some research to learn to use it) to extract all files from the .jar file, all the images were in it!!!as well as all the class files. so i can't even say that the IDE has not bundled up the images into the .jar file.
    could some1 please help??i need help with .jar files and not applets.

    first i deefined a method as shown in the Java tutorial
    ImageIcon icon =createImageIcon("lion.jpg","name");
    ( within the contructor of the class)
    then after completing the constructor for the class- (I am trying to display an ImageIcon on the background of a JFrame)
    i provided the following definition after the constructor and b4 the main method:
    protected static ImageIcon createImageIcon(String path,
    String description) {
    java.net.URL imgURL = LabelDemo.class.getResource(path);
    if (imgURL != null) {
    return new ImageIcon(imgURL, description);
    } else {
    System.err.println("Couldn't find file: " + path);
    return null;
    this is what i did-and when run from the IDE-it is perfect, but the jar file ggenerated when executed displays every single thing-all swing components e.t.c EXCEPT the image
    the image is in the same folder as the source file- i checked because if not, an error is indicated- so that is not the problem here.
    this same exact code works perfectly with applets and they execute perfectly both from the IDE and also when executed separately.
    the same problem also iccurs when trying to display on labels and buttons.(only for JFrames not for JApplets)
    the thing is in the java tutorial the method is given for applets and so my applets worked -so is there somethin i'm missing for frames- as far as i know they r very similar as far as usage is concerned.

  • Problem with NetBeans IDE 5

    Hi All,
    I' m using NetBeans IDE 5 . Present my IDE works fine with J2SE. I would like to work with Servlets. There is an error while using servlet classes.
    Is this Installing problem ? or
    am i add servlet.jar for NetBeans IDE 5?
    Plase any one help me..................

    Right click on the library tab under your project in the projects window and click "add library". Servlet should be on the list.
    If not, check your installed modules and make sure servlet support is included.

  • Problem with NetBeans IDE 5.0

    sir i am using NetBeans IDE 5.0 and i am devoloping a swing appliaction.i had a jar file for an extra look and feel but i dont know where to place it .i even added jar file to java>> properties >> library
    but didnot work
    the devoloper has given look and feel jar and has given code for implemengting it

    hi
    Try this
    go to the project under which your java file is there and right click on the project and choose properties then under categories choose Libraries and after choosing that you will have to choose the Compile tab present on the right side and then click on Add JAR/Folder button and choose the jar file and then click ok.
    If you had done the above things and still not working then probably you would not have set the Main Class.To set the Main Class go to project under which your java file is there then right click and choose properties and then choose Run which is under categories and then after doing that on the right hand side you will find a number of things out of that Main Class will be present, in that relevant text box you should give the
    packagename.yourjavafilename(note: while giving the packagename.yourjavafilename in Main Class do not give .java extension for your javafilename ie. actually it is the class filename of your java file and it should also be noted that the java file name which you are giving in the Main Class should be your java file which contains the main method) then click on ok and now try to run the project then it should run properly.
    hope this helps you

  • Compile / run problems with netbeans 6 but not netbeans 6 beta 1 or 5.5

    When I compile my project in netbeans IDE 6.0 (Build 200711261600) 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 i get quite often a "can not find symbol" error or during runtime a "netbeans 6 java.lang.NoClassDefFoundError" exception. also switching between F6 or ctrl-F5 mode can cause the problem to appear.
    Compiling again or clean build resolves it.
    However running the same project under netbeans 5.5 or 6 beta 1 never gives this problem.
    any hint what might be wrong? i looked and compared the project settings but can't see any difference, but I assume that the upgrade script must have changed something.

    <?xml version="1.0" encoding="UTF-8" ?>
    - <project name="BorderDemo" default="default" basedir=".">
    <import file="nbproject/build-impl.xml" />
    </project>This is 'build.xml' file. Check for 'project.xml' file in 'nbproject' folder. You will find it to be:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <project xmlns="http://www.netbeans.org/ns/project/1">
      <type>org.netbeans.modules.java.j2seproject</type>
    - <configuration>
    - <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
      <name>BorderDemo</name>
      <minimum-ant-version>1.6.5</minimum-ant-version>
    - <source-roots>
      <root id="src.dir" />
      </source-roots>
      </data>
      </configuration>
      </project>Change it to:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <project xmlns="http://www.netbeans.org/ns/project/1">
      <type>org.netbeans.modules.java.j2seproject</type>
    - <configuration>
    - <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
      <name>BorderDemo</name>
      <minimum-ant-version>1.6.5</minimum-ant-version>
    - <source-roots>
      <root id="src.dir" />
      </source-roots>
      <test-roots>
      <root id="test.src.dir" />
      </test-roots>
      </data>
      </configuration>
      </project>I hope it works.....
    thanks!

  • Java 1.4.2 with NetBeans IDE 3.5 - Error Message, please help

    Hello, I have downloaded the "J2SE v 1.4.2 with NetBeans IDE v 3.5 Cobundle" for windows.
    I ran the install, everything went fine, but when the install finished it said there was an error and to please refer to the log file.
    Here is what the log file says:
    "Installing J2SDK..."
    "Finished Installing J2SDK..."
    (Jul 1, 2003 7:53:14 AM), Setup.product.install, com.sun.installer.InstallJ2sdkAction, err, Error occured while installing [0] -> D:\Program Files\j2sdk_nb\_uninst\custom-install.bat "D:\Program Files\j2sdk_nb\install.log" "D:\Program Files\j2sdk_nb\j2sdk1.4.2\" D: "D:\Program Files\j2sdk_nb\_uninst"
    Now when I try to run "NetBeans IDE 3.5" I get an error message:
    Cannont load jvm.dll
    Does anyone know how to resolve this, I have tried uninstalling and re-installing and I get the same problem.
    Thanks,
    -Mike

    Hello, I have downloaded the "J2SE v 1.4.2 with
    NetBeans IDE v 3.5 Cobundle" for windows.
    I ran the install, everything went fine, but when the
    install finished it said there was an error and to
    please refer to the log file.
    Does anyone know how to resolve this, I have tried
    uninstalling and re-installing and I get the same
    problem.
    Thanks,
    -MikeHi Mike,
    Even I got a similar error message inspite of trying to re-install atleast 10 times! So I gave up and did this:
    1) I downloded J2SE SDK 1.4.2 seperately.
    2) I then downloded JPad Pro IDE (latest version).
    Now both are working really fine for me. :-) Could'nt be bothered to try again and again.
    Its up to you if you want to get the NetBeans installation done but all I wanted was a good IDE and the latest version of the JDK. I have been using it for the last 3 days and it is working perfectly fine!
    Regards :-)
    Vijay

  • JBoss Application server setup with netbeans IDE.

    Hi All,
    I need to configure the JBoss Application server with netbeans IDE. I have tried this scenario,
    1) Unzip the jboss-4.2.2.GA.zip into jboss dir.
    2) Selected the JBoss Application server 4.
    3) And i have set the Installation location like this j:/jboss/jboss-4.2.2.GA. In this i got some problem.
    The problem is: Next button did not selected.
    Error: provide valid installation dir path.
    How to resolve this problem? Can anyone give suggestions for resolving this error?
    Its very urgent!!

    A couple of things:
    1. if you are using SJSAS 9.0 it's Glassfish v1 (not v2 - that's probably for the 9.1 version? I don't know, I'm running 9.0 and installs fine with Gf v1 - thanks for the tip, btw!)
    2. as for the domain, just pick the default offered (unless you have some specific requirement) - in any event, it's under the domains/domain1 folder
    you can always create a new one and register (it will have its very own folder under /domains) but given that's probably a dev box, I can hardly see the point (and when I did it a long time ago, it was more pain that any human being should be subjected to :-)
    Finally, one cannot but wonder why on earth someone (at Sun) developed NB and put Sun Java Application Server (developed at Sun) as one of the options that won't work with SJAS 9.0+ (developed at Sun) but one has to instead choose Glassfish (developed at Sun) and that won't work if one chooses v2 instead of v1 if it's SJAS 9.0 instead of 9.1 (or vice versa)...
    Don't these guys test the thingy with THEIR own stuff?
    Don't get me wrong, I totally love Sun, and all the good stuff they come up with (NB, SJAS, etc. etc.) but done it properly it would help them to gain market share, now, wouldn't it?

  • Jrockit with NetBeans IDE

    Have any body used Jrockit with Netbeans Ide.
    I was trying to use netbeans 6.8 after installing it using ---javahome to Jrockit home
    But was not able to make any project due error " not found JDK"
    Have any Idea . plz help

    I have modified the netbeans.conf file as discussed:
    #netbeans_jdkhome="C:\Program Files\Java\jdk1.6.0_20"
    netbeans_jdkhome="C:\Program Files\JRockit Real Time\jrrt-4.0.0-1.6.0"
    When I go to Help->About this is what I see:
    Product Version: NetBeans IDE 6.8 (Build 200912041610)
    Java: 1.6.0_20; Java HotSpot(TM) Client VM 16.3-b01
    System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
    Userdir: C:\Documents and Settings\smitj01\.netbeans\6.8
    NetBeans is not running JRockit?

  • Problem with signing in to folio builder, indesign.

    I have created an app that I would like to publish, but I can not sign in via the folio builder. I have done this many times before, but today I only get the grey weel when I try to sign in. Im am stuck an can not publish my app. How can I get this to work?

    Hi Christophe
    Yes, I can log into the account on digitalpublishing.acrobat.com with out
    any problems.
    No, it does not work to delete the OOBE folder. I have tried that twice. I
    am rather sad about this. Don't know what to do
    2014-11-28 11:21 GMT+01:00 Christophe_Jossic <[email protected]>:
        Problem with signing in to folio builder, indesign.  created by
    Christophe_Jossic <https://forums.adobe.com/people/Christophe_Jossic> in *Digital
    Publishing Suite* - View the full discussion
    <https://forums.adobe.com/message/6968931#6968931>

  • Need help!!!! GUI problems with netbeans

    i have a problem with the interface i created using netbeans.
    i created a JFrame, inside it a JDesktopPane, and inside that 3 JInternalFrames. the problem is in one of the JinternalFrames, i have 4 radio buttons which i forgot to add to a buttongroup and whenever i try to do that, the GUI doesn't work anymore. The bigger problem is that if i undo the changes, the thing still doesn't work and i have to copy my backup project folder over the one i work on to get an output.
    i tried to edit the source code to add the 4 buttons to a button group but netbeans won't let me since i created the buttons thru it not by writing it myself
    please i really need help with this and i hope its a stupid thing i'm just overlooking.
    If u need the code, i will gladly post it.
    thanks in advance

    if you're not using a netbeans-specific layout manager, copy the working code
    into notepad, make the changes, then compile and run from the command prompt.
    if all works OK, dump netbeans

  • Preverification Error while using kXML with Netbeans IDE

    Hello All,
    I am using Netbeans IDE for wrting a program that parses a xml using
    kXML and display some results on screen.
    The Netbeans IDE gives the various obfuscation levels.
    The code is properly compiled at any level less than the
    highest obfuscation level. If I compile it at HIGH obfuscation level then it gives the following error-----
    Error preverifying class e
    VERIFIER ERROR e.a(Ll;)Lorg/kxml/kdom/Element;:
    Cannot find class org/kxml/kdom/Element
    D:\Netbeans_Workspace\TestObfuscation\nbproject\build-impl.xml:269: Preverification failed with error code 1.
    BUILD FAILED (total time: 4 seconds)
    How can we obfuscate the program using highest level of obfuscation.
    Thanks
    Vikas

    Thanks Peace,
    But I am facing the same problem even when I use the source java files of kXML and include those in my project and use them as additional classes to my class.
    It again builds properly when I don't use the highest obfuscation level.
    But if I try to obfuscate using Level HIGH it throws the same error.
    However when I try to run this project from J2ME Wireless Toolkit, it is running fine on the emulator.
    I guess the error is something specific to Netbeans IDE. Have anyone of you encountered such a bizzare error.
    Thanks,
    Vikas

  • Java card plugin problem with NetBeans 6.8

    Hi, I've got a problem with the netBeans 6.8 i couldn't add a java card plugin at all. I try to run it with the netBeans 6.7.1 and it installs the plugin and adds the java card platform, but when i try to build a sample project I've got an error:
    java.lang.NoClassDefFoundError: ${javacard/packagerClass}
    Any ideas
    Netbeans versions: 6.7.1, 6.8
    JavaCard version: JCDK3.0.2_ConnectedEdition
    OS: WindowsXP

    first idea of all: isn't there a netbeans support forum/mailing list/plugin page ?
    regards
    sebastien

  • How to install the jms bundle with netbeans IDE

    hello friends,
    i am feeling a lots of problem since i am having the package of jms but don't know how to install it with NetBeans 3.6 IDE. i am unable to mount it on the j2sdk1.4_02 . please tell me how to install it, so that i can use this using netbeans ide.

    hi
    send me the bundle or tip me on how to get it.
    I have j2sdk1.4.2_03 and NetBean 4.1. I can try it out with you.
    though, I am using the jsmsengine from sourceforge.org, java activation framework and java communication API.
    when I get the gsm device, I'll be more resourceful or what do yoy use

  • Problem with NetBeans & Glassfish

    Hi
    I have done the "Simple Web Application Using a MySQL Database" tutorial. I got it to work with NetBeans 6.0. I then desicied to upgrade to 6.1 (uninstalled 6.0 and the Glassfish). After installation a run the application again with the following error (the four last lines):
    Starting Sun Java System Application Server 9.1_02 (build b04-fcs) ...
    MBeanServer started: com.sun.enterprise.interceptor.DynamicInterceptor
    CORE5098: AS Socket Service Initialization has been completed.
    CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.5.0_12] from [Sun Microsystems Inc.]
    SEC1002: Security Manager is OFF.
    F:/Program/glassfish-v2ur2/domains/domain1/config/.__com_sun_appserv_pid
    ADM0001:SunoneInterceptor is now enabled
    SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
    WEB0114: SSO is disabled in virtual server [server]
    WEB0114: SSO is disabled in virtual server [__asadmin]
    ADM1079: Initialization of AMX MBeans started
    ADM1504: Here is the JMXServiceURL for the Standard JMXConnectorServer: [service:jmx:rmi:///jndi/rmi://192.168.0.167:8686/jmxrmi]. This is where the remote administrative clients should connect using the standard JMX connectors
    ADM1506: Status of Standard JMX Connector: Active = [true]
    WEB0302: Starting Sun-Java-System/Application-Server.
    JBIFW0010: JBI framework ready to accept requests.
    WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8080
    WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8181
    WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848
    SMGT0007: Self Management Rules service is enabled
    Application server startup complete.
    SEC5046: Audit: Authentication refused for [admin].
    Web login failed: Login failed: javax.security.auth.login.LoginException: Failed file login for admin.
    SEC5046: Audit: Authentication refused for [admin].
    Web login failed: Login failed: javax.security.auth.login.LoginException: Failed file login for admin.
    I'm abel to log in onto the Glassfish server from the admin tool. But it seams that i can't logg in from the application. How do I handel this problem?
    Best regards
    Jonas
    Edited by: Lun on May 4, 2008 1:12 AM
    Edited by: Lun on May 4, 2008 1:14 AM
    Edited by: Lun on May 4, 2008 1:16 AM
    Edited by: Lun on May 4, 2008 1:18 AM
    Edited by: Lun on May 4, 2008 5:29 AM

    Im using "+JSF 1.1.02 Ri Run time suport -deprecated+", that library dont need to be include in the project becouse glashfish support it, (I thing)
    And I add Myfaces 1.2.2 with Tomahawk 1.1.6, becouse I need a jscookmenu, and tomahawk bring it. and Glassfish v2

  • Problem with netbeans and WTK.

    Hi I reinstalled my computer...
    I have installed "J2me with netbeans "
    when I am running my project (the build is ok)
    my emulator refuses to load or when it lodes it "fly" out after few seconds
    I traied to reinstall netbeans ,
    instaled WTK in a different folder (then inside netbeans)
    but nothings seems to work
    I am hopeless...
    PLz HELP!!!

    Hi Anvi,
    I think you posted in the right place as the J2ME SDK Team read this forum (though they sometimes don't respond promptly as we would have liked). I also got the same issue as you, but check out the responses by the J2ME SDK Team to: https://blogs.oracle.com/javamesdk/entry/update_java_me_sdk_through
    It seems there are issues with Netbeans 7.1, and they are fixing things for the next release for Netbeans 7.1.1 so I am sure they are aware of problems that we are encountering. Its fine for Netbeans 6.9/7 if you cannot wait though.

Maybe you are looking for

  • How to install Printer HP LaserJet P2015 in Windows 7!

    Dear all! I am luck using windows 7-32bit. I would like to install Printer HP LaserJet P2015 in Windows 7, but I can't install it because when installing, I get it failed. In fact, I can install it in Windows XP without any obstacles, but now I upgra

  • Presenter cannot find publisher 2010 on a PC running Win7?

    Help please...Presenter cannot find publisher 2010, which is installed on my PC with WIn7 OS please advise

  • ICM_HTTP_CONNECTION_FAILED  + web services

    Hello Friends, I am receving the following run time error CX_AI_SYSTEM_FAULT, due to The reason for the exception is: Error (id=SOAP:1.023): SRT: Processing error in Internet Communication Framework: ("ICF Error when receiving the response: ICM_HTTP_

  • At Runtime how to select a row in a matrix ?

    Hi friends,              I have designed a form with matrix.That matrix is populted with multiple rows.              <b> I want to select a row in  that matrix  </b> and i want to get the line data an put into another form              Is there is an

  • How should I backup and clean off my MacBook using 10.7/Lion

    Here's my situation: 1) I have an old mac -- probably about 5 years old.  Not the latest, but I want to get the most of out it.  2) My mac's 160GB HD is at about 90% capacity. 3) I have a 500GB external hard drive I haven't used much and have made 3