Netbeans to J2SE

Hi
Im currently trying to convert a line of code from netbeans to J2SE - jbuilder 9. When the below source code is added to my jbuilder enviroment, it gets all excited when (Grouplayout) is inlcuded.
The error that this returns is -
package org.jdesktop.layout does not exist
////////// CODE //////////////////////////////////////////////////////////////////////////////////
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
Can anybody give me a convertion of the above source code so i can get it running.
Thanks Elvis

Im currently trying to convert a line of code from
netbeans to J2SE - jbuilder 9. Hmm. Its all Java, regardless of IDE.
When the below source
code is added to my jbuilder enviroment, it gets all
excited when (Grouplayout) is inlcuded.Excited?
>
The error that this returns is -
package org.jdesktop.layout does not existRight, because you don't have the class on your classpath - its all java, remember?
org.jdesktop.layout.GroupLayout layout = new
org.jdesktop.layout.GroupLayout(getContentPane());
Can anybody give me a convertion of the above source
code so i can get it running.No conversion, add the jar to your classpath - $(NETBEANS_HOME)/platform6/modules/ext/swing-layout-1.0.jar

Similar Messages

  • NetBeans IDE / J2SE COBUNDLE doesn't install

    I�ve been trying to install the �NetBeans IDE v 3.5.1 with J2SE v 1.4.2 COBUNDLE on Windows platform, but keep running in the following issue:
    Firstly an error:
    message = invalid LOC header (bad signature)
    STACK_TRACE: 30
    java.lang.InternalError: jzentry == 0,
    jzfile = 9890488,
    total = 2016,
    name = C:\TEMP\ENGELBJ\LRE34.tmp\windows.jar,
    i = 1251,
    message = invalid LOC header (bad signature)
    The setup continue after this, extracting some files and a stage �Creating uninstaller� (progress indicator at 1%, directory size 45.7 MB) at then stay there indefinitely. Trying to close the installer reports �The current operation cannot be cancelled�.
    Before stating the obvious, I have downloaded it 4 times already to rule out corrupt download. I have attempted installation twice on W2K SP4 PC�s, once on a W2K SP3 PC and twice on Windows XP SP1 PC�s. One of the W2K PC�s were a fresh install with only the OS and SP�s on it.
    Downloading the separate products and installing them works fine.
    Can anyone confirm if they successfully installed this product?
    Regards

    I did.
    Regards,
    Max

  • Netbeans linking to java

    Hi! I installed netbeans bundled with J2SE 1.5.0 Update 2. Now as J2SE 1.5.0 Update 6 is available, I downloaded (i.e. only J2SE 1.5.0 Update 6) without Netbeans and installed it.
    I have also uninstalled J2SE 1.5.0 Update 2.
    Now when I start Netbeans ints giving error "java.exe" not found. I guess the compiler linked to Netbeans was from J2SE 1.5.0 Update 2, and as I have uninstalled it, I get this error.
    Can anyone please suggested a solution to my problem. May be there is a method to link Netbeans with J2SE 1.5.0 Update 6.

    edit netbeans.conf  and change netbeans_jdkhome
    netbeans-root-dir|
                                    | etc
    netbeans.conf
    # ${HOME} will be replaced by JVM user.home system property
    netbeans_default_userdir="${HOME}/.netbeans/4.1"
    # options used by netbeans launcher by default, can be overridden by explicit
    # command line switches
    netbeans_default_options="-J-Xms32m -J-Xmx128m -J-XX:PermSize=32m -J-XX:MaxPermSize=96m -J-Xverify:none"
    # default location of J2SE JDK, can be overridden by using --jdkhome <dir> switch
    netbeans_jdkhome="C:\jdk1.5.0_06"  <---------------> change it
    # clusters' paths separated by path.separator (semicolon on Windows, colon on Unices)
    #netbeans_extraclusters="/absolute/path/to/cluster1:/absolute/path/to/cluster2"

  • What to download?(New to Java)

    Hi. Im taking a Java class this year and I need to download it on my home computer. YOu can download it on this site, but I dont know what to download.
    There is: NetBeans IDE + J2SE SDK
    J2EE 1.4
    J2SE v 1.4.2_05 SDK includes the JVM technology
    J2SE v 1.4.2_05 JRE includes the JVM technology
    Am I even on the right track?I really dont know what to do and I have homework, so if anyone could help me ASAP, I would greatly appreciate it. THank you.

    Hi there,
    the one including NET Beans is much better and the IDE is really helpful.

  • Installation of J2SE V1.4.2 and NetBeans Java 2 Platform, Standard Edition

    I downloaded J2SE V1.4.2 and NetBeans IDE 3.5.8. After this very long download, my ISP disconnected. I re-connected, but am unable to install the download. Please help.
    alinda78

    I downloaded J2SE V1.4.2 and NetBeans IDE 3.5.8.
    After this very long download, my ISP disconnected.
    I re-connected, but am unable to install the
    e download. Please help.
    alinda78

  • Installing J2SE 1.4.2 SDK and netbeans 3.6 bundle

    I downloaded the bundle and a different computer and burned it to a CD. I brought It home and tried to install it straight from the CD, the computer said that It didnt have enough space on D:\. So I copied the bundle to C: and tried to install. Apart from the fact that the installer doent refresh leaving the image all over the screen. It seems to freeze at 48% on the install log. It installs some files in the netbeans and j2sdk1.4 directories but nowhere near all.
    I should mention that I use Windows XP home and when I try to end the task of installing it tells me that I cannot exit the installation just as It would If I had just closed the Window.

    Hello, I am having the same problem he is when installing the J2SE 1.4.2 SDK + NetBeans 3.6 where I get the warning:
    WARNING: D:\ partition has insufficient space to install the items selected. 102 MB additional space would be needed to install the selected items.
    Should I try copying it into C: drive or install them separately without the bundle?
    Thanks,
    Taylor

  • Creating j2me GUI s just like j2se in Netbeans

    I am a j2se programmer. I know nothing about j2me. Can we design GUIs for mobile apps just like we do in j2se application? I saw one option in netbeans visual midb(forget it) to design GUI. but i couldnt create effectively as i do in j2se.
    can anyone explain how to create GUI in netbeans for mobile app?

    Yes, you are right.
    From the time I posted my question I tried to make a similar GUI in NetBeans and I noticed that NetBeans included the following code for the GUI:
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(UpToolbar, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
                .addGroup(layout.createSequentialGroup()
                    .addGap(10, 10, 10)
                    .addComponent(tabbedPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
                    .addContainerGap())
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addComponent(UpToolbar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(tabbedPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 182, Short.MAX_VALUE)
                    .addContainerGap())
            pack();I just adapted the code to my initial project and it works much more better.
    Still the icon pics look very poor, like I am using a 800x600 resolution. They look so old...And the fonts used for the menus are bolded...
    I will look on the forum for a way to make the GUI use some normal fonts.
    Thank you, camickr , for your response ;)

  • Sharing J2ME & J2SE source with NetBeans

    I will appologize in advance if I am in the wrong forum. However I could not find a forum for NetBeans so here is my problem:
    This problem relates to NetBeans and the J2SE and J2ME Class Libraries. Maybe there is a simple answer to this, but I am unable to figure it out. The JARs are unique enough to where J2ME can not share a J2SE Class Library. I have a few classes that are identical in source between J2SE and J2ME. In NetBeans how can I organize my projects so I do not have to duplicate the source once each for J2SE and J2ME?
    Thank you

    us too. except we're working on a project that requires interfacing a mobile device with a pc. how exactly do we bridge the gap between the two if the device is running j2me and the pc is running j2se?if you have an answer please e-mail us at [email protected]
    thanx

  • NetBeans 3.6 and J2SE 5.0

    I'm trying to get J2SE 5.0 to compile with NetBeans 3.6, but it just isn't working. I have the directory appropriately set up, but it doesn't want to accept the new features! What should I do?

    To get rid of the red lines goto Tools->Options->Editing->Java Sources.
    Under Java Sources set Error Annotation Limit to 0.
    See http://www.netbeans.org/community/articles/tiger/36Tiger.html

  • Could not install J2SE v 1.4.2_04 SDK with NetBeans 3.6

    when trying to install, gives error: the wizard cannot continue because of the following error: could not load wizard specified in /wizard.inf (104)

    Hola amigo,
    Well, I had the same Error, but I could find a solution for it issue. You must rename a file called sax.jar in the directory %JAVA_HOME%/jre/lib/endorsed/sax.jar for any other name, So that netBeans dose'nt find it file. I Don't know waht is the really cause, but in the netBeans.org said that it's a incorrect Sax version.
    I did it and colud achieve a sucessefull instaltion.
    Marcelo

  • I've installed J2SE 1.4.2 SDK + NetBeans 3.6. Now what do I do??

    Hello,
    When I go into NetBeans, I get confused on what to do when they ask to mount a filesystem. And also how do I set up the Java classpath? Like I said, I've just installed it and was wondering if you could give me instructions on how to set things up so I can start coding.
    Thanks,
    Taylor

    When I go into NetBeans, I get confused on what to do when they ask to mount a filesystem. And I don't blame you. This has to be absolutely the worst idiom for a development environment to use. Most developers know what a filesystem is, and it isn't remotely what NetBeans means when they say "filesystem".
    Fortunately, the newer NetBeans 4.0 Beta's project system is slightly saner, though they still have much of the unfortunate terminology hangover from the older versions..

  • Debugging Netbeans J2SE application

    I am trying to debug in Netbeans for the first time. When using F7 to step into my app it doesnt do much of anything besides open the debug window. Under Local Variables, the message:
    "Variable information is not available, source compiled without -g option."
    Does anyone have any idea of what may be the problem?
    thanks

    The source was compile without using the option that adds debugging information to the resulting .class file. Either:
    - You're trying to debug some JRE library code, not your own. Just step over instead of into. Or,
    - it's your code, recompile with the -g option.

  • Installing J2SE v1.4.2 and netbeans on WIN ME

    every time I try to install the standard development kit it stops at 8% where it says preparing components for installation.
    any thoughts other then get rid of melenium edition?

    Hmmm, try downloading the installer again, it may be due to corrupt file or something. In ordinary circumstances there is no reason why this should not work

  • NetBeans IDE v 3.5.1 with J2SE v 1.4.2

    I'm running Windows ME. I downloaded and began the install with seemingly no problems (aka absolutely no sign of error).
    But, when it gets to this stage it stops installing:
    "Preparing J2SDK 1.4.2 components for installation. Please wait."
    Its been there for over 30 minutes, any ideas?

    Yeah, try reading through some of the existing threads.
    Like http://forum.java.sun.com/thread.jsp?forum=14&thread=444281&tstart=15&trange=15

  • How to secure a J2SE Web Service

    Hi,
    I have created a J2SE Web Service using JAX-WS and I now wish to secure it but I can't seem to work out how to do it in an automated manner.
    I have used the simple Java-First method, writing an annotated java class and then running wsgen to generate the WSDL and required artifacts.
    WSIT seems to be the solution, placing a WSIT config file in a META-INF directory on the classpath. However, in the examples that I have there seems to be a huge amount of overlap between the WSDL and the WSIT config file. Moreover, the content of the WSIT config seems to be dependent on the contents of the WSDL. This means that should I update the implementation class I would have to manually update the WSIT config (unlike the WSDL which would be autogenerated from the Java class).
    Ideally I would like to create two files:
    - myserviceImpl.java
    - wsit-config.xml (using the correct naming convention)
    Then run WSGEN and, hey presto, a full WSDL is generated complete ith security policy information. However, it seems that this is not the way it works.
    I'd be grateful for any advice you can give on how to automate this process. My current idea is to generate the WSDL and then use an XSLT step in the build process to drag the WSIT config into the WSDL.
    I'd also be interested in hearing how other people have created secure J2SE web services.
    I am using Eclipse (not NetBeans) and Maven.
    Thanks

    I am using Eclipse (not NetBeans) and Maven.I hate doing this, but have you tried Netbeans? Metro has really tight integration with it and pretty much can do what you want. However, making a programmer change IDE is like suggesting someone to try another religion.

Maybe you are looking for

  • Problem creating multiple tables in one story

    Hello, I have a script that imports text from a .txt file and then makes a table out of it. That works fine. However, at a later time I will want to import some more text from a different .txt file and also make that into a table. And I’ll want the a

  • Event trapping when the active document changes

    Hi all, Apologies if this question has been asked / answered before. I don't get out much. Is there any way, in ExtendScript, to get an event when the user brings a different document to the front? Something similar to the "beforeOpen" event, but whi

  • Ap Div Overflow

    Is it possible for ap div's to become larger when the text overflows? If this is not possible, is it possible when done with a standard div tag (i will have to convert my tags) Thank you

  • On Track with Siebel On Premise?

    Can On Track work with Siebel ON Premise? I expect I know the answer to this but I am looking for confirmation. I have a customer that would like to consider upgrading Siebel on premise, but wants "chatter-like" functionality. If the answer happens t

  • The very top bar, with mini,mize and close is missing -how can I reveal it?

    I seem to be missing a top bar, with minimize, Maximize, and close -and also am missing dropdowns for "Tools" and possibly others.