Running a NetBeans 5.5.1 GUI in Java 1.5?

Hi everyone, thanks for your interest.
I've created a GUI in NetBeans 5.5.1 using the Group Layout package, which is included in Java 1.6.
The only problem is I need this app to run in a Java 1.5 environment.
I'm not an expert at this but after extensive searching it looks like I can import a .jar file to make everything work again?
The problem is I add this swing-layout-1.0.jar to my class path but in the source file for my application it refers to these classes by javax.swing.________ and not by the org.whatever that the .jar I took uses. Futhermore, there seem to exist some differences between the classes in the javax.swing and my .jar file.
Is there ANY way for me to make all this java 1.6 code to run in java 1.5. Perhaps by including some extra package?
If so, where would I find such a package?
If you don't think this can be done please let me know so I can stop bashing my head against the wall.
Thanks,
Craig

From this URL
http://java.sun.com/developer/technicalArticles/tools/nb_guibuilder/
The Free Design layout has been available since NetBeans IDE 5.0. NetBeans IDE 5.0's GUI Builder provided support for this layout strategy by using a separate library called the Swing Layout Extensions. The IDE provided that library because the support for the underlying GroupLayout layout manager was not yet part of the core Java platform in J2SE 5.0. The Swing Layout Extensions are still available, but now that functionality also exists in the core libraries of the Java SE 6 platform.
You can use NetBeans IDE 5.5 to develop applications and UIs for Java SE 6 or earlier Java platform versions. If you write applications for any platform version prior to Java SE 6, you must continue to use the Swing Layout Extensions. However, the new GUI builder can also generate your UI using the layout manager functionality supported in the Java SE 6 platform. In the latter case, you do not need to use or include the layout extensions in your final product.
If you create a new project in NetBeans IDE 5.5 and your target platform is Java SE 6, the GUI builder will automatically generate your UI using the Java SE 6 platform's core libraries. However, if you import an old project into NetBeans IDE 5.5, you should manually update the project's layout to use the new Java SE 6 platform libraries. Of course, you can still use the layout extensions if you like, but doing so is not necessary with the Java SE 6 platform.
You can change the Layout Generation Style for your UI by accessing the properties for your form. In the NetBeans IDE GUI Builder main window, make sure the Design mode is active. This shows your UI design graphically in the Design pane. Click on the form in the Inspector pane to see the form's properties. One of the properties is Layout Generation Style. You can select either Standard Java 6 Code or Swing Layout Extensions Library. Changing this setting does not affect how your UI will look, but it does change how the GUI builder generates the code to create the UI. Figure 16 shows the Layout Generation Style property.

Similar Messages

  • Do we have a way to see the diffence b/n running & start-up config in FM GUI

    Hello
    Do we have a way to see the diffence between running & start-up config in FM GUI similar to show running-config difference in CLI. I understand that when activating the zoneset the differneces are shown, however if there are other changes made how can the difference b/n ru & start be viewed in GUI (FM)
    Please advise
    Thanks
    Chetan               

    This one might help.
    Allow configuration of Automatic Updates in Windows 8 and Windows Server 2012
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Run a calculation and keep Log-GUI uptodate

    Hello,
    I have some troubles trying to run a thread and keep the GUI uptodate at the same time. The idea initial idea is:
    - In the "normal" GUI there are two buttons to "Start" and "Cancel" a bigger calculation task.
    - Once the "Start" Button is clicked, the calculation is started
    - Since the user might want to cancel it, the "Cancel" Button should be able to abort the calculation process
    - The Calculation itself should be able to write results into a log-JTable which is also part of the "normal" GUI
    I tried to put the calculation in a separate Thread and then wait for the results:
    startTheThread();
    while threadNotFinished() {
    this.wait(500);
    Sadly- the GUI isn't refreshed neither can the user click the Cancel Button :-(.
    I guess this problem is quite common, but I haven't found anything helpful yet. Can someone help me with this please?
    Regards,
    Peter Vincent

    Make sure you are doing your calculation out side the event thread and updating via invokeAndWait or invokeLater.
    Probably better was to handel the threading, but here is an example...
    import java.util.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.border.*;
    import javax.swing.event.*;
    public class ThreadedTable extends JFrame implements ActionListener, Runnable
        DefaultTableModel model;
        Thread t;
        JButton start;
        JButton stop;
        int lastEntry;
        boolean kill;
        public ThreadedTable()
            this.setDefaultCloseOperation( EXIT_ON_CLOSE );
            String[] names = {"Col - 1","Col - 2"};
            model = new DefaultTableModel(names, 0  );
            JTable table1 = new JTable( model );
            Container pane = getContentPane();
            pane.setLayout(new BorderLayout());
            JScrollPane s1 = new JScrollPane( table1 );
            JPanel buttonPanel = new JPanel();
            start = new JButton( "Start");
            start.addActionListener( this );
            buttonPanel.add( start );
            stop = new JButton( "Stop");
            stop.addActionListener( this );
            buttonPanel.add( stop );
            pane.add(s1, BorderLayout.CENTER);
            pane.add(buttonPanel, BorderLayout.SOUTH );;
            pack();
        public static void main(String args[])
            ThreadedTable test = new ThreadedTable();
            test.show();
        public void run()
            Vector v = new Vector();
            v.addElement( "col 1 Data");
            v.addElement( "counter = "+lastEntry++);
            model.addRow(v);
         * Invoked when an action occurs.
        public void actionPerformed(ActionEvent e)
            if( e.getSource().equals( start ) )
                if( t != null )
                    while( t.isAlive() )
                        kill = true;
                        try
                            Thread.sleep( 120 );
                        catch( Exception exc )
                            exc.printStackTrace();
                kill = false;
                Runnable runner = new Runnable()
                    public void run()
                        while( !kill )
                            try
                                SwingUtilities.invokeAndWait( ThreadedTable.this );
                                Thread.sleep( 1000 );
                            catch( Exception exc )
                                exc.printStackTrace();
                t=new Thread( runner );
                t.start();           
            else if( e.getSource().equals( stop ) )
                kill = true;

  • How to run a shell script from the GUI?

    This is probably a dumb question...
    How do I run a shell script from the GUI? I've been told to double click it but when I do, it opens as a text file.

    The behavior you describe is that used by the KDE and GNOME desktops of Linux.
    Under OS X, if you make a script then mark it as executable, double-clicking on it in the Finder will not execute it. Actually, it uses a rather complex algorithm ([summarized here|http://arstechnica.com/reviews/2q00/macos-qna/macos-x-qa-2.html]) to determine what to do with it. This is implemented in Mac OS X' LaunchServices framework (incidentally, the associations are cached in /Library/Caches/com.apple.LaunchServices*.csstore and ~/Library/Caches/com.apple/LaunchServices*.csstore). You can read the details in the developer docs about LaunchServices.
    Anyway, in short, the suffix '.command' is a built-in type in the LaunchServices network that identifies a shell script. If you run
    /System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServic es.framework/Support/lsregister -dump
    ... it will tell you as much.

  • Java application behaving differently when run from netbeans

    Hi,
    When i run my program from netbeans it receives packets from ip addresses which are not in my subnet
    but when i run it from outside netbeans it doesn't receives packets from ip addresses which are not in my subnet.
    Can anybody explains why my application is showing different behavior when run from netbeans and when run independently?
    Thanks.

    Bingo! My script started the rmiregistry and continued on to start the servers. Apparently, it was too quick. I put a 10 second delay after the rmiregistry startup and all is working as it should.
    Thanks for your help. You get the Duke dollars if I can figure out how that works.

  • SAP GUI for JAVA - Search Help ALV display

    I need to be able to display search helps in the ALV grid format or the ' Dialog Modal ' option as seen on the <b>Settings for all F4 helps</b> tab under the personalize option for search helps.
    Currently when I am using a Macintosh machine the system ignores the system setting and my personal settings and displays all search results in an ABAP List format. Unfortunately the ABAP list format does not work correctly when used to input a field on another ABAP list report.
    This behaviour can be found on the Mozilla Firefox browser when SAP GUI for HTML and the SAP GUI for JAVA.
    Your help will be greatly appreciated.

    Hi Rolf-Martin,
    Thank you for your detailed explanation on how the ALV grid control is implemented for the SAP GUI for Java.  This has been pretty insightful.  The good news is that I finally figured out a solution to my problem.  You see I inherited an old custom program where an ABAP list is used as an interactive data capture screen with input fields.  Well a couple of fields had search helps. The program has worked fine with the regular SAP GUI until a MAC OS user tried to use it with the SAP GUI for Java.  Whenever they selected a line from the search help it would bring back the entire onto their input screen.
    A sample of the code:
    form search_help.
        CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
           EXPORTING
                TABNAME     = 'EKPO'
                FIELDNAME   = 'MATNR'
                SEARCHHELP                = 'ZMAT1_A'
                SHLPPARAM                 = 'MATNR'
           TABLES
                RETURN_TAB       = RET_TABLE.
    IF NOT RET_TABLE-FIELDVAL IS INITIAL.
       LINXX-XMATNR = RET_TABLE-FIELDVAL.
       MODIFY CURRENT LINE FIELD VALUE XMATNR FROM LINXX-XMATNR. " ****
    ENDIF.
    SET CURSOR 9 SY-CUROW.   " ********
    endform.
    The problem was being caused by the fact that the search help ABAP list was overriding the sy-XXXX values for the current line contents, index, pageno, cursor row for the calling ABAP list. So when a user selected a row from the search help this would now become the current context and be transferred back to the calling program. 
    The fix was pretty simple; all I had to do was save the current line context and the context prior to calling the search help.  After the search help was run I would then replace the current line with the saved one in my local variable.  I hope this makes sense. We now have a couple of happy MAC OS users.
    Once again I thank you for your patience and support in  this matter.
    Have a great day,
    Edwin.

  • Which IDE is suitable for GUI in Java?

    Which IDE is suitable for GUI in Java?
    I have kind of complex form with many text fields and buttons in a Java application. I have been trying with Netbeans, everything is fine with Netbeans but it is a huge problem when all the graphics components move around when you have too many graphic....
    I am looking for IDE with GUI tools??? Any suggestions???
    Many thanx for all advices

    I tested Eclipse 3.2 and NetBeans 5.5. NetBeans definitely has the more stable, reliable and more user friendly GUI editor.
    From the rest of the development - the features of the IDE - I see that Eclipse offers more but with the drawback for the beginner (as I am) that some things are harder to figure out how they work in Eclipse. NetBeans seems more "intuitive" and easier for me. - Emphasizing again that I am a beginner.

  • GUI in Java

    I ever learn Java before JDK 1.4, but to make application GUI in Java is so complicated. So i never learn Java to make application GUI again.
    Now There is JDK 1.6, is it more easy to make GUI in Java now ? I hope i can make GUI in Java likes VB6 or Visual Studio 2005, just click n click, n just think the code. Very easy not so complicated.
    Do u have any comment or advice to me or i just so stupid ?
    I am sorry if myenglish is bad, thx a lot.

    I do little gui stuff as i am still learning basics but the intelli sense of the IDE's helps me a lot in learning about what can be done.
    A question ?----> many posts have stated their preference for intelliJ IDEA, $99 for student version. And supposedly a far better GUI builder. Would most java apps , well a whole hell of a lot use morelikly a browser interface anyway would they not ?
    Intelli sense is like having the API opened up in front of you at all times. Still it is a touch confusing, like i was using strVar.valueOf("123"); and Strvar = StrValue.parseDouble("123"); and didnt get the idea of the two methods.
    Also with IO streams. Lots of methods seemed to do pretty much the same result.
    And when you get into GUI event handling I think the line is a bit blurred between object programming and procedural programming. But back on the GUI and IDE , im using Netbeans BlueJ, Eclipse, and BlueJ (BlueJ is the only editor we are supported to use) but i never understood that or i mean agreed with that so i pretty much never used it(BlueJ) after first couple of the course lectures. mainly because i downloaded Netbeans along with the JDK. as id just finished a semester of VB.Net and naturallly "'Wanted it All'"
    I will have a look at JBuilder if its free. I hit apon a bug i thought of the NetBeans form builder, how it will not color some properties of the form as it maybe should but then eclipse did the same thing.
    Also i had to get help with a combobox event handler as it fires twice, well three times as it it fired when the form or window activated/showed in the first place .
    Message was edited by:
    rigidig

  • ANN: SAP GUI for Java 7.00 available for download

    Hi all,
    SAP GUI for Java 7.00 is now available at
    ftp://ftp.sap.com/pub/sapgui/java/700/ and
    http://service.sap.com/sapgui-java
    This version includes support for J2SE 5.0.
    Also it is the first version which can run on Intel-based Macs (for now for test and evaluation purposeds only, see included "Test and Evaluation Agreement")
    For enhancements, new features and bug fixes, please refer to the release notes that can be found in the installers and the separate manual.
    Please refer to SAP note 954572 for supported platforms.
    (http://www.service.sap.com/%7Eform/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=954572&_NLANG=E)
    Best regards
    Rolf-Martin

    Dear Rolf-Martin,
    I have problem w/ sapgui java  that puzzled me all along ...
    I've downloaded SAPGUI Java 700r2.1 .. then successfully installed in my PPC ibook G4 ... up and running well ...
    one day my colleague with a new MacBook (Intel Core Duo 2GHz) want to have SAPGUI ...
    i installed it, run the apps, it works well to the point of SAPLOGON window ...
    But it cannot connect to any server defined ...
    When I create a new connection, it correctly connected to server and group list can be chosen, but still when I click it to connect nothing happened as if the program not running.
    Java -version is 1.5.0_07 .. software update checked, no issue with Java or else ...
    I've also try to change the JDK to 1.4.2 to no avail.
    I'm stuck. system already re-installed. install sapgui from fresh but problem still persist.
    No clue from Googling ... no clue from sapnotes ...
    Would you please point me to something so I can dig in ?
    Regards,
    +++Isa sends

  • Unable to Print Purchase order automatically using SAP GUI for JAVA

    Hi SAP gurus,
    Some of the PC's in our company use windows and some LINUX. Therefore we use two types of SAP GUI. One for windows and the other one JAVA. PO approval was set to print automatically. In a windows setting, there are no problems with this setup. But in SAP GUI for JAVA, no print outs are produced and no error messages are displayed. I am using SAP GUI for JAVA version 7.10 ver 6. and I use Front end printing for linux access method G.
    please help,
    gungertz

    hi gungertz,
    You can use U type access method for printing SAP document using linux desktop.
    Please refer to my blog posting here (http://sapbasis.wordpress.com/2007/08/23/print-sap-documents-using-linux/)
    ardhian
    http://ardhian.kioslinux.com
    http://sapbasis.wordpress.com

  • ANN: SAP GUI for Java 7.10 available for download

    Hi all,
    SAP GUI for Java 7.10 is now available at <b>http://service.sap.com/sapgui-java</b>.
    In case you are not registered on service.sap.com, you can alternatively download it from ftp://ftp.sap.com/pub/sapgui/java/710.
    <b>New platforms:</b>
    - JSE 6: See System Requirements of platforms for details. Also, usage of JRE 1.4.2 is no longer supported.
    - Microsoft Windows Vista (Business and Ultimate editions)
    - Mac OS X 10.5 (once the test on the final build of "Leopard" has been successfully completed, see <a href="https://service.sap.com/sap/support/notes/959236">Note 959236</a> for latest news)
    - HP-UX 11.31
    <b>New features:</b>
    - <b>Input History: </b>Text previously entered in an entry field is available in a dropdown listbox when the same entry field is reaccessed.
    - The <b>installer</b> now can be launched directly from a write-protected directory and the installation process completes considerably faster.
    - The <b>Preference Dialog</b> has been redesigned.
    - <b>Dynpro Splitter:</b> The feature to display two subscreens divided by a horizontal or vertical splitter has been implemented.
    <a href="https://service.sap.com/sap/support/notes/959236">Note 959236</a> lists the supported platforms and will include latest news on support for Mac OS X 10.5 (Leopard).
    Best regards
    Rolf-Martin

    Hello Mac users,
    ANN: SAP GUI for Java 7.10 rev 1 available for download officially supports Leopard.
    Best regards
    Rolf-Martin

  • In case of problems with SAP GUI for Java  ...

    Hello all,
    in case of having problems (errors, ABAP dumps etc.) with SAP GUI for Java, please create an OSS message on component BC-FES-JAV with information described in OSS note 326558
    http://www.service.sap.com/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700010521522001.
    This makes sure our official support channels get aware of your problem.
    Thanks and best regards
    Rolf-Martin

    Hello Rolf-Martin,
    i don't have access to this website to view the note.
    The version of the Suse libc is:
    GNU C Library stable release version 2.3.2, by Roland McGrath et al.
    Copyright (C) 2003 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
    PARTICULAR PURPOSE.
    Compiled by GNU CC version 3.3 20030226 (prerelease) (SuSE Linux).
    Compiled on a Linux 2.4.20 system on 2003-03-13.
    Best Regards,
    Piotr Brostovski

  • Front End (GUI) for Java Web Based Appl.

    Hi Gurus,
    I am new to Java. Can anybody tell me, what is the front end(GUI) used in Java web based applications? I was told that Swings/Applets are rarely used. Is there are a 3rd party took to design GUI for Java based applications?
    Chooti Baba

    sunilmp wrote:
    U mean to say, for JSP/Servlets, "Web based application" as well as "JSP/Servlet" usually implies that the client is a simple web browser.
    we cannot have swing as front end?You can use Swing inside an Applet inside a web application, but usually that's not needed, as you already have a client application that's quite powerful (the browser).

  • ANN: SAP GUI for Java 7.00 rev 5 available for download

    Hi all,
    SAP GUI for Java 7.00 rev 5 is now available at <b>http://service.sap.com/sapgui-java</b>.
    In case you are not registered on service.sap.com, you can alternatively download it from ftp://ftp.sap.com/pub/sapgui/java/700r5.
    This revision solves issues in the dropdown listbox, grid and table control. Also an issue with FileDownload is fixed. For more information, please refer to the release notes.
    <a href="https://service.sap.com/sap/support/notes/954572">Note 954572</a> lists the supported platforms.
    Best regards
    Rolf-Martin

    hi Mr.Rolf-Martin,
       this is kumar writing in regards with the sap gui for java 7.00 rev 4.....i found ur link very helpful ....thanks for the link...and i have a problem in creating a new connectioin ....i have gone thru some of the forum replies and pdf's ....but i could not set up the new connection ....
    can u plz help me in creating a new connection .....
    the rev4.jar file was successfully installed.....
    and whats are the next steps .....
    any help appriciated thanks
    regards
    kumar

  • Commenting a Line in ABAP Editor when using SAP GUI for java

    Hi,
    In ABAP editor we can highlight the line which are to be comment and use cmd+< sign to comment those lines. What will be the command to be used to achieve the same functionality when using SAP GUI for JAVA on an iMac.

    Hello Kedar,
    please check with SAP GUI for Java 7.20 rev 5 before submitting a bug report.
    Also please verify, that cmd-< and cmd-> are not assigned as "Keyboard Shortcuts" in the "Keyboard" control panel of "System Preferences".
    Bug reports can be submitted with the [SAP Message Wizard|http://service.sap.com/message], for SAP GUI for Java please use component BC-FES-JAV.
    Best regards
    Rolf-Martin

Maybe you are looking for