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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Java Swing/JAI question

  • 17-04-2004 5: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