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 2915 - Changing "viewport" property of the JScrollPane does not work - "Property"
Summary: Changing "viewport" property of the JScrollPane does not work - "Property"
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All Linux
: P4 normal (vote)
Assignee: Marian Petras
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-07-29 02:00 UTC by Marian Petras
Modified: 2002-07-19 15:19 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 Marian Petras 1999-07-29 02:00:31 UTC
Put a JScrollPane into some form and select it in the Object Browser. Find
property `viewport` select it and press button "...". A dialog is opened.
Select radiobutton "Property" and press button "..." next to it. The
following exception is thrown:

Exception occurred during event dispatching:
java.lang.NullPointerException:
        at javax.swing.JComboBox.getSelectedIndex(JComboBox.java:422)
        at javax.swing.plaf.basic.BasicComboPopup.syncListSelectionWithComboBoxSelection(BasicComboPopup.java:773)
        at javax.swing.plaf.basic.BasicComboPopup$ListDataHandler.intervalAdded(BasicComboPopup.java:542)
        at javax.swing.AbstractListModel.fireIntervalAdded(AbstractListModel.java:111)
        at javax.swing.DefaultComboBoxModel.addElement(DefaultComboBoxModel.java:123)
        at javax.swing.JComboBox.addItem(JComboBox.java:438)
        at com.netbeans.developer.modules.loaders.form.PropertyPicker.<init>(PropertyPicker.java:74)

        at com.netbeans.developer.modules.loaders.form.ParametersPicker.propertyDetailsButtonActionPerformed(ParametersPicker.java:398)
        at com.netbeans.developer.modules.loaders.form.ParametersPicker.access$2(ParametersPicker.java:396)
        at com.netbeans.developer.modules.loaders.form.ParametersPicker$4.actionPerformed(ParametersPicker.java:286)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1066)
        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1101)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:217)
        at java.awt.Component.processMouseEvent(Component.java:3126)
        at java.awt.Component.processEvent(Component.java:2965)
        at java.awt.Container.processEvent(Container.java:987)
        at
Comment 1 Marek Grummich 2000-07-25 09:42:59 UTC
Priority is changed to P4 (normal).