=?iso-8859-1?Q?VCaf=E9?= 3 layout/palette tip


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: =?iso-8859-1?Q?VCaf=E9?= 3 layout/palette tip

  1. #1
    Fabio Luis De Paoli Guest

    =?iso-8859-1?Q?VCaf=E9?= 3 layout/palette tip

    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...

    Fabio

    Attached Files Attached Files

  2. #2
    Fabio Luis De Paoli Guest

    Re: =?iso-8859-1?Q?VCaf=E9?= 3 layout/palette tip

    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.

    Fabio


    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center