How to remove grid rows in design form?

I'm creating a dialog which has a JPanel uses JGoodies's FormLayout. I added some components but then decided to remove some of them. In design form, it still display grid rows which are used as place holders for those components. How can I removed them?

Thanks



Attachment(s):
grid.png
8 comments

Seems I need to open .FORM file to remove them. I think it should be removed automatically or some easier ways to remove them.

0

Row/Column titles should render red (instread of usual green) and there should
be a right-click popup action to remove unnecessary grids.

-


Maxim Shafirov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Seems I need to open .FORM file to remove them. I think it should be
removed automatically or some easier ways to remove them.



0

Hello t800t8,

t> I'm creating a dialog which has a JPanel uses JGoodies's FormLayout.
t> I added some components but then decided to remove some of them. In
t> design form, it still display grid rows which are used as place
t> holders for those components. How can I removed them?

Right-click the row caption (to the left of the form editing surface) and
select "Delete Row" from the context menu.

In many cases, the empty rows should be deleted automatically, but without
knowing what exactly you did, I can't tell why they weren't deleted in this
case.

--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Hi Dmitry,

Thanks for your answer.

And I have another problem. Sometimes I edit properties of UI components, when I try to commit FORM to SVN, IDEA will show me warnings "No label specified for component" (all my text components already set associated labels). But after I commit (ignore warnings), the next time I do a commit (at this time, I don't touch UI components), I don't meet them again. I have this problem with 2 latest EAPs (build 5661 and 5692)



Attachment(s):
warning.png
0

Hello t800t8,

t> And I have another problem. Sometimes I edit properties of UI
t> components, when I try to commit FORM to SVN, IDEA will show me
t> warnings "No label specified for component" (all my text components
t> already set associated labels). But after I commit (ignore warnings),
t> the next time I do a commit (at this time, I don't touch UI
t> components), I don't meet them again. I have this problem with 2
t> latest EAPs (build 5661 and 5692)

Do you see this error if you run Analyze | Inspect Code on the package that
contains the form?

--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Yes, I saw them if I run Analyze | Inspect Code. But it doesn't show any components relate with these warnings. It only shows

Name: SelectClassDialog.form
Location: package net.t800t8.abc
Problem synopsis: No label specified for component

0

Hello t800t8,

t> Yes, I saw them if I run Analyze | Inspect Code

Could you please send your .form file? Most likely the error is in fact valid,
but the report text could be better.

--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.