Watch, Follow, &
Connect with Us
Public Report
Report From: JBuilder/Designers/UI Designer    [ Add a report in this area ]  
Report #:  9127   Status: Closed
Instance of JDesktopPane crash JBuilder 2005
Project:  JBuilder Build #:  11.0.236
Version:    12 Submitted By:   Nicolas Roduit
Report Type:  Crash / Data loss / Total failure Date Reported:  9/23/2004 5:19:06 AM
Severity:    Serious / Highly visible problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   220138
Resolution: Fixed (Resolution Comments) Resolved in Build: : 012.000.203.000
Duplicate of:  None
Voting and Rating
Overall Rating: (2 Total Ratings)
5.00 out of 5
Total Votes: None
Description
JBuilder 2005 crah when opening the Visual JavaBeans Designers of a class that contains an instance of JDesktopPane.
Steps to Reproduce:
1. Create a class that contains an instance of JDesktopPane
    example :

import javax.swing.*;
import java.awt.BorderLayout;

public class Foo extends JFrame {
   private JDesktopPane desktop = new JDesktopPane();

   public Foo() {
      try {
         jbInit();
      }
      catch (Exception ex) {
         ex.printStackTrace();
      }
   }

   private void jbInit() throws Exception {
      this.getContentPane().add(desktop, BorderLayout.CENTER);
   }
  
}

2. Open the Visual JavaBeans Designers
3. JBuilder 2005 crashes
Workarounds
with this code,  JBuilder 2005 doesn't crash but the JDesktopPane is not displayed in the designer.

import javax.swing.*;
import java.awt.BorderLayout;

public class Foo extends JFrame {

   public Foo() {
      try {
         jbInit();
      }
      catch (Exception ex) {
         ex.printStackTrace();
      }
   }

   private void jbInit() throws Exception {
      this.getContentPane().add(new JDesktopPane(), BorderLayout.CENTER);
   }
  
}

---------

with this code,  JBuilder 2005 doesn't crash but the JDesktopPane is not displayed in the designer.

import javax.swing.*;
import java.awt.BorderLayout;

public class Foo extends JFrame {

   public Foo() {
      try {
         jbInit();
      }
      catch (Exception ex) {
         ex.printStackTrace();
      }
   }

   private void jbInit() throws Exception {
      this.getContentPane().add(new JDesktopPane(), BorderLayout.CENTER);
   }
  
}
Attachment
None
Comments

None

Server Response from: ETNACODE01