Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Java Swing/JAI question

Options
  • 17-04-2004 6:43pm
    #1
    Closed Accounts Posts: 2,951 ✭✭✭


    Having a bit of a problem with my menu display in a Swing GUI for
    displaying images. The menu is displaying underneath the loaded image
    file, but it appears over the actual frame that the image is
    displayed in. The image is being loaded using java advanced imaging
    functions as a stream. Here is the code used for loading it:

    srcStream = new FileSeekableStream(fileName);

    /* Decodes and loads the read image file */
    newImage = JAI.create("Stream",srcStream);

    // Loads the images in Image display panel and initialize the
    // properties of the image display panel
    srcImageScroll = new ScrollingImagePanel(newImage,blah,blah);
    srcImageScroll.setOrigin(0,0);
    srcImageScroll.doLayout();

    This loads the image into the frame we created for it. Menus are created
    in the normal way using JMenuBar. Any ideas on how to get the menu
    always on top of the image.?
    Ive looked around a bit for methods like alwaysontop but they
    dont seem to be what im looking for. Im sure its something simple......
    Thanks


Advertisement