Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Netbeans Platform Error

843810Jan 23 2008 — edited Mar 12 2008
I have Dueal boot system Windows XP SP2 and SUsE 10.3. I Installed NetBeans 6.0 On Both Os But Windows Based Netbean generated code is not useful for Linux based Netbean, bcoz the code is different on both platform. But the Linux based code generated by Netbeans worked good on both Linux and Windows Netbeans
Code created by Linux Netbeans -- Works both on Windows and Linux Netbeans

org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(jButton1)
                .addContainerGap(849, Short.MAX_VALUE))
        );
Code generated by Windows based Netbeans6.0 -- Works Only in Windows Netbeans gives error in Linux Netbeans
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
This the sample code.
How can i make both platforms code compatible for each other
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 9 2008
Added on Jan 23 2008
9 comments
191 views