Keeping a Jframe on top of an applet on a webserver.

Hi
I am developing an applet, which must display a Jframe, when somebody clicks on a JPanel. The JFrame must always be on top of the applet. I've tried to use both the .setAlwaysOnTop and .toFront when the window is deactivated.
The applet is running on a boa webserver, which is running on a PowerPc with uClibc. When I click on the JPanel the JFrame does not display. The Java console issues a Java.security exception saying that setAlwaysOnTop is not allowed.
I think I need to sign the applet. When I do this is can run the applet locally giving no problems, but when I do it on the web server I get the exception again. What am I doing wrong? Should I pass something along with the applet, like a cerficate or something?
Hope that anyone can help me...
Regards Lars

1) Have you gone through the Sun Swing tutorials on how to create and show JFrames?
2) Usually when an app shows another window, that second window is a dialog such as a JDialog. Once you get your code working, you may wish to consider this.
3) If your app isn't too large, you may wish to post your code here -- with code tags of course. If it is too large, then you would do well to whittle it down to a smaller size, enough to compile and show your problem.
4) If you are using NetBeans to generate your Swing code, I advise you to not do this, to first learn how to code Swing before trying to use this tool.
Good luck.

Similar Messages

  • How to keep Allways JFrame on top of JApplet?

    I have Japplet runs on the client side. after pressing buton on the applet
    a jframe pops up. but if i click on the japplet it hides under japplet.
    Any ways to keep this jframe on the top ? if i use jframe.keep always on the top will thought security exception. I know applets have some security issue to access local OS resources or permission. just need to know any possibitly to achive this somehow?
    thnx

    I don't think this is possible. Others feel free to correct me. Perhaps try signing the applet or setting the permissions in the policy file.
    You can use a JInternalFrame to keep the frame within the JApplet.

  • Keeping a window on top using JNI.

    Hi,
    We would like to keep a java JFrame as the top window on the screen.
    There is plenty of discussion regarding the fact that it's not possible without a native call which I accept (there is a price to pay for system independence). BUT, in my situation this isn't an issue, because it will always run on Windows.
    So... my question is how do you use the JNI to keep a window on top? I've never used JNI, so from the top please... ... ...
    Thanks in advance
    ollie lord

    Hi,
    this tutorial describes exactly what you want:
    http://community.borland.com/article/0,1410,20679,00.html
    Regards,
    Kurt.

  • JFrame on top - PROBLEM with parent FRAME

    Hello,
    I have tried every possible way to keep a JFrame or JDialog on top of my Main JFrame and it works.The problem is that the Main panel has limited functionality.For example I can change the tabs but I cannot press a button.It looks like it selects the button but the action never happens.
    I tried the "Thread- toFront()" way and the window "Deactivated-toFront()" way.
    I should mention that the new Frame is constructed and shown not from my MainFrame but in a custom ActionListener for a popup menu on a JTree.
    The code is extremly big to post it and I don't know which part could help you because there is no ecxeption or something like that.
    I don't see any people complaining,is it only me with that problem?
    ANY IDEAS??

    This works for me:
    CommandPanel d = new CommandPanel(this, "Command Panel", false);
    d.pack();
    d.show();
    That only works though when I use a button form my main Frame.So i pass the "this" parent and averything is ok.BUT what I have do is:
    I Have my main Frame, I have a tree in my main frame,I have a custom mouse listener on the tree to pop up a menu.If the user selects the last option "Show command Panel" then the menuAction class,which is a custom actionListener as follows
    class MenuAction implements java.awt.event.ActionListener {
    public void actionPerformed(ActionEvent e) {
    if (e.getActionCommand().equals("Show Commands Panel")){
    CommandPanel d = new CommandPanel(this, "Command Panel", false);//Error here."this" is not a Frame.Only a class that implements an ActionListener.
    d.pack();
    d.show();
    System.out.println("Clicked "+ e.getActionCommand());
    How can from inside the MenuAction class construct my commandPanel and pass in the constructor the main Frame??

  • How to keep new applications on top within windows 8.1 desktop

    In previous Window versions when one opened applications such as word, excel or browser or snipping tool these applications stayed on top.  
    However, in windows 8.1 now when ne application is openned, one needs to minize other applications before starting to use it.  This is very non productive use of time and prevents swtiching between dpendent application, open version of documents, and
    images.
    Please provide suggestions how to configure the system to enable latest application on top.
    Thank you.

    Hi,
    Based on my knowledge, you can keep new applications on top of all other windows on your desktop, even while you're working in other programs.
    I would like to suggest you restoring healthy  by using this command: dism /online /cleanup-image /restorehealth first.
    Meanwhile, please ask on the following forum. This is where the Windows 8.1 experts answer questions.
    http://social.technet.microsoft.com/Forums/windows/en-US/home?category=w8itpro&filter=alltypes&sort=lastpostdesc
    Thank you for your understanding.
    Regards,
    Blair Deng
    Blair Deng
    TechNet Community Support

  • How can I keep a listbox on top of a string control?

    I would like to keep the listbox "on top" or "in front" of the string control.  Whenever I click in the string control, though, the listbox moves behind it.  I have set the order from the menu, but that seems to get overridden.
    Attachments:
    String-Listbox.vi ‏13 KB

    LOL
    That was just to pull the wool over somebody's eyes...
    Check the control editor of the string you will know the truth
    (Anyway thanks for the stars )
    Message Edited by Vsh on 04-08-2008 07:54 AM

  • How to keep figures at the top of the page.

    Hi there
    I have three figures which I have draw with Drawing tools.
    The first figure I want to keep always in the middle of my first page.
    Second figure I want to keep always on the top of my second page.
    Third figure I want to keep always on to of my third page.
    There position should not change even if I add few more paragraphs just before my first figure. How do I say OpenOfifice to keep the figure in place for me? I can do that in Latex. However, I am newbee in OpenOfifice .

    My previous post is regarding OpenOffice Writer

  • Putting my Seconf JFrame on Top of First ...

    hi
    my application has a main JFrame and once a button on that JFrame is clicked ... another JFRame is opened ...
    My problem is that i want my second JFrame on top of the first JFrame .. but what is happeining is that the seconf JFrame goes on the background .. I have to minimize the first JFrame and then the second JFrame becomes visible ..
    Plz help me out so that my second JFrame automatically comes on top of the first JFrame,

    But i m doind a lot of Database stuff retrieving values and updating DB from there in second JFrame ..
    n i have to use the JFrame as it has 6 buttons, 4 combos, 5 JTextFields,,,,,
    i have gone through the docs but did not find any property which will set THe second JFrame on top ..

  • Keeping the camera on top

    how do i keep the camera on top of other windows?

    This question might be better addressed in the iSight forum - iPhoto doesn't have the capability of capturing images via iSight (but would be cool if it did).
    You might want to take a look at:
    http://www.econtechnologies.com/site/Pages/ImageCaster/imgcast_overview.html
    See if that's what you're looking for.

  • Why does the wheel keep spinning at the top of my screen on my iphone 5

    Basically,
    I noted the past 2-3 days that my battery is dying really quick. It  dies after being charged all night within 25 minutes. I also noticed that the wheel keeps spinning at the top of my screen between the time and wifi symbol. Is there a connection?

    I think that it is turning the WiFi switch on in Settings (from "not connected" ) that starts the wheel.
    In normal circumstances the wheel stops when you have selected and connected to a network of your choice.

  • Can not access email addresses when they are a link. F/F goes nuts and "untitleed " keep flashing across the top of the screen.I have to get out of that page fast or manually shut down thwe computer.

    Can not access email addresses when they are a link. F/F goes nuts and "untitled " keep flashing across the top of the screen.I have to get out of that page fast or manually shut down the computer

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • Keeping a JWindow on top

    I know this has been asked before but none of the answers I have tried have been suitable as they either don't work or keep the focus.
    I have a JWindow that I am using as an indicator panel to show various states. This window needs to be on top of all windows all the time but should not grab the focus from whatever the user is using (they could be using my seperate Java app, or any number of native windows applications as well as interacting with the indicator panel).
    As far as I can tell this cannot be done and I should write something in VB. Am I right or can JDK 1.4.2_01 treat a window as if the always on top option had been ticked in winzip (for example).
    I know there is a JNI app out there, but I cannot get it to work as I require. It does not force the JWindow to the top.

    None seem to work like the Always on Top feature of programs like Winzip.
    Most assume you have a JWindow/JFrame that you are working with rather then the Windows OS.
    I don't know if other OS's don't have the on top feature, but it is a shame that they did not spoof something suitable.

  • I am trying to view pdfs but when i click on them lots and lots of tabs keep appearing at the top i've had 1000s,how can i stop this and how can i look at pdfs

    I received an email from my power supplier,in it I must click on bill to view,it downloads and asks if I want to open it with internet explorer or something else,so I click on firefox.All it does is keeps opening loads and loads of tabs across the top,I've tried to close them at the last count I had managed to close over 1000 tabs but still cannot see my bill.my wife had the same she tried to open pdfs and got the same problem.So how can we view without problems files we receive in emails etc,and how do I get rid off this tab multipling itself? Thanks

    hi thanks for that info,but I tried the first help email I received and that one did the trick.Tahanks again for your in put.

  • My start button and desk top menu keep relocating themselves to top, and sides, How do I get them back on the botom of the page and keep them there?

    When I initialize my start up, and my home page loads, my start button, short cut icons, and desk top menu will move from the bottom where I prefer them, to the top, or left and tight sides, which shortens my home page, or any site I go to. How do I lock them in to the bottom and keep them there. This has just started in the past 2 weeks.

    Drag the Taskbar with the Start button to the wanted position and right click that bar the lock it to prevent accidental moving it.

  • Keeps opening windows on top bar

    Firefox keeps opening window after window running them across the top gray bar. I cant click out of them they load so fast, have to logoff.

    See this: <br />
    [https://support.mozilla.com/en-US/kb/Firefox%20keeps%20opening%20many%20tabs%20or%20windows Firefox keeps opening many tabs or windows]

Maybe you are looking for

  • How can I play multiple albums from same artist in album order on iPhone 4?

    Just purchased an iPhone 4 from Verizon. When I select an Artist and then choose "All Songs", the only choice I am provided is to play the songs in alphabetic order. I would prefer to play them in the original album order. Is there a setting that can

  • Windows 7 64 Bit install on Imac 2010 Using Boot Camp PLease Help

    OK so I am trying to install my 64 bit windows 7 using bootcamp on my imac 2010 i just bought it today. I have created the partition and the computer restarted and went to windows 7 setup however it then told me it could not find any drivers for the

  • Can't access "accounts" in mail or calendar menu

    Hello ! I can't access "accounts" in Mail or Calendar app menu. The "syst pref" app stops working if I do . Any solution ? Thanks for answer.

  • Oracle 8i Client Setup - Windows 2000

    We have just installed Oracle 8i on a Windows NT server, and are using the standard LISTENER configuration. On the client side, we are trying to use Windows 2000. When the install process goes through the setup routine, it keeps wanting to use NAMES

  • Once a month Drop/Recreate Sequence

    Hello, I have very little experience with a stored procedure, but I'm working on learning. This is what I am trying to achieve: I have a sequence that I need reset once at the beginning of each month. I am using it as a monthly counter. I can code in