DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2006
    Posts
    1

    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
    Location
    UK, London
    Posts
    150
    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

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links