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