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 168633 - "Set Action" for JButton not available in Maven-based appframework project
Summary: "Set Action" for JButton not available in Maven-based appframework project
Status: RESOLVED WORKSFORME
Alias: None
Product: guibuilder
Classification: Unclassified
Component: App Framework (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-15 17:27 UTC by kevingupton
Modified: 2009-08-11 10:21 UTC (History)
1 user (show)

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 kevingupton 2009-07-15 17:28:19 UTC
Demonstration of expected behavior:  With a project created via [File] --> [New Project] --> [Java] --> [Java Desktop
Application].  Creating a JPanel, editing it in "Design" view, adding a JButton, and right clicking on that JButton, the
context menu provides "Set Action" as an option.

Problem:  When a Maven-based Desktop App project is used, the "Set Action" option is not available!

To replicate defect:  See [File] --> [New Project] --> [Maven] --> [Maven Project] --> [Swing Application Framework...]
Creating  a JPanel, editing it in "Design" view, adding a JButton, and right clicking on that JButton, the context menu
DOES NOT provide "Set Action" as an option.

Known work-around:  Don't use Maven-based project.
Comment 1 Milos Kleint 2009-07-15 17:52:12 UTC
no idea what the action does and why it's not on maven based projects, reassigning to form
Comment 2 Jan Stola 2009-07-16 09:21:51 UTC
I am sorry, I am not able to reproduce this issue. I can see "Set Action" in the context menu of JButton even in a 
Maven project. Could you, please, provide more details about this issue? Does it happen also when you start NetBeans 
with a clean/new userdir?

See http://wiki.netbeans.org/FaqWhatIsUserdir if you don't know what userdir is
and http://wiki.netbeans.org/FaqAlternateUserdir to find out how to start NetBeans
with a clean/new userdir.
Comment 3 pribyl 2009-08-11 10:21:54 UTC
Product Version: NetBeans IDE Dev (Build 200908100201)
Java: 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)

I am not able to reproduce this either - the "Set Action" option is available.

Kevingupton, please if you are still facing this problem, reopen the issue and try to add as much additional info as
possible (NB and Java version, some custom setting of your IDE, etc)

Thanks