Is it possible to bypass keystroke to browser?

I have a page with java applet. I want users to be able to press F11 to maximize their browser. Unfortunately, when focus is on applet, F11 doesn't work (Java handles it and doesn't pass it to browser). Is there a way to make F11 work? Actually, I don't need any input from my keyboard in applet, so bypassing all keyboard input to browser will be fine too.
Thanks,
Victor

vitich wrote:
I have a page with java applet. I want users to be able to press F11 to maximize their browser. Unfortunately, when focus is on applet, F11 doesn't work (Java handles it and doesn't pass it to browser). Is there a way to make F11 work? Actually, I don't need any input from my keyboard in applet, so bypassing all keyboard input to browser will be fine too.This example takes the principle, +"If you can't beat 'em, join 'em!".+
Two notes:
1) If you had added Dukes stars to the thread, I might have noticed it when you first posted it.
2) If you appreciate this solution and wish to express your thanks, the best way to do it is to (log-in, ) add some Dukes to the thread, and assign them.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
Intercepts the F-11 (function key 11) to toggle 'full-screen' mode.
A trusted applet would appear without the 'Java Applet Window' banner.
public class FullScreenApplet extends JApplet implements KeyListener {
  JWindow fsw;
  boolean fullscreen = false;
  public void init(){
    JPanel p = new JPanel(new BorderLayout(4,4));
    // add the KeyListener to any focusable components..
    JTree tree = new JTree();
    tree.addKeyListener(this);
    p.add( new JScrollPane(tree), BorderLayout.WEST );
    JTextArea textArea = new JTextArea();
    textArea.addKeyListener(this);
    p.add( new JScrollPane(textArea), BorderLayout.CENTER );
    p.add( new JLabel("Message.."), BorderLayout.SOUTH );
    // make the panel focusable and also add the listener to it,
    // just in case there are no other focusable elements.
    p.setFocusable(true);
    p.addKeyListener(this);
    getContentPane().add(p);
  JWindow getFullScreenWindow() {
    if (fsw==null) {
      Container c = getContentPane();
      while (c.getParent()!=null) {
        c = c.getParent();
      Window w = (Window)c;
      fsw = new JWindow(w);
      fsw.setSize(
        Toolkit.getDefaultToolkit().getScreenSize());
    return fsw;
  public void toggleFullScreen() {
    JWindow w = getFullScreenWindow();
    if ( fullscreen ) {
      w.setVisible(false);
      Container c = w.getContentPane();
      this.setContentPane(c);
      this.validate();
      fullscreen = false;
    } else {
      Container c = this.getContentPane();
      w.setContentPane(c);
      w.validate();
      w.setVisible(true);
      fullscreen = true;
  public void keyReleased(KeyEvent ke) {}
  public void keyPressed(KeyEvent ke) {
    if (ke.getKeyCode()==KeyEvent.VK_F11) {
      toggleFullScreen();
      Component c = (Component)ke.getSource();
      c.requestFocus();
  public void keyTyped(KeyEvent ke) {}
}

Similar Messages

  • My kids use firefox on my computer. Is it possible to disable the private browsing feature so they can not go on and use it ?

    I want the computer to keep a history of all the site they have searched, but can not know for sure if they turn on/off the private browsing function. Is it possible to disable the private browsing function and put a lock / password on it ?
    Thanks,
    David

    Even if it was possible to remove or disable "Private Browsing" then that still won't make it impossible to delete private data like visited websites (history) or cache or cookies.<br />
    There are a lot of ways to clear such data, either via [[Clear Recent History]] or directly by deleting the History in the Library or sidebar.<br />
    Private Browsing makes it easier because all data is kept in memory and nothing is saved to disk, so nothing needs to be removed.<br />
    <br />
    If you want to see which sites have been visited then you should look at others means outside Firefox like a router or firewall with a password protected logging feature that can't be bypassed or a program like Wireshark.
    * http://www.wireshark.org/download.html
    * http://en.wikipedia.org/wiki/Wireshark
    See also:
    * http://kb.mozillazine.org/Parental_controls

  • Is there a way to trace an IPOD even if it is Jailbroken.... how is it possible to bypass the ICloud Lost feature in the device? third time my 64 gb iPod touch gets stolen.

    Is there a way to trace an IPOD even if it is Jailbroken.... how is it possible to bypass the ICloud Lost feature in the device? third time my 64 gb iPod touch gets stolen.

    If it is off or not connected to wi-fi, then you cannot track it.

  • Is it possible to bypass JAAS authentication and use Authorisation alone?

    I have to implement jsp level security (by checking roles) for my JSF application.
    Authentications in my appln are done by a different servers. I don't want to disturb that.
    I have to implement authorisation alone using JAAS.
    Is it possible to bypass JAAS authentication and use Authorisation alone?
    I am using custom login module( implements DatabaseLoginModule) for authorisation.
    Moreover, after logging in, when a user tries to access a secured jsp page, he should NOT be redirected to login page again. Rather the role checks should be done using existing user credentials stored somewhere. How to invoke the custom DataBaseLoginModule without taking user to login screen?
    Any help would be great.
    Thanks,
    Adhil.J

    I have to implement jsp level security (by checking roles) for my JSF application.
    Authentications in my appln are done by a different servers. I don't want to disturb that.
    I have to implement authorisation alone using JAAS.
    Is it possible to bypass JAAS authentication and use Authorisation alone?
    I am using custom login module( implements DatabaseLoginModule) for authorisation.
    Moreover, after logging in, when a user tries to access a secured jsp page, he should NOT be redirected to login page again. Rather the role checks should be done using existing user credentials stored somewhere. How to invoke the custom DataBaseLoginModule without taking user to login screen?
    Any help would be great.
    Thanks,
    Adhil.J

  • Is it possible to start a web browser from with xterm (X11)?

    Hello,
    Would it be possible to start a web browser from xterm? I am able to use for example, dbca or netca. But I want to know if I could start a web brower in my xterm. Thank you.

    Thank you. Firefox was not found on this redhat linux, I am guessing it was not installed. I did a find / -name firefox but not finding it. I don't think the SA installed GUI on this box. Is there a browser I can use even though GUI was not installed? That is why I am attempting to use xterm hoping to be able to access a brower in xterm. I am using Xming for xterm. Is there something in Xming I can use so I can access the Oracle Database Control Console? I can use firefox from my desktop but the port is block at the firewall and the SA would not open the port due to security reasons. Thank you.

  • Is it possible to bypass the Reports Launch Form

     

    The question is not if it is possible to bypass the Launch Form, but
    1. is it possible to pass parameters (arguments) to fill out the parameters from another form.
    2. Assuming the answer to Q1 is Yes, is it possible to automatically launch the report if all parameters has been filled in?
    +ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Is it possible to bypass authority check in standard program?

    Dear gurus,
    I met a problem, i am trying to build a costom program, which will call a sap standard function module, but the problem is:
    in the standard function module , there is a check against authorization object p_tcode, i dont want to give user this authorization in pfcg, so i want to bypass this check in the standard module , is that possible?
    I mean, in my program , before calling the sap fm, do something to trick the system that the curent user have the required authorization, after execute the fm , restore everything.
    is that possisible?
    thanks and best regards.
    netz

    Hi,
    What is the problem with giving them maintain authority for the transaction code that is being checked against ?
    Surely your program is allowing them to do the same functionality as the standard transaction or is there a lot more functional stuff you don't want them to have ?
    If it is an ESS function you are developing then surely they are accessing SAP via the portal and therefore cannot login to SAP directly and run the transaction anyway .....
    Kind regards
    Colin

  • Possible to bypass monitor profile when displaying image?

    After importing a large photo library into Aperture I noticed that when viewing images, they would  change color and in a little under a second the colors looked significantly less "colorful and rich" than before. Sounds "subjective" but it really is not.  There is definitely a transformation going on and the colors consistently become duller on every image viewed.  It is especially noticeable in a album of images taken in the fall using a circular polarizer where the colors looked really great to begin with and then extremely dull after the transformation.  I deleted all of the preview images and set aperture to not regenerate them.  Still, same issue occurred.  The issue occurs with both RAW and jpg images.
    In Canon Image Browser on the Mac colors look great.  It's easy to do an A to B comparison of the same file and see that it looks better in every case.
    But what I've discovered is that I can get the same "dulling" result to occur using Canon's Image Browser 6.x software just by setting one option.
    There is an option checkbox in Preferences that is disabled by default to "Adjust Image Colors Using A Monitor Profile."  Prior to setting that option, the colors looked great, just like they looked on the camera LCD, and they same as they look on my PC also using Canon Image Browser software and Irfan view.  The rich colors seen when not using monitor profile also match what I see in Safari, Chrome, and Internet Explorer browsers.
    In Canon Image Browser when I set the checkbox to "Adjust Image Colors Using A Monitor Profile" the colors become very muted.  They look identical to what I see in Aperture.  Also, I can get the same effect to occur on the PC version of Canon Image Browser.  Microsoft's "Windows Photo Viewer" seems to be monitor profile aware as it shows the same dull colors.  "Windows Photo Viewer" offers no option that I can find to improve the look of the color.  Maybe this is what you want if you're trying to print your images and have them match exactly what is seen on screen.
    I have found that with Photoshop CS5 I can export a jpg to tiff which strips out the color space information and then voila the image "pops" when I bring it into aperture and looks the way it does in Canon Image Browser without using monitor profile.  In fact you can really then compare within Aperture how big the difference is between the two, and the only thing I did was resave the image to a new file format without doing anything else in photoshop.  It's not feasible to resave evertthing as tiff though.
    So my main question is, is there a way within Aperture to bypass the monitor profile so I can see the images with the same colors as they are rendered in the majority of the other tools I use.

    I've done some additional testing on a jpeg image.
    Test 1:
    Canon Image Browser:  "Preferences/Adjust Image Colors Using a Monitor Profile" is unhecked
    Photoshop CS5: "View/Proof Setup" is set to "Monitor RGB"
    Aperture: "Onscreen Proofing" enabled and set to "Generic RGB"  Additionally I've tried every other color profile available
    Result: The colors look identically rich on Photoshop and Canon Image Browser.  Aperture is the only tool I can't get to align with the rich colors.
    Test 2
    Canon Image Browser:  "Preferences/Adjust Image Colors Using a Monitor Profile" is checked.  Restart the software to apply change.
    Photoshop CS5: "View/Proof Setup" is set to "Internet standard sRGB"
    Aperture: "Onscreen Proofing" enabled and set to "sRGB"
    Result:  The colors match on all 3 tools.  The color are very noticeably less rich than in Test 1.
    I went ahead and previewed the image in the browsers on the Mac.  Chrome and Firefox showed the color the same as Photoshop and Canon Image Browser did in Test 1  which looks better in my opinion.
    For Safari color looks the same as Test 2.
    Also Apple Preview looks the same as Test 2 no matter which soft proofing setting is applied.
    I believe Adobe and Canon have the correct behavior and show either richer or duller colors depending on which "proofing" mode they are in.  Only aperture so far cannot be made to do the richer colors.

  • Is it possible to bypass stages defined in Concurrent Request Set

    Hi,
    I have a concurrent request stages where there are multiple stages defined(corresponds same concurrent program with different parameter values) and this request is called from backend.
    The way the stages are presently defined is on success,error & warning it will go to the next stage (e.g stage1 -> stage 2 -> stage3).
    Now I have a requirement where based upon some condition, I would receive parameter values for stages. E.g I would received parameter for stage 1 to run and stage 3 to run and no parameter for stage2. In this case what I want is in the request set, stage 1 program will run and then stage 3 program will run bypassing the stage2 program as no parameter value received for stage 2 program.
    Will there be any change required in the way the the link stages are defined or if there is any other way to accomplish the same.
    Ultimate aim is that all the required stages(1,2,3......and so on w) will be defined but based upon the parameter value availability, corresponding stages will run like 1 then 3 then 5 and request set should complete.
    I am assuming that its possible so I a trying for some workaround within PLSQL itself. Appreciate if any one can throw some light on this if clearing only the link stages could be a solution.
    Regards,
    Ad

    What version of the DB are you running?
    Here is a PL/SQL example: http://www.oracle-base.com/articles/misc/xml-over-http.php
    You could also do it in Java: http://www.oracle.com/technetwork/developer-tools/jdev/dbcalloutws-howto-084195.html
    HTH,
    --Johnnie                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Is it possible to bypass Sun ONE's memory requirement?

    Dose anyone know how to bypass the memory requirement of Sun ONE Application Server at installation time?
    We have to install Sun ONE on to some of the laptops (for mobility) but some of these laptops have a maximum memory configuration of 192MB, in which the Sun ONE App Server requires 256.
    The platforms we are using are Windows 2000 Server and Windows 2000 Professional. We are thinking of possible patches or modifying the config files to bypass this requirement.

    Could you describe what exactly seems to be the problem?
    While installer is checking for available amount of memory on Windows platform, it should show warning screen but still let you proceed with product installation.

  • Is it possible to bypass an index?

    Hi, not sure if the following is possible or not....
    I need to bypass an index on a table. I have created a view and have been told that via hints i may be able bypass an index .
    I have no knowledge of 'hints'. Could anyone please give some advice on whether this is possible or not and give an outline of how to set these up (or put me in the right direction)
    Many thanks

    882839 wrote:
    Hi, not sure if the following is possible or not....
    I need to bypass an index on a table. I have created a view and have been told that via hints i may be able bypass an index .
    I have no knowledge of 'hints'. Could anyone please give some advice on whether this is possible or not and give an outline of how to set these up (or put me in the right direction)
    Many thanksYou haven't told us much so just a quick reply for can we bypass an index , it can be done via NO_INDEX hint .
    Aman....

  • Is It Possible to Change The Default Browser to Open Links in Reader?

    Hi,
    Does anybody know if it's possible to change the browser that opens links in Adobe Reader? Currently, as I click on a link Internet Explorer starts up by default. Can I change it to another browser?
    Thanks

    Not Adobe Reader related but I'd like to add the following:
    To set firefox as default browser
    Firefox: Tools - Options - Advanced - General (tab) - System Defaults - click Check Now (button) and click Yes when prompted.

  • Is it possible to interact with the browser progress controls ?

    I�m programming an Applet and I want to interact with the browser transfer controls, like the animated Icon and the bottom progress bar...
    Is it possible ??

    No. Only thing it can touch is the status bar.

  • Possible to expand photo/music browser?

    I'm working to bring photos into my movie project but find myself opening iPhoto and pulling straight from there into iMovie because the media browser panel is too small. Anyone know of a way to resize it?

    This is not currently possible: PhotoStream can only work within the primary iCloud account on any one user account on a Mac. Shared PhotoStreams are promised when iOS6 is released:
    http://www.apple.com/icloud/coming-soon/

  • Is it possible to hide the Event Browser in FCPX

    This would be super helpful when using scopes and color grading! Anyone know how to do this, or if it's possible?
    eric

    More Apple stupidity.
    What possible, rational, sane reason is there for not being able to hide the Event Browser?
    I can't even begin to express the idiocy of this.
    Apple software usability foolishness goes from strength to strength.
    Unbelievable.
    Just... unbelievable.
    /sigh
    Hah... only just realised that I already posted in this thread just over a year ago!
    What's going on with this Apple usability nonsense?
    I surmise that Apple are in fact Aliens. I really cannot think of another explanation for why they deny sensible software interaction.

Maybe you are looking for

  • Item/Drill Report Performance hinderance

    I am having a problem with report performance. I have a report that I have to have 5 drop down menus on top of the report. It seems the more drop down menus I add, the slower the response time when the report is actually navigated. One of the drop do

  • WLS 6.1 SP4: bug in ExecuteThread's contextClassLoader behavior?

    Platform: WebLogic Server 6.1 SP4, JDK 1.3.1_06, Windows When creating a new thread from a serlvet with a current thread of type "weblogic.kernel.ExecuteThread", the contextClassLoader of the new thread is set incorrectly. The contextClassLoader of t

  • What is the best way to transfer libraries from Aperture?

    Hi, Apologies for what must be an increasingly common question. I've searched the forum but all I could get were returns from early 2013 and previous. I am asking this question because the offered tool on this site has an appalling rating after 37 re

  • Problems going through a Linux gateway

    Greetings, I am using a Linux box at home to drive my DSL connection, and share it with all other machines (using Netfilter's built-in NAT abilities). It's an Ubuntu Dapper running kernel 2.6.15. My Windows box has no problem at all and can access an

  • Pics in trash?

    Hi everyone. I havent seen this issue posted after I strolled through most of the posts. I am using iPhoto (yes I'm a newbie and proud of it!) and I have a bunch of folders set up on th right pane. I have the photos I want in the folder I want. But f