Applet in new window

Hi all! Any of you know if there's a way to open an applet separately from a html window. I mean, open it as if it was an application (not using webStart).
Thank you!

You can open a frame, and have a very small applet on your html page. Perhaps you can set the applet size to (0, 0).
You could also open a new browser window that is not resizable and contains your applet in its full size and without the toolbar buttons and menubar. I think you need javascript to configure the new browser window like that.

Similar Messages

  • Please help with Applet in New Window?

    I am trying to write a html page which opens appet into new window.
    Tha'ts what i want. My applet has user/passwd authentication and then
    makes a socket connection. However i am facing tow problems(kind of one):
    1. If i close my applet browser window, socket connection is still active.
    (if i use appletviewer.. every thing works perferctly)
    2. on my web page, if i click again to open my appet window it refreshes my applet window again ....if it 's already opened. in other words, my applet does not really gets reloaded from my webserver..
    Please advise..
    Here is my HTML Code
    index.html
    <HEAD>
    <SCRIPT TYPE="text/javascript">
    <!--
    function popup(mylink, windowname)
    if (! window.focus)return true;
    var href;
    if (typeof(mylink) == 'string')
       href=mylink;
    else
       href=mylink.href;
    window.open(href, windowname, 'width=840,height=630,scrollbars=yes');
    return false;
    </SCRIPT>
    <A
       HREF="NewJApplet.html"
       onClick="return popup(this, 'notes')">Loads Streamer </A>
    </HEAD>NewJApplet.html
    <HTML>
    <BODY>
    <P>
    <APPLET  code="NewJApplet.class" width=800 height=560></APPLET>
    </P>
    <HR WIDTH="100%"><FONT SIZE=-1>
    </BODY>
    </HTML>

    You can open a frame, and have a very small applet on your html page. Perhaps you can set the applet size to (0, 0).
    You could also open a new browser window that is not resizable and contains your applet in its full size and without the toolbar buttons and menubar. I think you need javascript to configure the new browser window like that.

  • HELP! Controlling size and position of new window from applet

    I am totally new to using java. I am making use of a java applet for showing images. Each image may be clicked to open a higher res image in a new window. I want to be able to control the size and position of the new window. The windows need to be different sizes for each image - a couple may be the same size but some will be different.
    I found this:
    <<<<Yes it can (but not after the window has been created). JavaScript can open documents in a new (or an old) window with eg.
    <script>
    window.open("document.url", "window_name", "toolbar=no,statusbar=no,scrollbars=no,resizable=no,width=600,height=400");
    </script>
    The new window will have only the title bar and the frame around the document, nothing else.
    That can be made a function and called from an applet through liveconnect.>>>>
    from a search re window sizes but I need more explicit help with how to put it into my document! This looks like it might work with the exception it doesn't give a position but I could even live without that.
    Am I correct in assuming tha this script goes in the <head> of the document? If I have several different sizes, I would need to have several different but similar scripts but with different window names?
    Do I substitute the actual url where it says "document.url"? What about "window_name"? And what does liveconnect mean?
    Here is a sample from the applet coding I have in place:
    \\\\\<param name="image2" value="barneygargles_th.jpg">
    <param name="link2" value="http://www.barneygargles.com">
    <param name="statusmsg2" value="Barney Gargles Family Restaurant">\\\\\
    Please, I hope someone can help with this! This is driving me crazy!
    Thanks to anyone who can walk me through this one!
    Linda

    I have been searching the internet for more information and it appears that others have been faced with this problem.
    I have found a couple of possible answers but I am not sure how to do them.
    http://forums.macosxhints.com/showthread.php?t=64059
    http://forums.macrumors.com/archive/index.php/t-119915.html
    The first link seems more relavent but I am not sure how to do what it is talking about.
    Can anyone help?
    I have recently moved from a PC to MAC and this problem is really getting in the way of my work.

  • Opening new window from applet does not pass session

    I have an applet which has a function where it opens some jsp pages in a new window. The jsp page checks for a session variable to very the user is logged in and some other variables that are required on the page. My problem is in IE 6/7 the new window does not have the session variables from the parent window.
    I'm using
    context.showDocument(new URL(host + "?" + params.toString()), "_blank");
    to open the new windows.
    How can I open a jsp age in a new window while carrying over the session variables from the parent/applet window?
    Thanks for any assistance!

    We experienced the same thing with Java 6 Update 18 on IE 7. As for IE 8, if the user is a local administrator, then the session is kept in the new browser windows opened via showDocument. Check out the following URL for related discussions:
    http://stackoverflow.com/questions/1324181/ie8-losing-session-cookies-in-popup-windows
    Our clients are forced to roll back to Java 6 Update 17. Firefox works fine.

  • Applet with javascript opening new window

    I have an applet with a url link in it that opens a new browser window:
    getAppletContext().showDocument(new URL("javascript:window.open('http://www.javasoft.com', 'JavaSoft',''")));
    It opens a new window perfectly, but leaves the page in the main window and displays "[object]" on the screen. Is there any way to stop it from leavin the page in the main window?

    try this
    getAppletContext().showDocument(new URL("javascript:window.open('http://www.javasoft.com', 'JavaSoft','';window.close()")), "_blank");
    Let me know if you have found a solution since.
    Hope this helps.
    R

  • Launching same applet in new browser window

    Hi,
    I launched applet in netscape browser and it worked fine. Then I opened a new window and pointed same url as first browser, applet main window is launched but because of shared static variables the two applets conflict each other.
    we understood that applet from same code base loads in to same name space so the static information is shared between different applet instances.
    one solution might be creating our own ClassLoader- browsers SecurityManager dont allow outside application to create ClassLoader unless user sets security policy to allow.(I cant ask user to do that and I cant afford signed applet solution)
    basically I am looking for a solution like
    1. launching new instance of netscape which dont share its JVM with other netscape windows(I dont know how to make it)
    2. triggering netscape to use different class loaders(its own classloader) every time.(How??)
    3. heard mayscript html flag helps(I have no idea)
    4. any better solution
    Your help is very importent so any suggestion or solution is welcome
    thanks in advance
    rana pratap nama

    the most simple idea is to avoid the usage of static variable when the values of theese variables will be private to each applet instance...
    much more simple than create a new class loader...
    remember: a static variable should be used only when you want the same value shared by all instances of a class... otherwise use the private ones...

  • New window manager (with prototype!) [wmii-like] --- looking for help

    I have a prototype for a new window manager in the style of wmii. It is called
    cakewm. I currently have a prototype version implemented in pygame, and would
    like help moving this to use X---making it a real window manager.
    Disclaimer: I have a very limited knowledge of X11 and window manager
    development. The most I've done is add a couple new features to wmfs.
    To get the code
    > git clone git://github.com/saikobee/cakewm.git
    Then run main.py. cakewm depends on pygame.
    Upon running, press Alt-Enter to fullscreen cakewm and intercept keybinds, or
    Alt-Space to just intercept keybinds.  Press Alt-Esc to quit. The window
    manager related keybinds are listed in the file binds.conf.
    Config note: <WSCA-x> means Windows-Shift-Control-Alt-x
    Implementation note: pypixel.py is a large and mostly useless dependency. I
    forked a library I made previously rather than coding straight in pygame.
    cakewm's goals are to be similar to wmii, but with more functionality, easier
    configurability, and saner defaults.
    - cakewm is fully functional using the keyboard. Mouse support can come later.
    - cakewm provides 9 workspaces per monitor.
    - cakewm manages each workspace as a group of columns. Each column is like a
      wmii default split, except each window can have other windows "stacked" on
      top of or behind it.
    - cakewm manages column sizes (and window sizes within columns) using a
      master/slave paradigm, with the ability to adjust the size ratios.
    - cakewm's configuration file is simple key=val pairs, with the ability to
      include other files like in C.
    - cakewm has a slightly larger emphasis on window decorations (adjustable
      size---even in tiled mode) and themes (nothing bloated, like pixmaps or
      gradients---it's all still simple colors).
    - cakewm will have proper support for international text (Japanese text in
      window titles or the wmii status bar generally render as boxes) through the
      use of a more advanced text library such as Pango.
    Please let me know if you have comments, questions, or concerns. If you are
    interested in helping, get in touch with me. If you know somewhere better to
    look for volunteers, please let me know.

    m4co wrote:
    Wow is this forum active. Makes me feel welcome here
    The thing about wireless, I actually like command line, but there are a few things that are worth having a applet or something.
    And wireless is one of those. I guess I can take a look on wicd.
    It's a good idea to have compiz as the WM actually. Would it be lightweight to have it like that?
    Is there anybody here that uses compiz as a WM?
    For the xfce4-panel, is it possible to get transparency on it? That's probably the only thing holding me back with xfce4-panel.
    If "able to run compiz" wasn't a requisite, what other WM would you suggest for my "profile" ?
    I would like to hear other users opinions who like to customize everything on a WM.
    I recommend running Compiz by itself. There is a good wiki page on it in the Arch wiki. Some apps you'll want to go with it are:
    LXAppearance --change GTK/icon theme
    Feh or Nitrogen --Set Wallpaper
    Xfce4-panel --The lightest one that works with Compiz properly
    Or, if you don't want a panel: stalonetray
    Compiz-deskmenu --For a customizable right-click main menu
    Gmrun --Run dialog (Alt+F2 in most DEs)
    And this helped me a lot.
    Thank you all for the replies. I appreciate.
    Xfce4-panel can have transparency.  The only problem is that everything become transparent: text, icons, everything.
    I use Compiz as a standalone WM and it is much lighter than DE+Compiz. My Compiz setup uses about 30MB(out of 1GB) more RAM than my Openbox setup (which are both the same except for the WM).

  • Looking for a new window manager

    Hello all!
    My first post here and I'd like to share a little discussion.
    So I have this idea of "perfect desktop" in my mind:
    - It must be lightweight
    - Very clean.
    - No menus
    - Highly customizable.
    - Able to run compiz
    I've come to Enlightenment 17 on Fedora and that was close to perfection.
    I just loved, everything I wanted. Nice animations, clean, and man you can change absolutely everything there.
    But then I started getting frustrated with bugs since it's not stable and I had to move on.
    Then I came to XFCE4.6. Great, fairly customizable. Fewer bugs that you can live with it.
    And I could run compiz. I just love using compiz here and got used to it. I use compiz to be more productive with the desktops , shortcuts and just a few animations.
    But I few like trying something new. XFCE is just here for a lack of a better choice. It doesn't feel it fits me.
    So maybe someone could recommend a new Window Manager for me?
    I am interested in OpenBox and FluxBox.
    I'm astonished with some OpenBox screenshots where you don't have anything, just the right-click menu and some apps running.
    That's exactly what I would want.
    But then, things like NetworkManager. How do you connect to internet (wireless)? On the command line?
    What if I'd need to scan for open wireless networks..everything would have to be on command line?
    Laptop Battery widget that warns when it's almost over, etc..
    Are those WM really that raw or am I missing a few hidden goodies?
    Would LXDE be a better choice?

    m4co wrote:
    Wow is this forum active. Makes me feel welcome here
    The thing about wireless, I actually like command line, but there are a few things that are worth having a applet or something.
    And wireless is one of those. I guess I can take a look on wicd.
    It's a good idea to have compiz as the WM actually. Would it be lightweight to have it like that?
    Is there anybody here that uses compiz as a WM?
    For the xfce4-panel, is it possible to get transparency on it? That's probably the only thing holding me back with xfce4-panel.
    If "able to run compiz" wasn't a requisite, what other WM would you suggest for my "profile" ?
    I would like to hear other users opinions who like to customize everything on a WM.
    I recommend running Compiz by itself. There is a good wiki page on it in the Arch wiki. Some apps you'll want to go with it are:
    LXAppearance --change GTK/icon theme
    Feh or Nitrogen --Set Wallpaper
    Xfce4-panel --The lightest one that works with Compiz properly
    Or, if you don't want a panel: stalonetray
    Compiz-deskmenu --For a customizable right-click main menu
    Gmrun --Run dialog (Alt+F2 in most DEs)
    And this helped me a lot.
    Thank you all for the replies. I appreciate.
    Xfce4-panel can have transparency.  The only problem is that everything become transparent: text, icons, everything.
    I use Compiz as a standalone WM and it is much lighter than DE+Compiz. My Compiz setup uses about 30MB(out of 1GB) more RAM than my Openbox setup (which are both the same except for the WM).

  • Openning an URL in a new window when the page is submitted, from a pl/sql p

    Hi,
    What I want to do is a procedure (called by an apex process) that opens a new window browser at the URL defined in the procedure.
    I have tried with the following procedure:
    create or replace procedure reportes (par1 NUMBER, par2 NUMBER)
    BEGIN
    htp.htmlOpen;
    htp.headOpen;
    htp.title('Reporte SAF - .: SINERWARE - 2008:.');
    htp.headClose;
    htp.bodyOpen;
    htp.area('0,0,200,400', 'rect', '200.31.86.173/Orden_pedido.jsp?centro_costo='||par1||'&orden_inicial='||par2, NULL, '_blank');
    htp.bodyClose;
    htp.htmlClose;
    END;
    Thanks for any comment.
    Alejandro T.

    I assume your are writting an applet. You can do this by adding a little Javascript to your HTML page. Add this to the HEAD section:
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
      function openURL(url) {
        window.open( url, "", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes" );
      } //end openURL
    // End -->
    </SCRIPT>Execute the Javascript using showDocument():
    String url = "http://somewhere.com/" ;
    try {
      getAppletContext().showDocument((new URL("javascript:openURL(\"" + url +"\")"));
    } catch (MalformedURLException me) {
    } //end try

  • Open a JSP from an ScreenFlow in a new window

    Hi all, a have a proccess in wich I get user input with a Screen Flow. The ScreenFlow has some JSP to collect user data (User Information, Economical data, Provider, ....). Some of the fields in the JSP needs to be filled with information that is in a database. For example, the is a field "Provider" that needs to be search in a database. I want to open a JSP in a new window in order to show a list of provider (or whatever other data I need). This JSP in a new window would return the data in a specific field.
    Now, I have done this modelling in the ScreenFlow but if the JSP form has lot of field of that kind the proccess get very complex.
    There is any way to open a JSP in a new Window (from a presentation of a ScreenFlow) without loosing the JSP context? (i mean having the ability to access BPM methods and data).
    Thanks in advance.

    Do you want to open a jsp application in a frame when you click on the applet?If so, there is a programme in http://www.globalleafs.com -Java-Java Applets 's download section. Check it out.

  • Open URL, use POST method in new window

    From a Java program, how do we open a https connection, basically a secured site, in a new window and pass some parameters to the link, using POST method?

    Hi
    Is JavaProgram a Applet or Servlet?
    Opening a new window directly from server,probably not possible? From your question
    what I understand is, A html page is displayed
    and when u click on a link opens a new window.
    The parameters to the link should be posted using POST method, again
    it is not possible this can be done only by appending
    "?name1=value1&name2=value2..."to the link
    Vinay
    [email protected]

  • Applet detect new particeipent  but does not show  any output.

    hi,
    I have written one applet which uses AVReceive2 as inner class.
    This applet detects new particepent joined but does not take any action like showing or playing movie.
    I cant understand where I am wrong.

    Doublechecking, KAT ... is the Device Screen looking a bit like the following screenshot?
    Which particular Windows OS are you using? (XP, Vista or 7?)

  • Instintate new window help

    Hi,
    A have an array of buttons. When I click on the array of buttons how do I bring up a new window.I have the actionlistner set I know that works. I know you can do it in swing componants but i'd rather stay away from that now. I was attemting to use a frame but the frame doesn't close right. Also I cant get the actionlistner to listen to the button on the frame right. Does anyone know if there is a way i can have a button call a seperate applet so to say.
    Thanks
    Kevin

    Hi Kevin,
    Some general tips about event-handling:
    - Remember to check what button is being pressed in your ActionListener otherwise your ActionListener will end up doing the same action for all buttons where it is added.
    - When working with frames use the WindowListener to make sure that you handle the close, resize, minimize events.
    Hope that will help - otherwise you will have to show us some of the source code.

  • Firefox will not open a new window

    Have tried using Ctrl+N but no new window opens.
    Any website requesting a new window to open function fails.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    Your above posted system details show multiple Java Console extensions.<br />
    You can uninstall (remove) the Java Console extensions and disable the Java Quick Starter extension, you do not need them to run Java applets.
    See http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions
    Disable the Java Quick Starter extension: Tools -> Add-ons -> Extensions<br />
    Control Panel -> Java -> Advanced tab -> Miscellaneous -> Java Quick Starter (disable)
    See http://www.java.com/en/download/help/quickstarter.xml - What is Java Quick Starter (JQS)? What is the benefit of running JQS? - 6.0

  • New window in JApplet

    Hi everybody. I want to know how to do a multiple pages program.
    The idea is: having a page, with two buttons(a and b). When a press button a a new window (window a) appears on top of the old one. when I push button b, window b appears on top of the old one.
    What exactly I have to write in the button's action listener.
    Thanks.

    blackblack13 wrote:
    No. I want to have a single webpage, and in it multiple Jwindows.It is JWindow. Note the 2 upper case letters. It is important to get these things right, so people can be sure you are referring to a J2SE class, rather than some 3rd party class that they neither know about, nor provide support for.
    I want to create window A and page B.. What do you mean by 'create.. page B'? Applets cannot create web pages. I don't find your explanation clear at all.
    ..before the button's listener, and when I press the button(a or b), the created window(a or b) appears.As best I can figure from your explanations (that are about as clear as mud)..
    // creates a JWindow, providing the 'root' frame created by the JRE
    // for applets, as the owner..
    JWindow windowA = new JWindow( Frame.getFrames()[0] );
    // later, in the ActionListener
    windowA.setVisible(true);A couple of points. Opening a JWindow is probably not what you want to be doing here. If the user scrolls down the web page containing the applet, the JWindows will no longer be 'over' it. If the user minimises the web page, the JWindows will still be free floating on-screen. Potentially both those problems might be fixable (I have not thought much about it), but even if you can make them 'track' the applet, it seems a 'hack covering a bad design'.
    It seems that what the applet really needs, is to use a CardLayout, which would allow the JButtons to be one one card, while the contents of the two JWindows would be on the other two cards. Then you would simply flip between the cards as needed.

Maybe you are looking for

  • I am unable to see the screen on my iPhone. I want to transfer my pictures to my computer.

    I just recently dropped my iPhone and the screen has vertical blue lines. I want to transfer all my pictures to my PC, but every time I connect my phone to my laptop... I receive a message that says: "Tunes could not connect to iPhone because it is l

  • Is anyone having problems with their 'UK' iTunes?

    I'm having a problem with iTunes and this is a first, I've never had a problem like this before. I live in the U.K. and when I click to view the YouTube app I was able to view perfectly fine yesterday but today a pop-up appears saying 'This item is n

  • Looking for Table to CSS Converter

    I'm asking the Dreamweaver Community for HELP... I currently own CS3 of Dreamweaver and while there are some ways to convert tables to a css format manually. Is anyone using a software or a work-a-round to automate this process of converting TABLES t

  • TCD present in User Menu but...unable to execute ....

    Hi, 1. I have Z121XXXX TCD 2. This TCD is present in the User Menu ( How did it get there ??) 3. User attempts to execute ....unable to do so. 4. Msg " You are not authorized to execute this tansaction I did the following : 1. If this TCD is valid an

  • How can I determine if Spotlight indexing is running?

    I am having occasional severe slowdowns, during which the machine becomes extremely unresponsive. Attempts to switch to a different app can take minutes, even clicking in the menu bar can take more 30 seconds to bring up the menu. Most of the time th