Custom SWT widget

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Custom SWT widget

  1. #1
    Join Date
    Feb 2006

    Custom SWT widget

    Hi friends,

    I'm trying to write a SWT component which is made up of a control (eg. button) and of a drawgin which should display above the control. For instance a statdard button that has a line from one corner to the opposite corner.This should be a componenet (widget).

    Please help.

  2. #2
    Join Date
    Mar 2005
    UK, London
    Are you saying you want a line to go through the button?

    if so you can try this

    button.setLayout(new BorderLayout());
    button.add(new JLabel("<html><hr width=100%></html>"), BorderLayout.NORTH);

    hope it is what you wanted.

Similar Threads

  1. Replies: 0
    Last Post: 12-11-2002, 06:05 PM
  2. Custom Errors Page Problem
    By Steve in forum ASP.NET
    Replies: 0
    Last Post: 11-16-2002, 10:14 PM
  3. Replies: 0
    Last Post: 02-12-2002, 06:04 AM
  4. Replies: 0
    Last Post: 04-10-2001, 04:13 AM
  5. PRB w/ custom form, public folder & event script
    By Jason Thorn in forum Enterprise
    Replies: 0
    Last Post: 04-02-2001, 06:09 PM

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
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

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