Results 1 to 3 of 3
  1. #1
    bullstreetboy is offline Member
    Join Date
    Apr 2009
    Posts
    10
    Rep Power
    0

    Default More VB.Net conversion problems

    In vb.net there is a Group box control that is capable of displaying a "title" along the top border line. How do I achieve the same effect in Java? Panel does not seem to provide this facility.

    Also in VB.Net I've been used to re-locating panels thus:- pnl1.location = new point(5000,500) - ie off the screen and out of view. then:- pnl2.location = new location(0,0) ie into view. This action could be trigged on clicking a menu or toolbar button. Is this possible/recommended in Java. My Java 6 (Sams Teach yourself) tutorial does not touch on the subject.

    Is there a better tutorial then the one mentioned? :confused:

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    TitledBorder see the setBorder method of Component (or JComponent?, I forget which).

    And for the second, see CardLayout.
    Last edited by masijade; 04-08-2009 at 10:33 AM.

  3. #3
    bullstreetboy is offline Member
    Join Date
    Apr 2009
    Posts
    10
    Rep Power
    0

    Default

    Thanks masijad for the quick response. Anything that helps dump Net Studio is much appreciated.

Similar Threads

  1. XLS to PDF conversion
    By nitin2k2k in forum Advanced Java
    Replies: 18
    Last Post: 07-02-2013, 11:17 AM
  2. Doc to Pdf conversion
    By praveen.kb in forum Advanced Java
    Replies: 2
    Last Post: 01-16-2009, 12:27 PM
  3. String Conversion....
    By hotice1027 in forum New To Java
    Replies: 8
    Last Post: 11-28-2008, 10:52 PM
  4. Word to xml Conversion
    By kushagra in forum Advanced Java
    Replies: 3
    Last Post: 10-16-2008, 08:23 AM
  5. Conversion from wav to vox
    By bozovilla in forum Advanced Java
    Replies: 1
    Last Post: 07-31-2008, 05:54 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
  •