Results 1 to 6 of 6
  1. #1
    jaho is offline Member
    Join Date
    Feb 2012
    Posts
    6
    Rep Power
    0

    Default Swing JApplet, what is the right layout for free located canvas + jlabels ?

    If i set an JApplet and add many canvasses on free choosable location on this JApplet.

    Then what is the right layout to set to JApplet, i want all my small canvasses and jlabels to be on freely choosable location.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,589
    Rep Power
    23

    Default Re: Swing JApplet, what is the right layout for free located canvas + jlabels ?

    Set the layout manager to null and you can put the components where you want them.

  3. #3
    jaho is offline Member
    Join Date
    Feb 2012
    Posts
    6
    Rep Power
    0

    Default Re: Swing JApplet, what is the right layout for free located canvas + jlabels ?

    Can JLabels have transparency when JApplet has layout set to null ?

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,589
    Rep Power
    23

    Default Re: Swing JApplet, what is the right layout for free located canvas + jlabels ?

    I don't know.
    What happened when you tried it?

  5. #5
    jaho is offline Member
    Join Date
    Feb 2012
    Posts
    6
    Rep Power
    0

    Default Re: Swing JApplet, what is the right layout for free located canvas + jlabels ?

    JLabel has no transparent pixels, JLabel background is RGB(255,255,255).

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,589
    Rep Power
    23

    Default Re: Swing JApplet, what is the right layout for free located canvas + jlabels ?

    Sorry, I don't see the relationship between the layout of components and their contents.

Similar Threads

  1. Page not refreshing properly within a swing JApplet
    By Majora94 in forum Java Applets
    Replies: 1
    Last Post: 01-26-2012, 11:26 PM
  2. help with swing layout
    By TopNFalvors in forum New To Java
    Replies: 6
    Last Post: 04-08-2011, 05:22 PM
  3. Add Swing Layout.jar
    By anilkumar_vist in forum New To Java
    Replies: 0
    Last Post: 10-02-2010, 04:42 AM
  4. Add Canvas to JApplet
    By coiner in forum Java Applets
    Replies: 7
    Last Post: 01-04-2010, 11:38 PM
  5. Layout Manager of JApplet
    By Peter_APIIT in forum Java Applets
    Replies: 10
    Last Post: 07-19-2008, 05:37 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
  •