A quick tip for VisualCafé 3 users: when you create a custom component
class, like a JPanel extension, and add it to the component palette VCafé3
will always remember the component's parameters (location, sizes) at the
time of insertion. If you later update the source code of your component
VCafé3 will, after a rebuild all, still se the original parameters for
layout purposes.
I lost hours fighting with Visual Café 3 because of this... I made a JPanel
extension that originally had setLocation(50,50) in it's code, which i was
unaware of (autogenerated code). I added the component to the palette and
inserted it in another panel by dragging and dropping from the palette.
After that all my attempts to move the component seemed to work, until a
rebuild all was done...
Another related tip: VisualCafé 3 seems to take a "photo" of your custom
component when you drag+ it into another component. This "photo" will not be
updated when you update your custom component unless you close and open your
project again.
This just happened with me... I changed a label in my JPanel extension but
VisualCafé 3 still showed the image with the old label when displaying the
JFrame that contained my component. After closing and opening the project, the
image was updated.
Bookmarks