Results 1 to 4 of 4
  1. #1
    Alerhau's Avatar
    Alerhau is offline Senior Member
    Join Date
    Jun 2011
    Location
    Sweden
    Posts
    158
    Rep Power
    4

    Default Adding transparent black color to the GlassPane?

    Ohai! Time for me to make my game better! Which released yesterday on Loaie Project, Home! It's time to add nighttime! So I was thinking if it is possible to add a 50% transparent black color to the GlassPane which I am using for the characters & Building blocks.

    Even better would be if you could add it to the JLabels which I have to hold the blocks. On top of the images that I add a 50% black color.

    Would also work if there are a way to add multiple image layers on a JLabel.

    If any of these are possible to do, then please, please help me. Would be cool if I can get the nighttime to work before the Alpha 0.1.0 of the game.

    Thanks,
    Alex
    Currently Developing a Game Called Loaie, You Can Download It From "The Loaie Website".

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,926
    Rep Power
    8

    Default

    What about this are you having trouble with? Recommended reading: A well-behaved GlassPane | Java.net
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Alerhau's Avatar
    Alerhau is offline Senior Member
    Join Date
    Jun 2011
    Location
    Sweden
    Posts
    158
    Rep Power
    4

    Default

    I can't see how this would help me ... I want to add something like multiple images on a JLabel.
    Currently Developing a Game Called Loaie, You Can Download It From "The Loaie Website".

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

    Default

    Quote Originally Posted by Alerhau View Post
    I can't see how this would help me ... I want to add something like multiple images on a JLabel.
    WTF? You asked about coloring a glasspane and a decent reference about glasspanes won't help you? What will help you?

Similar Threads

  1. Adding transparent JSlider
    By Addez in forum New To Java
    Replies: 3
    Last Post: 02-21-2011, 02:19 PM
  2. Relate JTextfield with glasspane to glasspane
    By finzaiko in forum AWT / Swing
    Replies: 1
    Last Post: 04-30-2009, 05:09 AM
  3. Replies: 4
    Last Post: 03-26-2009, 09:42 PM
  4. Adding color to a java applet?
    By soc86 in forum Java Applets
    Replies: 2
    Last Post: 11-02-2008, 04:14 PM
  5. GlassPane problem
    By SwinGirl in forum AWT / Swing
    Replies: 1
    Last Post: 12-11-2007, 02:37 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
  •