This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 10268 - Netbeans 3.2 versus the LookandFeel tutorial
Summary: Netbeans 3.2 versus the LookandFeel tutorial
Status: CLOSED FIXED
Alias: None
Product: usersguide
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: issues@usersguide
URL:
Keywords:
: 10267 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-03-13 23:37 UTC by ajacobs3
Modified: 2003-07-01 15:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ajacobs3 2001-03-13 23:37:00 UTC
The tutorial "Creating the LookAndFeel Application" is slightly
out of date.  The on-line help mentions tabs that are no longer
there.  The Form editor does not display any of the buttons
in the RadioButtonGroupPanel lnfSelector.  At one point in the
tutorial, an exception is raised.

  Product Version       = NetBeans IDE, Release 3.2 beta (Build 2)
  IDE Versioning        = IDE/1 spec=1.2.1 impl=2
  Operating System      = SunOS version 5.8 running on sparc
  Java; VM; Vendor      = 1.3.0_01; Java HotSpot(TM) Client VM 1.3.0_01; Sun
Microsystems Inc.
  Java Home             = /usr/local/java/jdk1.3.0_01/binaries/solsparc/jre
  System Locale         = en
  Home Dir; Current Dir = /home/ajacobs;
/export/home/ajacobs/Netbeans3.2_beta/netbeans/bin
  IDE Install; User Dir = /export/home/ajacobs/Netbeans3.2_beta/netbeans;
/home/ajacobs/nbuser32

The errors I encountered are catalogued below.


******************************************************************************************
******************************************************************************************
Creating the LookAndFeel Application
  Creating a Container

Follow the steps in the tutorial "Creating the LookandFeel Application".
The screen shots in "Creating a Container" are not the same as those
currently displayed by Netbeans.

******************************************************************************************
******************************************************************************************
Creating the LookAndFeel Application
  Adding a Custom JavaBeans Component

In the section "To add the bean", when executing step 4:
  "Right-click anywhere on the LookandFeel form in the Form window and
   choose Paste from the contextual menu"
an exception is generated.  The radio buttons in the group are not
displayed in the Form window.  They are there, but you have to step
through the rest of the tutorial to see that.  The traceback from
the exception is:

java.lang.reflect.InvocationTargetException:
java.awt.IllegalComponentStateException: This \
component must have a parent in order to determine its locale
        at java.awt.Component.getLocale(Component.java:1142)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.netbeans.modules.form.RADProperty.getTargetValue(RADProperty.java:68)
        at
org.netbeans.modules.form.FormProperty.reinstateProperty(FormProperty.java:345)
        at org.netbeans.modules.form.RADComponent.setInstance(RADComponent.java:175)
        at
org.netbeans.modules.form.RADVisualContainer.setInstance(RADVisualContainer.java:38)
        at
org.netbeans.modules.form.RADComponent.initInstance(RADComponent.java:101)
        at
org.netbeans.modules.form.RADComponentNode$InstancePaste.paste(RADComponentNode.java:884)
        at org.openide.actions.PasteAction.performAction(PasteAction.java:109)
        at
org.openide.actions.PasteAction$ActSubMenuModel.performActionAt(PasteAction.java:195)
        at
org.openide.awt.Actions$SubMenuBridge$ISubActionListener.actionPerformed(Actions.java:572)
        at org.openide.awt.Actions$SubMenu.doClick(Actions.java:842)
        at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:886)
        at java.awt.Component.processMouseEvent(Component.java:3715)
        at java.awt.Component.processEvent(Component.java:3544)
        at java.awt.Container.processEvent(Container.java:1165)
        at java.awt.Component.dispatchEventImpl(Component.java:2593)
        at java.awt.Container.dispatchEventImpl(Container.java:1214)
        at java.awt.Component.dispatchEvent(Component.java:2497)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2452)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2217)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2126)
        at java.awt.Container.dispatchEventImpl(Container.java:1201)
        at java.awt.Window.dispatchEventImpl(Window.java:912)
        at java.awt.Component.dispatchEvent(Component.java:2497)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:333)
        at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)


Step 5 in the section "To add the bean:" asks the user to "right-click
the radioBuggonGroupPanel1 node and choose rename."  There are two
nodes with this name, one in the Explorer and the other in the Component
Inspector.  Which one should be renamed?

Still in "Adding a Custom JavaBean Component", in the section "To customize
the bean:", step 2 says to select the "Other Properties" tab and look for
a property "buttonLabels".  This property is now grouped by the "Properties"
tab.

Still in "Adding a Custom JavaBean Component", in the section "To customize
the bean:", step 4 instructs the reader to click the "Form Connection tab"
in the buttonLabels property editor.  There is no longer a tab for this.
There is a choice box labelled "Select Mode".
Comment 1 Jo Lawless 2001-04-02 23:14:55 UTC
Procedure for showing the radio buttons now in place. Steps altered 
slightly to accomodate for ui changes in core features. Exception
no longer generated.  
Comment 2 Jo Lawless 2001-04-02 23:16:55 UTC
*** Issue 10267 has been marked as a duplicate of this issue. ***
Comment 3 Jan Chalupa 2001-05-06 15:17:20 UTC
Target milestone -> 3.2
Comment 4 Quality Engineering 2003-07-01 15:21:35 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 5 Quality Engineering 2003-07-01 15:24:24 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.