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 204281 - Is unable to change java.awt.Insets property directly in property sheet
Summary: Is unable to change java.awt.Insets property directly in property sheet
Status: RESOLVED INVALID
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.1
Hardware: PC All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-26 14:36 UTC by asenk
Modified: 2011-10-31 12:47 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 asenk 2011-10-26 14:36:06 UTC
Product Version: NetBeans IDE Dev (Build 201110250600)
Java: 1.7.0_01; Java HotSpot(TM) Client VM 21.1-b02
System: Linux version 3.0.0-12-generic-pae running on i386; UTF-8; en_US (nb)
User directory: /home/tester/.netbeans/dev
Cache directory: /home/tester/.netbeans/dev/var/cache

Setup: Start IDE with clear userdir. Create new project, Java Application (e.g. MyApplication) and create a new form (e.g JFrame) and place there jButton component 

1. select jButton in design and click on property of Insets type (default
   value="[2,14,2,14]")
2. type in created textfield "10,20,30,40"
3. press Enter 

RESULT: It is impossible to change this property directly. You must use [...] button and editor, to change this property.
Comment 1 Jan Stola 2011-10-27 11:31:56 UTC
I am sorry, I am not able to reproduce this issue.

> 2. type in created textfield "10,20,30,40"
> 3. press Enter
> RESULT: It is impossible to change this property directly.

What do you mean that? What happens exactly when you press Enter?

I tried to modify 'margin' property of JButton by entering 10,20,30,40 and this value was accepted correctly.
Comment 2 MackSix 2011-10-27 14:12:51 UTC
There is an "insets" property separate from margin. The values are gray and not editable. I cannot edit it if I press the [...] button either. 

For me the default value is 4,16,4,16. 

The Test Suite specifies to change insets value to test if it works.

The margin property is editable.
Comment 3 Jan Stola 2011-10-27 14:24:50 UTC
> There is an "insets" property separate from margin. The values are gray
> and not editable. I cannot edit it if I press the [...] button either. 

'insets' property is read-only. I believe that asenk was refering to 'margin' property because you cannot perform steps 2 and 3 for 'insets' property.
Comment 4 asenk 2011-10-31 12:47:19 UTC
Ok, jstola is right. this is Invalid bug.
I was little bit confused, because it is possible to:
-click on [...] button next insets property 
-in invoked editor it is possible to edit insets 

In editor window is missing OK button (there is only Cancel) so the insets values cannot be modified in the end. I hope that is it clear, where I see problem...