Results 1 to 3 of 3

Thread: Controls

  1. #1
    zzpprk is offline Member
    Join Date
    Aug 2009
    Posts
    26
    Rep Power
    0

    Default Controls

    Guys

    My mind has gone blank. How can I put a box around controls in Java? (See Performance on attached screenshot).

    Regards

    Patrick
    Attached Thumbnails Attached Thumbnails Controls-screen.jpg  

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Set the enclosing JPanel's border via setBorder, and use BorderFactory.createTitleBorder(String text) to create the border and title you wish to use.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. the depth of SWT controls
    By Alarmmy in forum SWT / JFace
    Replies: 0
    Last Post: 07-13-2009, 09:51 AM
  2. how to place the controls >
    By makpandian in forum AWT / Swing
    Replies: 1
    Last Post: 12-18-2008, 06:17 AM
  3. Controls in Eclipse
    By hisouka in forum Eclipse
    Replies: 6
    Last Post: 08-04-2008, 11:27 AM
  4. Putting controls in arrays?
    By Cymro in forum New To Java
    Replies: 4
    Last Post: 02-01-2008, 06:54 PM
  5. Tree controls using Swing
    By kabir in forum AWT / Swing
    Replies: 1
    Last Post: 01-05-2008, 09:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •