|
|
I have a GridLayout and I want to set the rows to 1 and the columns to zero, and the Designer won't let me do it. |
| Rich Wilkman writes:
The issue has been around since JB1.0 and stems from bad code used in the GridLayout class. The setter for row and column performs a well intentioned check on each other, introducing order dependency in generated (by you, me, a Designer or Fred) code. Rookie Bean mistake number 27!
| |
|
When you use the designer to change the row/column settings, it adds
individual set*() calls to the source. The problem is that when you
make changes to these properties, the Designer uses some internal method
to validate them, and if the source is in the wrong order, the Designer
gets huffy.
There are older threads on this issue availble on the tamaracka.com
search engine. One thread I found says that if you go into your source
and change it such that the GridLayout constructor is called as
GridLayout(1,0), and then delete the row/column set calls, the Designer
will be stop stumbling over the interdependent settings.
| |
| [Append to This Answer] | |
| 2001-Aug-27 5:24pm |
| ||||||||
|
Java Community
Java Tools |
Code Central JB OpenTools |
Community Recent Threads |
Borland Chat Chat FAQ |
||||||||||||||
|
Feature Matrices 3.0 | 3.5 | 4.0 5.0 | 6.0 | 7.0 |
Shop for JBuilder |
JBuilder Downloads and reg keys |
Report Piracy | ||||||||||||||
|
Online Manuals 4.0 | 5.0 | 6.0 7.0 |
Borland DevSupport's Bug/RFE Form Quality Central Client |
JB Patches & Updates |
JBuilder FAQs TIs | ||||||||||||||
|
JBuilder Newsgroups |
Tamaracka's News Archive |
Mr. Haki's JBuilder Machine |
JGuru's JBuilder FAQ |
||||||||||||||
|
Sun's Bug Parade |
|||||||||||||||||
|
|||||||||||||||||