2/3 Glaspanes over eachother, with a JPanel at the bottom.

Hi all!
I wonder if it is posible to have a JPanel (with gifs, jpgs etc) and two/three GlassPanes(with gifs, jpgs etc) over eachother for use i games etc.
I have succeded of creating this with one window, but i have five or six windows but i only want the glaspane to effect one window, since i dont wanna lock all the windows.. is this possible at all with swing?
Becouse everytime I add a glass pane to a window the things in it(behind the glaspane), disapear. Any ideas?
Thanks in advance!
//SAJBER

{ inside Container(C)
Jpanel1(p1){ inside p1
p1.add(RightWin);
Jpanel2(p2){ inside p2
(JScrollPanel) GameWin{inside GameWin
                            (JPanel)  GameBackground {inside GameBackground
                                  (JLabel)GameBackground.add(tile); (image)
                                  (GlassPanel)GB.add(layer1); (glasspane){inside   layer1                                    (GlassPanel)layer2 (draws a image an squares
                                                (GlassPanel)layer3(draws rotating polygon)
p2.add(ChatTabs);
p2.add(ChatWin);
p2.add(ChatBar);
Jpanel 3(p3){ inside p3
p3.add(LeftWin);
p3.add(LeftWin2);
problem is that I can only view eather the content of GameBackground, Layer1, layer 2 or layer3 at once. I would like to at least show the background who is a JPanel and at least one glas panel over it at the same time, but I cant!!
I try to add use GameBackground.add(layer1), but if I do that the the old things added to GameBackground is over written. All the glass and JPanel are setOpaque(false).

Similar Messages

  • Please resolve the Error:Element Entry over laps with another entry of the same type

    Hi Buddies,
                    I have been trying to resolve the error : Element Entry over laps with another entry of the same type while entering salary to an employee.
    I have tried to resolve this issue by created a new salary basis with new element. But still I could not make it.
    Please let me know how to move forward? Thanks for your help.
    Thanks
    Ganesh kumar M

    Hi Ganesh,
    We have a similar post which have some recommendation. please go through the comments and check if it helps.
    https://forums.oracle.com/thread/2440864
    Thanks,
    Sanjay

  • Ff comes on, I go to site w/ pics the screen goes black & then w/ with a bubble from the bottom saying recovery from igfx display failure..Chr & Op = OK

    Firefox comes on, I go to a site rich w/ visual content & then the screen goes black & then white w/ with a bubble from the bottom bar saying recovery from igfx display failure..this used to happen on my Chrome browser (the Chr browser recovered spontaneously But I removed & reset it... still the problem went on & I quit using Chr for2-3 mos. There never was a problem on Opera. Hey! OPERA rule. As foe IE 8. That instrument is completely useless. Even all areon IE appears to be dead...Thanx!

    Try disabling hardware acceleration in Firefox.
    https://support.mozilla.org/en-US/kb/upgrade-graphics-drivers-use-hardware-acceleration#w_turning-off-hardware-acceleration

  • Pro15-inch with a lion at the bottom of the system, my computer is not always closed machine, has been a black and white, seems to read the disks that thing has been turning away, how do ah (do not want to reload) to help solve it

    pro15-inch with a lion at the bottom of the system, my computer is not always closedmachine, has been a black and white, seems to read the disks that thing has beenturning away, how do ah (do not want to reload) to help solve it

    What are you talking about?

  • Error popup im not sure if its to do with firefox , a box appears with a looks like a film icon with several dots in the bottom

    i have a persitant error popup whilst on my computer , it looks like a film icon and has several dots in the bottom of it , i have tried to investigate but come up with no solution , when i use firefox to clean my comp there is lots of mgbites for this error message , so i have taken google of and that seems to have stopped the error message in the ccleaner but it still keeps popping up , can anyone solve this for me

    First, let me thank you again for your time and attention to my inquiry. I do wish Firefox and the Mozilla community well -- and I would agree that not nearly everyone who has downloaded version 4 has complained.
    OTOH, I don't know what your multiplier is -- that is, how many downloaders on average actually having some kind of problem it takes for one of them/us to find it worth her/his time and trouble to input complaints this way. And thousands of messages does also still add up to quite a number of different problems. And my PC is old enough that it is perhaps more susceptible to problems and limitations.
    So I have downloaded version 4 -- but I'm not planning to install it immediately . . . not until I have the time and patience accumulated to handle installation and its problems, whether they're teething problems or teasing problems or absolute lockdown/drag-out fights.

  • Problema with white space at the bottom

    http://formypets.net/cat_training.html
    I keep getting that strange white space at the bottom and I
    have no idea what to do. Can someone give me a hand, please?

    labecs wrote:
    > I was just hoping to get a recommendation about where I
    can go to have someone
    > check my code and fix it where it needs fixing. I
    haven't been able to get an
    > opinion about the site, which is my first and I am just
    learning, and i don't
    > know if there 's something I'm doing really wrong or
    right or whatever. Anybody?
    >
    Hi,
    Try a new post asking for a site check or a site critique -
    you'll no
    doubt get differing advice about best practises on the
    construction -
    take what you get objectively, most will be constructive,
    don't be
    disheartened and don;t forget it's your client who is the
    person you
    most have to please.
    I think it looks great and for a first site - quite
    incredible really -
    you seem to have a fairly good grasp on what's going on with
    the code
    and (you may get crit for using absolute positioning) you
    also seem to
    have a grasp on relative and absolute positioning.
    One wee thing I see (sorry don't have time to trouble shoot
    for you) is
    a slight layout difference between IE and FF - possibly a
    double margin
    bug - a bigger gap between the centre and the right columns!
    Oh - and you might want to consolidate your css - shift the
    embedded
    styles to your linked sheet.
    HTH
    chin chin
    Sinclair

  • The airport icon (upper right portion of the screen) says I am connected to my airport; but, I don't get the icon on the Itunes window (rectangle with a triangle at the bottom of it) that allows me to select the stereo that is connected to my airport?

    The airport icon (upper right portion of the screen) says I am connected to my airport; but, the Itunes window doesn't show the icon (rectangle with an arrow in it) that allows me to select the stereo system speakers that are attached to the airport.  What's up with that?

    If the modem is also a router, either use the modem in bridge and run pppoe client on the TC.. that is assuming ADSL or similar eg vdsl. If it is cable service.. and the modem is a router, then bridge the TC.. go to internet page and select connect by ethernet and below that set connection sharing to bridge.
    Please tell us more about the modem if the above gives you issues.

  • When clicking on a link within a pdf nothing happens. When I mouse over the link the cursor turns into a finger/hand with a W at the bottom.

    Both Adobe and Firefox are on the lastest versions. Clicking on the link deosnt bring anything up.

    Does this only happen if you open the file embedded in Firefox and not when you open the external Adobe Reader (Tools > Options > Applications) ?

  • Mail Inbox only doesn't work.  Any ideas?  And Newstand app remains incomplete with blue bar on the bottom.  Any ideas?

    Only my Mail Inbox doesn't work with iOS5.  Sent, Bulk, Trash, and Draft works fine.  I don't receive new emails, yet if I go to see my mail via Safari/Yahoo/Mail all the new emails are there.  So it is clearly an iOS5 issue.  I did a hard restart holding the On/Off and Home key, I delete the account and reinstalled, i disenabled iCloud and nothing seems to work.  Any other ideas or do I wait for Apple to release 5.01 to fix all the mess they made.

    All seems okay with host, user name and password.  Server port is fine, though my 3G model has has multiple servers and the Wi-Fi version only has one.  I even brought it to an Apple store while traveling in The Netherlands.  They had no other suggestions.

  • My iPod Touch (4th Generation)is showing white and gray screen with a blur at the bottom right. It dosen't respond to resets or touch, but when I charge it it makes the charging noise

    Have tried  resetting, but does not respond to touch. It only does it  if you hit the sleep/wake button but not every time

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • Trying to install win7 over bootcamp with usb flash drive is not accepted

    trying to install win7 over bootcamp with usb flash drive, the partition is not accepted under windows although its formatted ntfs, there is shown a faillure which could be read in the logs of win install but i don't find them. Tried at least five times to reinstall / reformat

    You'll probably have better responses over in the Boot Camp forum....here's a link for you:
    https://discussions.apple.com/community/windows_software/boot_camp

  • Getting Autoscroll Interface to work with JScrollPane/JPanel

    I got drag and drop working with a JPanel extended class.
    JScrollPane -> JPanel
    My JPanel is a DropTarget. I want the viewable portion on that JPanel to have an Insets object associated with it. How would I do that?
    I originally associated the Insets object with the JPanel. Problem was that a lot of the JPanel can be obscured. So if the top is hidden it doesn't realize it is at the edge. I tried associating an Insets object with the JScrollPane and with the JScrollPane's JViewport with limited success. But I ran into similar errors. I may be on the right track with some of this. Not sure.
    I would appreciate any help if anyone has done this before.
    Regardless of the ways I am attempting, if you had a JScrollPane with a JPanel (and the JPanel was your DropTarget), how would you implement the autoscrolling? Esp. in regards to the Insets object?
    regards,
    Geoff Robinson

    The following code will autoscroll almost any drop target, not sure what insets you are talking about though.
        static int autoscrollMargin = 20;
        Insets autoscrollInsets = new Insets(0, 0, 0, 0);
        // AutoScroll methods.
        public void autoscroll(Point location)
            //System.out.println("mouse at " + location);
            int top = 0, left = 0, bottom = 0, right = 0;
            Dimension size = getSize();
            Rectangle rect = getVisibleRect();
            int bottomEdge = rect.y + rect.height;
            int rightEdge = rect.x + rect.width;
            if (location.y - rect.y <= autoscrollMargin && rect.y > 0) top = autoscrollMargin;
            if (location.x - rect.x <= autoscrollMargin && rect.x > 0) left = autoscrollMargin;
            if (bottomEdge - location.y <= autoscrollMargin && bottomEdge < size.height) bottom = autoscrollMargin;
            if (rightEdge - location.x <= autoscrollMargin && rightEdge < size.width) right = autoscrollMargin;
            rect.x += right - left;
            rect.y += bottom - top;
            scrollRectToVisible(rect);
        public Insets getAutoscrollInsets()
            Dimension size = getSize();
            Rectangle rect = getVisibleRect();
            autoscrollInsets.top = rect.y + autoscrollMargin;
            autoscrollInsets.left = rect.x + autoscrollMargin;
            autoscrollInsets.bottom = size.height - (rect.y + rect.height) + autoscrollMargin;
            autoscrollInsets.right = size.width - (rect.x + rect.width) + autoscrollMargin;
            return autoscrollInsets;
        }

  • Just got new iphone 4s. trying to edit photo but screen is black and with a "constrain" bar at the bottom of my screen, can't clear it or get back to photos

    Just got new iphone 4s. Trying to edit photo but screen is black and with "constraint" bar at the bottom.  I am unable to clear the black screen or get back to photo gallery.  Help!

    - Exactly what are you doing? You saying you are trying to syn it to new comnputer. When yuo sync it to a new computer iTunes will erase the iPod and replace its contents with what is i the iTunes library of the new computer.

  • Since being set up with Firefox, I have been unnable to access the icon at the bottom of monitor, for zooming in or out to change size etc.,

    When I was with Internet Explorer, at the bottom right of the monitor, I had an icon enableing me to zoom in and out, and enlarge text, I can not find this with Firefox.
    == This happened ==
    Every time Firefox opened
    == Recently, when Sympatico set me up with Mozilla Firefox

    See [[Text Zoom]] and [[Page Zoom]]
    Your User agent is wrong
    1. In the Firefox Location Bar, Where you enter the address of web pages, enter '''about:config'''
    2. A "This might void your warranty" warning may appear. Click "I'll be careful, I promise!"
    3. In the '''Filter''' text box, enter '''general.usergent'''
    4. For each of those general.useragent preferences, right click them and choose reset.
    You should be okay now.

  • How do I access my external drive over the web with my iPhone. The drive is attached to my Time Machine.

    How do I access my external drive over the web with my iPhone. The drive is attached to my Time Machine. I am new to Apple and am trying to get all my stuff working together.

    This is not a supported feature of iPhone or Time Capsule.

Maybe you are looking for

  • Shared Project Workflow Problem: Hitting a Wall with Markers

    Hi there, Apologies in advance for the long note.  We're using Adobe CC to edit and finish commercials and are having a significant issue regarding shared project workflow.  First, some context: We often edit projects remotely.  When this happens, as

  • Toolbar icons are greyed out

    Hi there, I am a Flash newbie and am following the Adobe 'classroom in a book' course, but I am encountering a simple problem. All I want to do is to draw some shapes using the 'pen' tool. However I suddenly find that all the tools beneath the 'magni

  • XI system getting

    All of our interfaces just stopped working and when we try and call it we are getting the following error in the SXMB_MONI: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!--  Call Adapter   --> - <SAP:Error xmlns:SAP="http://sap.com/xi/

  • Identifying of Missing PO's with 2LIS_02_SCL

    Hi! I have problem with 2lis_02_scl. By accident some one  have deleted the  queue SMQ1 from R3.  Now we are missing the data from  time we have schedulled the  last load to BW upto time of deletionof Queue. I am trying to identify those records whic

  • Need to update premiere but it stops & needs to close CEPHtmlEngine... what is this???

    I need to update premiere on the creative cloud but it stops and 62% and needs to close "CEPHtmlEngine" in order to continue. What is this and how can I close/update the app?!