(Answer) (Category) FAQ-O-Matic : (Category) General : (Category) Designer :
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!


2001-Aug-27 5:23pm gyles19@visi.com

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.
2001-Aug-27 5:24pm gyles19@visi.com

[Append to This Answer]
2001-Aug-27 5:24pm
Previous: (Answer) I'm writing a bean and I want to use it in the designer. I added it to the Designer's palette, but once it's loaded, changes I make to its code don't take effect. How can I test my own beans in the designer?
Next: (Answer) I have a database application which I designed with JBuilder 4. Now I'm using JBuilder 5, and when I open this app in the designer, I get"TdsDriver could not be loaded. This could be a problemwith the driver itself, or that the driver is not found on the classpath." The application runs fine within JB5. What is causing this error in the Designer and how do I fix it?
This document is: http://www.visi.com/~gyles19/cgi-bin/fom.cgi?file=257
[Search] [Appearance]
This is a Faq-O-Matic 2.709.
This FAQ administered by gyles19@visi.com.

Other JBuilder Links

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
Netring Home - About - Privacy
The
JBuilder Netring Logo
The Borland JBuilder Netring by JBuilder FAQ-O-Matic
[ Join Now | List Sites | Random | << Prev | Next >> ]
[ Previous 5 Sites | Skip Previous | Skip Next | Next 5 Sites ]