Multithreaded Pacman: only last animated panel added to JFrame is displaye

Hello,
I am making a multithreaded pacman game. Pacman and each of the ghosts run in a separate thread.
However, only the last item (ie. pacman or one of the ghosts) added to the JFrame is displaying in the maze. (pacman and each of the ghosts are subclasses of JPanel). For example, if I do:
add(pacman);
add(orangeGhost);
add(redGhost);
only the red ghost animation will appear on the maze(which is also a subclass of JPanel).
I have tried adding the ghosts to pacman and then adding pacman i.e. pacman.add(redGhost); add(pacman); but this still doesn't work - only pacman is showing in the maze.
Each thread runs fine on its own, but only the last one added is displaying.
Any help is much appreciated.

Hi,
JFrame uses the BoderLayout layout manager, and when you add a JPanel after the other inside your JFrame they will get put one on top of other. None of the layout manager let you overlap components with transparency as far as I know. Also your JPanels are not transparent but opaque.
I think what you need is to "paint" your game on a JPanel o canvas, take a look at this tutorial:
http://javaboutique.internet.com/tutorials/Java_Game_Programming/
Keep asking around, people with more experience can help you on this forum.
Regards,

Similar Messages

  • Hints image on the animation panel does not change.

    Help I have several animation panels when the program initializes from the constructor. I have a separate AnimationPanel class that creates each panel for display. The initial ?hello ? welcome panel (from the constructor) animates on the main panel when the program begins.
    The problem is I want to have different animation panels (that are stored ) to animate and replace the main panel animation at a push of a button. While, the various panels can animate if called from the constructor, they do not animate when called from a button.
    The buttons I created to switch the main animated panel with a different one seems to work to the extent that it gets the correct music, but the image on the animation panel does not change.
    I know this is a more in depth of a question but might you be able to give me a point in the right direction?
    Here is the code from the constructor that works fine in the constructor to start the main animation.
    public PingPong()
    // null layout because it has a main panel where this display panel is placed
    super(null);
    //panels are created
    instantiatePanels();
    //panels are added to the main content pane
    placePanelsOnView();
    startAnimation();
    initializeAudio();

    The problem is that I now start it with no animation to begin with and just an empty panel, but still when I try to add an animation from the button and it will not start. The contentPane is in a different class that places the buttons and the view together.
    Here is the code that the button calls back with a getNextPanel() :
    AnimatedPanel expertPingPongPlayerPanel
              = new AnimatedPanel( );
    add(expertPingPongPlayerPanel );
         expertPingPongPlayerPanel.animate();
              expertPingPongPlayerPanel.setVisible(true);
              startAnimation();

  • We use Thdbrd email , each mail use Coy's logo, its to heavy, pls advis to set automatic delete of logo, than only last email use logo, the other deleted.

    Dear Sirs,
    We use Thunderbird email, each email attached with coy's logo ( .jpg), during email discussion each logo will carry forwards on every email received, therefore the file become big (many logos attached).
    Pls advise whether any setting to minimize the attached logo, let say only last 2 sender's logo appeared the other automatically deleted (logo can be more than 10 logos subject to the participants), which slow down the email due to heavy attachment.
    Thanks you for assistance.
    Anto

    Maybe it will be tidier if you go to
    '''[http://kb.mozillazine.org/Menu_differences_in_Windows,_Linux,_and_Mac Tools|Account Settings]|<select account>|'''Composition & Addressing
    and clear the checkboxes ''Include signature for replies'' and ''Include signature for forwards''.
    That will stop adding new copies of the signature. I don't know of any tools to automatically edit out previous signatures or images; in theory this can work in newsgroups where the "-- " separator is used, but I've never seen this sort of tidying up in email. (And this only works properly when ''all ''contributors to the conversation use bottom-posting.)
    In the general case, it would be quite hard to automatically identify and locate exactly which content should be removed, since most signatures are a blend of text, URLs and images. In a special case where the signature is an image file (is a jpeg really a good choice for this?) then it might appear to be quite easy.
    Those of us who advocate and prefer bottom-posting or interleaved posting would argue that it's ''your ''responsibility to trim the older material to suit, anyway. ;-)

  • Pacman only searches or installs from core

    Hi folks,
    I seem to have developed an odd problem. My pacman only searches or installs (or sees) packges from core. My pacman.conf has core, extra and community enabled, -Syu updates all 3 of these repositories but any searches or attempt to touch any packages other than core results in a not found error. E.g. extra/sdl was installed. I removed it using -Rd but now can't install it or find it in a search.
    [mongrol@scarce Downloads]$ sudo pacman -Ss sdl
    [mongrol@scarce Downloads]$ sudo pacman -S sdl
    sdl package not found, searching for group...
    error: 'sdl': not found in sync db
    [mongrol@scarce Downloads]$
    Any help much appreciated.

    Hmm, Tried that. It says it's done it but it hasn't really. Here's the debug output from a -Ss sdl.
    :: Synchronizing package databases...
    downloading core.db.tar.gz...
    downloading extra.db.tar.gz...
    downloading community.db.tar.gz...
    debug: config: attempting to read file /etc/pacman.conf
    debug: config: new section 'options'
    debug: config: HoldPkg: pacman
    debug: config: HoldPkg: glibc
    debug: config: SyncFirst: pacman
    debug: config: new section 'core'
    debug: setlibpaths() called
    debug: option 'cachedir' = /var/cache/pacman/pkg/
    debug: registering sync database 'core'
    debug: config: including /etc/pacman.d/mirrorlist
    debug: config: attempting to read file /etc/pacman.d/mirrorlist
    debug: adding new server URL to database 'core': ftp://mirror.aarnet.edu.au/pub/archlinux/core/os/i686
    debug: adding new server URL to database 'core': http://mirror.aarnet.edu.au/pub/archlinux/core/os/i686
    debug: adding new server URL to database 'core': ftp://ftp.iinet.net.au/pub/archlinux/core/os/i686
    debug: adding new server URL to database 'core': http://ftp.iinet.net.au/pub/archlinux/core/os/i686
    debug: adding new server URL to database 'core': ftp://mirror.internode.on.net/pub/archlinux/core/os/i686
    debug: adding new server URL to database 'core': http://mirror.internode.on.net/pub/archlinux/core/os/i686
    debug: adding new server URL to database 'core': ftp://mirror.pacific.net.au/linux/archlinux/core/os/i686
    debug: adding new server URL to database 'core': http://mirror.pacific.net.au/linux/archlinux/core/os/i686
    debug: config: finished parsing /etc/pacman.d/mirrorlist
    debug: config: new section 'extra'
    debug: registering sync database 'extra'
    debug: config: including /etc/pacman.d/mirrorlist
    debug: config: attempting to read file /etc/pacman.d/mirrorlist
    debug: adding new server URL to database 'extra': ftp://mirror.aarnet.edu.au/pub/archlinux/extra/os/i686
    debug: adding new server URL to database 'extra': http://mirror.aarnet.edu.au/pub/archlinux/extra/os/i686
    debug: adding new server URL to database 'extra': ftp://ftp.iinet.net.au/pub/archlinux/extra/os/i686
    debug: adding new server URL to database 'extra': http://ftp.iinet.net.au/pub/archlinux/extra/os/i686
    debug: adding new server URL to database 'extra': ftp://mirror.internode.on.net/pub/archlinux/extra/os/i686
    debug: adding new server URL to database 'extra': http://mirror.internode.on.net/pub/archlinux/extra/os/i686
    debug: adding new server URL to database 'extra': ftp://mirror.pacific.net.au/linux/archlinux/extra/os/i686
    debug: adding new server URL to database 'extra': http://mirror.pacific.net.au/linux/archlinux/extra/os/i686
    debug: config: finished parsing /etc/pacman.d/mirrorlist
    debug: config: new section 'community'
    debug: registering sync database 'community'
    debug: config: including /etc/pacman.d/mirrorlist
    debug: config: attempting to read file /etc/pacman.d/mirrorlist
    debug: adding new server URL to database 'community': ftp://mirror.aarnet.edu.au/pub/archlinux/community/os/i686
    debug: adding new server URL to database 'community': http://mirror.aarnet.edu.au/pub/archlinux/community/os/i686
    debug: adding new server URL to database 'community': ftp://ftp.iinet.net.au/pub/archlinux/community/os/i686
    debug: adding new server URL to database 'community': http://ftp.iinet.net.au/pub/archlinux/community/os/i686
    debug: adding new server URL to database 'community': ftp://mirror.internode.on.net/pub/archlinux/community/os/i686
    debug: adding new server URL to database 'community': http://mirror.internode.on.net/pub/archlinux/community/os/i686
    debug: adding new server URL to database 'community': ftp://mirror.pacific.net.au/linux/archlinux/community/os/i686
    debug: adding new server URL to database 'community': http://mirror.pacific.net.au/linux/archlinux/community/os/i686
    debug: config: finished parsing /etc/pacman.d/mirrorlist
    debug: config: finished parsing /etc/pacman.conf
    debug: registering local database
    debug: loading package cache for repository 'core'
    debug: warning: pkgcache is NULL for db 'core'
    debug: searching for target 'sdl'
    debug: loading package cache for repository 'extra'
    debug: warning: pkgcache is NULL for db 'extra'
    debug: searching for target 'sdl'
    debug: loading package cache for repository 'community'
    debug: warning: pkgcache is NULL for db 'community'
    debug: searching for target 'sdl'
    debug: unregistering database 'local'
    debug: unregistering database 'core'
    debug: freeing package cache for repository 'core'
    debug: unregistering database 'extra'
    debug: freeing package cache for repository 'extra'
    debug: unregistering database 'community'
    debug: freeing package cache for repository 'community'

  • How to decrease the height of the panel added at north using borderlayout m

    hi!
    i have problem decreasing the height of a panel that i have added in a frame at the north position uising the borderlayout manager
    thanx and regards
    Deepak Saini

    How much do you want to decrease the panel height?
    There are two limiting factors, namely the minimum computed size of its components and the layout-dependent computed size. Window resizing will 'clip' the panel, but its dimensions remain the same once this limit has been reached.
    With respect to the first factor, there are only a few things that can be done: change the font or image sizes of internal components, change the spacing between components, change the borders around and within the components (where applicable).
    With respect to the second factor, there is some flexibility, but it depends on what your app requires. The only way to reduce the height of a BorderLayout.NORTH panel is to force its size down by adding other panels BorderLayout.CENTER and/or BorderLayout.SOUTH in such a way that at least the CENTER panel expands out and causes the NORTH (and possibly SOUTH) panel(s) to compute to their smallest dimensions. Otherwise, the computation will expand the NORTH panel as far as it can or divide between the two or three equally (for example, if each panel only contains buttons with text). Nonetheless, by default, the CENTER panel occupies the largest region, pushing the others to the borders as tightly as possible. Do you have a CENTER panel added?
    Robert Templeton

  • How to print the text in only last but one page in sapscripts

    hiiiiiiiiiii,
             explian how to print the text in only last but one page in sapscripts? wher to write the code? plz if possible explain in detail with an example?

    Hello,
    The total no pages is given by &SAPSCRIPT-FORMPAGES& command.
    So u can handle the situation in ur form like this
    /: if &PAGE&  = &SAPSCRIPT-FORMPAGES&
    p1 TEXT
    /: endif
    Try in this way it may help u.
    Regards

  • My ipod touch 4th gen battery only lasts for 3 hours with wifi and brightness fully down

    My ipod touch 4th gen battery life if asful only lasts a maxium of 3 hours with wifi turned off and brightness fully down any suggestions?

    You can try restoring the iPod. However, it could be that the battery is going bad.
    Apple will exchange your iPod for a refurbished onewith a new battery for $79. They do not fix yours.
    Apple - iPod Repair price              
    A third-party place like the followingwill rplace it for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the battery yourself if you are up to it. You can purchace a replacement battery for about $10
    iPod Touch Repair – iFixit

  • My battery only lasts aboround 3 hours

    My battery only lasts around 3 hours

    Don't bump old threads.  You have an active thread right now.  I doubt Melle is going to check this thread anytime soon.

  • My new Macbook Pro only lasts 3 hours.

    I bought a new 15-inch Macbook Pro in late June when the newer versions with better battery life were introduced. Unfortunately, my battery always lasts less than 3 hours. I lowered most of the default energy preferences (such as dimming the screen enormously) and turned off my wireless port, but it still only lasts 3 hours.
    Did I accidentally receive an old Macbook Pro or what? Is the 7 hour battery life just a great exaggeration?

    Well... it would be easy enough to tell if you have the older version. If the bottom of your case is a single piece of aluminum, you have the new one... if it is split in the middle with a latch (for the removable battery) you would have the old one. Apple, like everyone else, gives a "best case" scenario when it comes to battery life. Dimming the display helps... but the way you use your machine will have a great impact as well. If you are doing things that require more processing power, you will eat away at your charge faster. Also... does it actually last three hours or are you going by the estimate provided in the menu bar? The estimate is calculated by the load in your system at any given time. If you just have your machine on... but not doing anything, the estimate will be much longer than if you're running applications. To get a better idea of your usage, you should view the percentage remaining (vs. the time). The percentage remaining is the actual percentage remaining vs. an estimate.

  • Battery Life on brand new macbook pro 15 inch i5 only lasting 3 hours

    The battery on my macbook pro is only lasting 3 hours with light use...If i'm watching a video or on a game it lasts maybe an hour or 2. I charged it fully when I first got it out of the box 2 days ago.
    I have tried calibrating it which worked a little bit. But still nothing like the promised 8 hours. Not even near 6 hours.
    Can anybody help?

    I tell you how to maximise it mate .. Fully charge your battery and leave it on charge for 2 hours .and then create the minimum power consumption scenario ( kill bluetooth , minimise brightness , kill all apps etc ) AND THEN remove the plug .. use at this state until about 70% charge and continuously monitor the capacity like I mentioned earlier when you see it hit a high, plug it in you will see now that will become your permanent capacity .. allow full charge and leave it plugged for a day . .repeat the same .. after about a week now this time do the same but reduce down to the 40% range and always plug in at a high capacity point..you will train you r battery this way ..
    I am glad I could help .. altho it took a bit of fighting the external obstructions it's all good
    take care ,,

  • Why does my MacBook Pro's battery only lasting about 30 minutes since upgrading to OS 10.8?

    I had absolutely no battery issues with my new MacBook Pro 15 inch until I upgraded to the new OS Mountain Lion. Now, my laptop is hot—CPU Heatsink, 135 degrees, and enclosure base 93-95 degrees. Additionally, the battery now only lasts about 30-45 minutes on a full charge due to the fans running from 2000 to 3500 RPMs. Someone else have the same issues?

    Is the 135 degrees Celsius?  If so, that is very hot indeed.  Fans always run at a minimum of 2000 RPM. At this temp, fans should be running at something like 6000 RPM!  Something is heating up your computer.  In Activity Monitor, with "All Processes" selected, which processes are using the most CPU, and how much are they using?
    If the temperature is in Farenheit, this is not so very hot and the problem with your battery is elsewhere.
    Have you tried Resetting the System Management Controller ... ?
    charlie

  • Year-old nano's battery only lasts about 9 hours--normal?

    The one-year warranty on my nano expires in about two weeks. The battery only lasts about 9 hours when playing AACs purchased from the iTunes Music Store continuously, with the EQ and backlight turned off.
    Not too shabby, but also nowhere near the 14 hours it got when it was new.
    My question for those of you who have had warranty repairs for battery problems--would Apple consider 9 hours of battery life "defective" and worthy of a warranty repair or replacement?
    Any feedback or advice would be greatly appreciated.

    Actually Apple says up to 14 hours. You're doing ok with this because you're getting about 65% or more battery life from the max of 14 hours.
    Just to be clear, you can only buy the AppleCare plan during the first 12 months warranty period, so if your iPod is nearing a year old, better be quick.
    Btw, have you seen these?
    Beef up my iPod battery.
    How to accurately determine your iPod battery life.

  • My phone battery can only last an hour. Problem started a week ago while I was in Argentina. I am back in the country now, this morning I left the house with a full battery and when I got to work the phone had shut down. Phone is 7 months old. Why?

    Dear Apple Family,
    I have been using an iPhone since I lost interest with Nokia phones. I fell in love with Apple's innovation, design and technology.  However, I am beginning to lose interest wth the product as well.
    I have an iPhone 5, my phone's battery can only last an hour and the phone is 7 month old.  The problem started last week while I was in Argentina. I had a bad holiday due to this, as I could not make use of the technology because my phone was off most of the time and I had nowehere to charge except to go back to the hotel.  I could not even share pictures on Instagram.  Has anyone ever experienced such a problem?  If so, why and how was the problem fixed?  I am starting to engage in a debate that I have been trying to avoid with my friends.  They say that Samsung is striving and I now tend to agree, and if the problem persists I will gladly join the Samsung family. They seem to make reliable phones.  Sadly, I never experienced this problem with iPhone 3GS & iPhone 4S.
    With Gratitude,
    Thapelo

    Hello,
    If you're in a country where there's an apple shop (unfortunately not mine), go check it and ask the employee about it: he's gonna check your Iphone on a "device"
    I've got an iphone 5 and it's working very well with me but I have to admit that its battery lasts (slower) than my Ipad 2.
    Still i can help with some tips that may improve your iohone's battery by an hour in addition (hopefully):
    - close all apps by multitasking....
    - do NOT keep the brightness to the max
    Believe me you're gonna regret changing your phone to a samsung
    Hope i've helped and sorry for my bad english (has english as 3rd language)

  • Battery only lasts for about 7 hours after Update to IOS 4.2.1

    Hello folks,
    after I have updated my Iphone 3G to the newest firmware (4.2.1) may battery only lasts for about 7hrs in standby-mode (no tethering, umts, wifi, whatsoever), while it has been much much better before.
    Does anyone of you have the problem or a solution for it?
    Thanks,
    Alex

    I'm happy to tell you that the problem, at least for myself, is gone. I checked around on the forum and apparently it could be so that something went wrong when updating to 4.2.1 so restoring the phone from itunes could be the fix. I did so and the problems seams to be solved.
    /Ola

  • Best way to group data and show details of only last result in group

    Hi All! First off, just letting everyone know that this is a great place to explore and learn Oracle - I've learned more here than I have in some classes. Just exploring the forums and searching for an answer leads me to functions that I hadn't otherwise known existed.
    Here's what I'm looking to accomplish now... let's say I have a table that holds family information - if two or more persons are related in a family (determined by a separate table) then it should return the person identification and then the details of the group.
    For instance, the following data is contained in two tables, the current result follow and then the result I'm looking for...
    PERSONS TABLE
    PERSON         PERSON_ID           ADDRESS
    John Smith     101                     1 Oracle Drive
    Jane Smith     102                     1 Oracle Drive
    RELATIONSHIPS TABLE
    PERSON_ID      RELATEDPERSON_ID
    101                 102
    102                 101A simple query would result in the following:
    WITH PERSONS AS
      SELECT 'John Smith' AS person, 101 AS person_id, '101 Oracle Drive' AS address FROM dual union all
      SELECT 'Jane Smith', 102, '101 Oracle Drive' FROM dual
    ,    RELATIONSHIPS AS
      SELECT 101 AS person_id, 102 AS relatedperson_id FROM dual union all
      SELECT 102, 101 FROM dual
    SELECT
        person
      , address
    FROM  PERSONS p
    JOIN  RELATIONSHIPS r ON r.person_id = p.person_idRESULT
    PERSON      ADDRESS
    John Smith      101 Oracle Drive
    Jane Smith      101 Oracle DriveI'm looking to generate the following result but I'm not sure how to accomplish this... I'm confident it's something simple.
    DESIRED RESULT
    PERSON      ADDRESS
    John Smith     
    Jane Smith      101 Oracle DriveNotice that the address for the related family members is not displayed until the last family member is returned. It would repeat this process for each family.
    Thanks everyone for any help you can provide! 11g
    Edited by: nage62587 on Oct 16, 2012 8:20 PM

    Hi,
    nage62587 wrote:
    I've done a lot of forum searching and revised my question a bit to hopefully make things a bit clearer... I've taken a query Frank wrote and revised to meet my criteria; Searching the forum (and other places on the web) is great! Not only do you find things yourself, but people on this forum are more likely to help you when they see that you're doing all you can.
    If you find something that you try to adapt, post a link to it. Seeing the correct way to adapt it can be very instructive.
    essentially, if I can determine what relatives a person has, then I can create a unique "FAMILY_ID" for them - once I have that, it would appear as though I could then use the FAMILY_ID to group their addresses and other info together.
    The problem I'm having is that if a RELATEDPERSON_ID is linked to a PERSON_ID (PERSON_ID linked to RELATEDPERSON_ID works great), it assigns them a new FAMILY_ID rather than including them into the correct family.
    Here's my sql
    WITH PERSONS AS
    SELECT 'John Smith' AS person, 101 AS person_id, '1 Oracle Drive' AS address FROM dual union all
    SELECT 'Jane Smith', 102, '1 Oracle Drive' FROM dual union all
    SELECT 'Jack Smith', 103, '8 Oracle Drive' FROM dual union all
    SELECT 'John Doe', 104, '10 Oracle Drive' FROM dual union all
    SELECT 'Jane Doe', 105, '10 Oracle Drive' FROM dual union all
    SELECT 'Pete Smith', 106, '1 Oracle Drive' FROM dual
    ,    RELATIONSHIPS AS
    SELECT 101 AS person_id, 102 AS relatedperson_id FROM dual union all
    SELECT 102, 101 FROM dual union all
    SELECT 104, 105 FROM dual union all
    SELECT 105, 104 FROM dual union all
    SELECT 106, 101 FROM dual
    , table_x
    AS
    SELECT   person_id         AS col1
    ,        relatedperson_id  AS col2
    FROM     relationships
    ,     got_relatives     AS
         SELECT     col1
         ,     CONNECT_BY_ROOT col2     AS relative
         FROM     table_x
         CONNECT BY NOCYCLE     col1     =  col2
    OR  col2  =  col1
    SELECT       col1
    ,       DENSE_RANK () OVER ( ORDER BY  MIN (relative)
    ) AS family_id
    FROM      got_relatives
    GROUP BY  col1The result I expect is:
    COL1   FAMILY_ID
    102     1
    106     1
    101     1
    105     2
    104     2
    I suspect that whatever you copied originally had the PRIOR keyword somewhere in the CONNECT BY clause.
    Here's one way to do what you want:
    WITH    all_relationships     AS
         SELECT  person_id
         ,     relatedperson_id
         FROM     relationships
        UNION
         SELECT  relatedperson_id     AS person_id
         ,     person_id          AS relatedperson_id
         FROM     relationships
    ,     got_relatives     AS
         SELECT     CONNECT_BY_ROOT person_id     AS person_id
         ,     relatedperson_id
         FROM     all_relationships
         CONNECT BY NOCYCLE     person_id       = PRIOR relatedperson_id
                 OR          relatedperson_id  = PRIOR person_id
    ,     got_family_id     AS
         SELECT       person_id
         ,       MIN (relatedperson_id)     AS family_id
         ,       ROW_NUMBER () OVER ( PARTITION BY  MIN (relatedperson_id)
                                      ORDER BY          person_id     DESC
                                    )            AS r_num
         FROM       got_relatives
         GROUP BY  person_id
    SELECT       p.person
    ,       CASE
               WHEN  f.r_num  = 1
               THEN  p.address
           END          AS address
    ,       p.person_id
    ,       f.family_id     
    FROM       got_family_id  f
    JOIN       persons      p  ON  p.person_id  = f.person_id
    ORDER BY  family_id
    ,            person_id
    ;Output:
    PERSON     ADDRESS          PERSON_ID  FAMILY_ID
    John Smith                        101        101
    Jane Smith                        102        101
    Pete Smith 1 Oracle Drive         106        101
    John Doe                          104        104
    Jane Doe   10 Oracle Drive        105        104Obviously, you don't have have to display all the columns I displayed above In your first message, you said you wanted only person and address. In your last message, you said you only wanted person_id and family_id. Change the main SELECT clause any way you wish.
    I used the lowest person_id in each family as the family_id. You could use DENSE_RANK if you really wanted to have the families numbered 1, 2, 3, ..., but I suspect you don't really care what family_id is, as long as all the members of the family have the same value.
    You relationship table has some symmetrical relationships, such as
    SELECT 104, 105 FROM dual union all
    SELECT 105, 104 FROM dual union alland some asymmetrical relationships. For example, the only relationship involving person_id=106 is
    SELECT 106, 101 FROM dualthat is, there is no mirror-image row:
    -- SELECT 101, 106 FROM dual union all   -- THIS IS NOT IN THE SAMPLE DATAI assume there is no significance to that. As long as 101 and 106 appear on the same row, they are in the same family, regardless of which is the person_id and which is the relatedperson_id.
    So the first thing I did above was make sure all the mirror-image rows were represented. That's what all_relationships does.
    The next sub-query, got_relatives, is probably what you meant to adapt, but you left off the PRIOR operators.
    Got_family_id actually does the grouping, and also computes r_num to determine which is the last member of the family. Only that family member's address will be displayed in the main query.
    You could combine got_family_id and the main query; you don't really need a sub-query for that. It would be a little less coding, but I wrote it this way because I think it's a little easier to understand and maintain.

Maybe you are looking for

  • Can't change pemissions.

    Hi, I created a role containing a KM Navigation iView to a key user to let him change the permissions of his repository by himself. He has full control access to his repository but when he clicks on the permissions button the screen that comes up sho

  • Oracle RAC binaries on vxfs shared file system

    Hi, Is it possible to install oracle binaries on vxfs cluster file system for oracle RAC under sun cluster? Because as I know we can not use vxfs cluster file system for our oracle datafiles. TIA

  • Audio issue with A605, RE: Input/mic monitor

    I recently purchased a Portege A605-200, with Realtek HD audio and Vista. Trying to solve a problem that I've found, in my several days of research, seems quite common with Realtek.  Simply, I cannot monitor my microphone input, realtime, through my

  • TAR feedback

    The purpose of this post is constructive feedback for the Oracle JDeveloper team, not a trash-session (so for replies, please contribute constructively). There have been quite a few posts in several threads about ADF/UIX/Jdeveloper documentation and

  • Networking on the road

    I have a G4 Ibook which i take out on the road when i'm working, it currently holds everything and is getting very full. I'm looking at getting an imac as my home/office computer. Want i want to be able to do is store all my work files on my home com