AddMouseListener in fullscreen

Hi, I'm using the following 2 classes for displaying images in fullscreen mode and they work fine.
But I need to display the images and also make them disappear when the user clicks on them. I'm trying to do it detecting the position of the mouse clicks and if those clicks are "inside" the image margins It disappears.
First I need to capture the mouse clicks but it's not working: I changed the FullScreen1 to implement MouseListener:
public class FullScreen1 extends JFrame implements MouseListener
and added the following events to FullScreen1:
public void mouseClicked( MouseEvent event )
     System.out.println("Hola, mundo");
System.out.println( "Clicked at [" + event.getX() +
", " + event.getY() + "]" );
public void mouseExited( MouseEvent event )
System.out.println( "Mouse outside window" );
public void mouseEntered( MouseEvent event )
//JOptionPane.showMessageDialog( null, "Mouse in window" );
     System.out.println("Mouse in window");
public void mouseReleased( MouseEvent event )
System.out.println( "Released at [" + event.getX() +
", " + event.getY() + "]" );
public void mousePressed( MouseEvent event )
System.out.println( "Pressed at [" + event.getX() +
", " + event.getY() + "]" );
but I can't add the addMouseListener and can't figure out how to do it
import java.awt.*;
import java.awt.font.FontRenderContext;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
import javax.swing.JFrame;
import java.awt.event.*;
public class FullScreen1 extends JFrame {
private static final GraphicsEnvironment gEnvironment = GraphicsEnvironment
.getLocalGraphicsEnvironment();
private static final GraphicsDevice gDevice = gEnvironment
.getDefaultScreenDevice();
private static final GraphicsConfiguration gConfiguration = gDevice
.getDefaultConfiguration();
private int nBuffers = 1;
private final Color defaultBackground = Color.WHITE;
private final Color defaultForeground = Color.BLACK;
private final Font defaultFont = new Font("SansSerif", Font.BOLD, 36);
public FullScreen1() {
super(gConfiguration);
try {
setUndecorated(true);
setIgnoreRepaint(true);
setResizable(false);
setFont(defaultFont);
setBackground(defaultBackground);
setForeground(defaultForeground);
gDevice.setFullScreenWindow(this);
setNBuffers(nBuffers);
finally {}
public void setNBuffers(int n) {
try {
createBufferStrategy(n);
nBuffers = n;
} catch (IllegalArgumentException e) {
System.err.println(
"Exception in FullScreen.setNBuffers(): "
+"requested number of Buffers is illegal - falling back to default");
createBufferStrategy(nBuffers);
try{
Thread.sleep(200);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
public int getNBuffers() {
return nBuffers;
public void updateScreen() {
if (getBufferStrategy().contentsLost())
setNBuffers(nBuffers);
getBufferStrategy().show();
public void displayImage(BufferedImage bi) {
if( bi!=null){
double x = (getWidth() - bi.getWidth()) / 2;
double y = (getHeight() - bi.getHeight()) / 2;
displayImage((int) x, (int) y, bi);
public void displayImage(int x, int y, BufferedImage bi) {
Graphics2D g = (Graphics2D)getBufferStrategy().getDrawGraphics();
try {
if(g!=null && bi!=null)
g.drawImage(bi, x, y, null);
finally {
g.dispose();
public void displayText(String text) {
Graphics2D g = (Graphics2D)getBufferStrategy().getDrawGraphics();
if( g!=null && text!= null){
Font font = getFont();
g.setFont(font);
FontRenderContext context = g.getFontRenderContext();
Rectangle2D bounds = font.getStringBounds(text, context);
double x = (getWidth() - bounds.getWidth()) / 2;
double y = (getHeight() - bounds.getHeight()) / 2;
double ascent = -bounds.getY();
double baseY = y + ascent;
displayText((int) x, (int) baseY, text);
public void displayText(int x, int y, String text) {
Graphics2D g = (Graphics2D)getBufferStrategy().getDrawGraphics();
try {
if(g!=null && text!=null){
g.setFont(getFont());
g.setColor(getForeground());
g.drawString(text, x, y);
finally {
g.dispose();
public void blankScreen() {
Graphics2D g = (Graphics2D)getBufferStrategy().getDrawGraphics();
try {
if(g!=null){
g.setColor(getBackground());
g.fillRect(0, 0, getWidth(), getHeight());
finally {
g.dispose();
public void hideCursor() {
Cursor noCursor = null;
Toolkit tk = Toolkit.getDefaultToolkit();
Dimension d = tk.getBestCursorSize(1,1);
if((d.width|d.height)!=0)
noCursor = tk.createCustomCursor(
gConfiguration.createCompatibleImage(d.width, d.height),
new Point(0, 0), "noCursor");
setCursor(noCursor);
public void showCursor() {
setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
public void closeScreen() {
gDevice.setFullScreenWindow(null);
dispose();
public void mouseClicked( MouseEvent event )
     System.out.println("Heloooooooo");
System.out.println( "Clicked at [" + event.getX() +
", " + event.getY() + "]" );
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import java.awt.event.MouseEvent;
public class HelloPsychophysicist {
public static void main(String[] args) {
FullScreen1 fs = new FullScreen1();
fs.setNBuffers(2);
fs.addMouseListener(this);
try {
fs.displayText("Helloo trial 2500 ms!!!");
fs.updateScreen();
Thread.sleep(2500);
fs.blankScreen();
BufferedImage bi1 = ImageIO.read(new File("cintu.jpg"));
fs.displayImage(bi1);
fs.updateScreen();
//fs.hideCursor();
Thread.sleep(2000);
fs.blankScreen();
          BufferedImage im1 = ImageIO.read(new File("cintu.jpg"));
fs.displayImage(200,130,im1);     
BufferedImage im2 = ImageIO.read(new File("sombri.jpg"));
fs.displayImage(700,130,im2);
          BufferedImage im3 = ImageIO.read(new File("tala.jpg"));
fs.displayImage(200,400,im3);
          BufferedImage im4 = ImageIO.read(new File("tasa.jpg"));
fs.displayImage(700,500,im4);
fs.updateScreen();
Thread.sleep(3000);
          fs.blankScreen();
} catch (IOException e) {
System.err.println("File not found");
e.printStackTrace();
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
finally {
fs.closeScreen();
}

2 things.
If you want to get help post your code using the code button (select the code with the mouse and the click on the code button.
I have had a similar problem just last week and at the end I added a jlabel with the same bounds of the image. So you add your mouse listener to the jlabel and you don't have to worry about calculation mouse positions.
It is simple and it works.

Similar Messages

  • Problem with fullscreen

    Hi,
    I am creating a JFrame with a JPanel. On clicking the Panel, I am invoking the fullscreen window. Now, I would like to know who is having the focus the JPanel, the JFrame or the JWindow.
    I am calling JPanel.requestFocus(), but the keyPressed or keyReleased of JPanel is not being called on pressing the key in the fullscreen window. Neither it comes in the keypressed or keyReleased event of JWindow.
    How to make the keyPressed or keyReleased event of JPanel or JWindow get called ?
    Also when i run this application in solaris, two windows are shown, one for the fullscreen window and one for the main window. But in Windows only one window is shown in fullscreen mode.
    import javax.swing.JFrame;
    import java.awt.BorderLayout;
    import javax.swing.JPanel;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JButton;
    import javax.swing.JWindow;
    class ExFrame
    extends JFrame implements KeyListener {
    JWindow window;
    BorderLayout borderLayout1 = new BorderLayout();
    JPanel jPanel1 = new JPanel();
    JButton jButton1 = new JButton();
    JPanel jPanel2 = new JPanel();
    public ExFrame() {
    this.getContentPane().setLayout(borderLayout1);
    jPanel2.addKeyListener(new KeyAdapter() {
    public void keyPressed(KeyEvent ke) {
    System.out.println("jPanel2 Pressed");
    public void keyReleased(KeyEvent ke) {
    System.out.println("Released");
    jPanel2.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    if (window == null || !window.isVisible()) {
    jPanel2.requestFocus();
    if (window == null) {
    window = new JWindow(ExFrame.this);
    Dimension size = Toolkit.getDefaultToolkit().
    getScreenSize();
    window.setSize(size);
    window.addKeyListener(new KeyAdapter() {
    public void keyPressed(KeyEvent ke) {
    System.out.println("Pressed");
    if (ke.getKeyCode() == KeyEvent.VK_ESCAPE) {
    ExFrame.this.getContentPane().add(
    jPanel2,
    java.awt.BorderLayout.CENTER);
    public void keyReleased(KeyEvent ke) {
    System.out.println("Released");
    remove(jPanel2);
    window.getContentPane().add(jPanel2);
    window.setVisible(true);
    window.toFront();
    jPanel2.requestFocus();
    window.requestFocusInWindow();
    addKeyListener(this);
    jPanel2.setBackground(Color.blue);
    this.getContentPane().add(jPanel2, java.awt.BorderLayout.CENTER);
    public void keyReleased(KeyEvent ke) {
    System.out.println("Frame Released");
    public void keyPressed(KeyEvent ke) {
    System.out.println("Frame Pressed");
    if (ke.getKeyCode() == KeyEvent.VK_ESCAPE) {
    System.exit(0);
    public void keyTyped(KeyEvent ke) {
    System.out.println("Frame Typed");
    public static void main(String args[]) {
    ExFrame frame = new ExFrame();
    frame.pack();
    frame.setVisible(true);
    }

    yeah, its part of a workaround for switching between windowed and fullscreen.
    It isn't necessary to return to the original displayMode, simply setFullscreenWindow(null) will return you to the original desktops resolution.
    I'll warn you now, don't even attempt switching fullscreen<->windowed mode multiple times, it will crash. It should be fixed in 1.5 though.

  • Problem responding to events in fullscreen mode

    I made a fullscreen game and I'm trying to get it to respond to the mouse or keyboard input. The problem is it only responds a few second after I press the button. Does anyone know how I could speed up the response? All my code is posted below.
    EDIT: I did some experimenting and it looks like device.isDisplayChangeSupported() returns false and the resolution never gets changed to 800x600 (I haden't noticed this before since I was flooding the whole screen with black). I also took a look at the resolutions I could manually set the monitor to and it only shows 1280x800 and 1024x768. This is under Ubuntu Linux. Even though I haven't run this program under my Windows installation, I'm sure I can change to 800x600 resolution there since I've done it manually and through other programs. Does anybody know any solutions to this? I will probably try running the program under Windows and see what happens.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.BufferStrategy;
    public class LostHaven implements KeyListener, MouseListener
         private static DisplayMode[] BEST_DISPLAY_MODES = new DisplayMode[] {
            new DisplayMode(800, 600, 32, 0),
            new DisplayMode(800, 600, 16, 0),
            new DisplayMode(800, 600, 8, 0)
        Frame mainFrame;
        boolean done;
        boolean pressed;
        public LostHaven(GraphicsDevice device)
            try
                GraphicsConfiguration gc = device.getDefaultConfiguration();
                mainFrame = new Frame(gc);
                mainFrame.setUndecorated(true);
                mainFrame.setIgnoreRepaint(true);
                device.setFullScreenWindow(mainFrame);
                if (device.isDisplayChangeSupported())
                    chooseBestDisplayMode(device);
                mainFrame.addMouseListener(this);
                mainFrame.addKeyListener(this);
                mainFrame.createBufferStrategy(2);
                BufferStrategy bufferStrategy = mainFrame.getBufferStrategy();
                done = false;
                pressed = false;
                while (!done)
                    Graphics g = bufferStrategy.getDrawGraphics();
                    render(g);
                    g.dispose();
                    bufferStrategy.show();
            catch (Exception e)
                e.printStackTrace();
            finally
                device.setFullScreenWindow(null);
        private void render(Graphics g)
             Rectangle bounds = mainFrame.getBounds();
             g.setColor(Color.black);
            g.fillRect(0,0,bounds.width, bounds.height);
            g.setColor(Color.red);
            g.fillRect(bounds.width*1/4, bounds.height*1/4, bounds.width*2/4, bounds.height*2/4);
            if(pressed)
                 g.drawString("mouse pressed", 0, 15);
        private static DisplayMode getBestDisplayMode(GraphicsDevice device)
            for (int x = 0; x < BEST_DISPLAY_MODES.length; x++)
                DisplayMode[] modes = device.getDisplayModes();
                for (int i = 0; i < modes.length; i++)
                    if (modes.getWidth() == BEST_DISPLAY_MODES[x].getWidth()
    && modes[i].getHeight() == BEST_DISPLAY_MODES[x].getHeight()
    && modes[i].getBitDepth() == BEST_DISPLAY_MODES[x].getBitDepth()
    return BEST_DISPLAY_MODES[x];
    return null;
    public static void chooseBestDisplayMode(GraphicsDevice device)
    DisplayMode best = getBestDisplayMode(device);
    if (best != null)
    device.setDisplayMode(best);
         public void mousePressed(MouseEvent e)
         pressed = true;
         public void mouseReleased(MouseEvent e)
         public void mouseEntered(MouseEvent e)
         public void mouseExited(MouseEvent e)
         public void mouseClicked(MouseEvent e)
         public void keyTyped(KeyEvent e)
         public void keyPressed(KeyEvent e)
              if(e.getKeyCode() == KeyEvent.VK_ESCAPE)
                   done = true;
         public void keyReleased(KeyEvent e)
         public static void main(String[] args)
              try
    GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
    GraphicsDevice device = env.getDefaultScreenDevice();
    LostHaven gameWindow = new LostHaven(device);
              catch (Exception e)
                   e.printStackTrace();
    System.exit(0);
    Message was edited by:
    Japheth

    Do you get this behavior when it's not fullscreen (and the rest is the same)?

  • Fullscreen Exclusive Mode

    Hi
    I am currently playing around with the new fullscreen api that is included with SDK1.4. But I have a problem. I would like to have images and Swing components showing at the same time and controling when to paint this. I am working with the code from the tutorial http://java.sun.com/docs/books/tutorial/extra/fullscreen/index.html . So far I can display the image but no Swing component. Can someone help me?
    * This test takes a number up to 13 as an argument (assumes 2 by
    * default) and creates a multiple buffer strategy with the number of
    * buffers given.  This application enters full-screen mode, if available,
    * and flips back and forth between each buffer (each signified by a different
    * color).
    import java.awt.*;
    import java.awt.image.BufferStrategy;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.*;
    public class MultiBufferTest {
        private static DisplayMode[] BEST_DISPLAY_MODES = new DisplayMode[] {
            new DisplayMode(800, 600, 32, 0),
        Frame mainFrame;
        boolean remove = false;
        public MultiBufferTest(int numBuffers, GraphicsDevice device) {
            try {
                Image image = (new LoadImage("mypic.jpg")).getImage();
                GraphicsConfiguration gc = device.getDefaultConfiguration();
                mainFrame = new Frame(gc);
                mainFrame.setUndecorated(true);
                mainFrame.setIgnoreRepaint(true);
                device.setFullScreenWindow(mainFrame);
                if (device.isDisplayChangeSupported()) {
                    chooseBestDisplayMode(device);
                Rectangle bounds = mainFrame.getBounds();
                mainFrame.createBufferStrategy(2);
                mainFrame.addMouseMotionListener(new MA());
                mainFrame.addMouseListener(new MA());
                JLabel label = new JLabel("hi");
                label.setLocation(new Point(200, 200));
                label.setForeground(new Color(122,23,52));
                mainFrame.add(label);
                BufferStrategy bufferStrategy = mainFrame.getBufferStrategy();
                int x, y;
                x=0;
                y=0;
                boolean done = false;
                while (!done){
                   Graphics g = bufferStrategy.getDrawGraphics();
                   if (!bufferStrategy.contentsLost()) {
                      g.setColor(Color.black);
                      g.fillRect(0,0,bounds.width, bounds.height);
                      mainFrame.paintComponents(g);
                      if (!remove)
                         g.drawImage(image, x, y, 60, 60, mainFrame);
                      bufferStrategy.show();
                      g.dispose();
            } catch (Exception e) {
                e.printStackTrace();
            } finally {
                device.setFullScreenWindow(null);
        public void removeImage(){
           remove = true;
        private static DisplayMode getBestDisplayMode(GraphicsDevice device) {
            for (int x = 0; x < BEST_DISPLAY_MODES.length; x++) {
                DisplayMode[] modes = device.getDisplayModes();
                for (int i = 0; i < modes.length; i++) {
                    if (modes.getWidth() == BEST_DISPLAY_MODES[x].getWidth()
    && modes[i].getHeight() == BEST_DISPLAY_MODES[x].getHeight()
    && modes[i].getBitDepth() == BEST_DISPLAY_MODES[x].getBitDepth()
    return BEST_DISPLAY_MODES[x];
    return null;
    public static void chooseBestDisplayMode(GraphicsDevice device) {
    DisplayMode best = getBestDisplayMode(device);
    if (best != null) {
    device.setDisplayMode(best);
    public static void main(String[] args) {
    try {
    int numBuffers = 2;
    if (args != null && args.length > 0) {
    numBuffers = Integer.parseInt(args[0]);
    if (numBuffers < 2 || numBuffers > COLORS.length) {
    System.err.println("Must specify between 2 and "
    + COLORS.length + " buffers");
    System.exit(1);
    GraphicsEnvironment env = GraphicsEnvironment.
    getLocalGraphicsEnvironment();
    GraphicsDevice device = env.getDefaultScreenDevice();
    MultiBufferTest test = new MultiBufferTest(numBuffers, device);
    } catch (Exception e) {
    e.printStackTrace();
    System.exit(0);
    public class MA extends MouseInputAdapter{
              public void mouseClicked(MouseEvent e){
              public void mouseEntered(MouseEvent e){
              public void mouseExited(MouseEvent e){
              public void mousePressed(MouseEvent e){
    if (e.getX() < 60 && e.getY() < 60)
    removeImage();
              public void mouseReleased(MouseEvent e){
              public void mouseMoved(MouseEvent e) {
              public void mouseDragged(MouseEvent e) {
    //CLASS LOADIMAGE.JAVA
    import java.awt.*;
    class LoadImage extends Component{
    Image image;
    public LoadImage( String path ){
    Toolkit toolkit = getToolkit();
    MediaTracker tracker = new MediaTracker(this);
    image = toolkit.getImage(path);
    tracker.addImage(image,0);
    try {
    tracker.waitForID(0);
    catch(InterruptedException e){
    System.out.println("fel vid inl�sning av bilder");
    public Image getImage(){
    return image;

    If anyone is interested here is a code that solves the problem.
    * This test takes a number up to 13 as an argument (assumes 2 by
    * default) and creates a multiple buffer strategy with the number of
    * buffers given.  This application enters full-screen mode, if available,
    * and flips back and forth between each buffer (each signified by a different
    * color).
    import java.awt.*;
    import java.awt.image.BufferStrategy;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.*;
    public class MultiBufferTest {
        int x, y;
        private static DisplayMode[] BEST_DISPLAY_MODES = new DisplayMode[] {
            new DisplayMode(800, 600, 32, 0),
            new DisplayMode(800, 600, 16, 0),
        Frame mainFrame;
        boolean remove = false;
        public MultiBufferTest(int numBuffers, GraphicsDevice device) {
            try {
                Image image = (new LoadImage("backmask.jpg")).getImage();
                GraphicsConfiguration gc = device.getDefaultConfiguration();
                mainFrame = new Frame(gc);
                mainFrame.setUndecorated(true);
                mainFrame.setIgnoreRepaint(true);
                device.setFullScreenWindow(mainFrame);
                if (device.isDisplayChangeSupported())
                    chooseBestDisplayMode(device);
                Rectangle bounds = mainFrame.getBounds();
                mainFrame.createBufferStrategy(2);
                mainFrame.addMouseMotionListener(new MA());
                mainFrame.addMouseListener(new MA());
                JButton button = new JButton("ASDFJKSADFKASDFJK");
                button.setBounds(200, 200, 200, 200);
                mainFrame.add(button);
                BufferStrategy bufferStrategy = mainFrame.getBufferStrategy();
                x=0;
                y=0;
                boolean done = false;
                while (!done){
                   Graphics g = bufferStrategy.getDrawGraphics();
                   if (!bufferStrategy.contentsLost()) {
                      g.setColor(Color.black);
                      g.fillRect(0,0,bounds.width, bounds.height);
                      g.drawImage(image, x, y, 60, 60, mainFrame);
                      mainFrame.paint(g);
                      bufferStrategy.show();
                      g.dispose();                
            } catch (Exception e) {
                e.printStackTrace();
            } finally {
                device.setFullScreenWindow(null);
        public void removeImage(){
           remove = true;
        private static DisplayMode getBestDisplayMode(GraphicsDevice device) {
            for (int x = 0; x < BEST_DISPLAY_MODES.length; x++) {
                DisplayMode[] modes = device.getDisplayModes();
                for (int i = 0; i < modes.length; i++) {
                    if (modes.getWidth() == BEST_DISPLAY_MODES[x].getWidth()
    && modes[i].getHeight() == BEST_DISPLAY_MODES[x].getHeight()
    && modes[i].getBitDepth() == BEST_DISPLAY_MODES[x].getBitDepth()
    return BEST_DISPLAY_MODES[x];
    return null;
    public static void chooseBestDisplayMode(GraphicsDevice device) {
    DisplayMode best = getBestDisplayMode(device);
    if (best != null) {
    device.setDisplayMode(best);
    public static void main(String[] args) {
    try {
    GraphicsEnvironment env = GraphicsEnvironment.
    getLocalGraphicsEnvironment();
    GraphicsDevice device = env.getDefaultScreenDevice();
    MultiBufferTest test = new MultiBufferTest(2, device);
    } catch (Exception e) {
    e.printStackTrace();
    System.exit(0);
    public class MA extends MouseInputAdapter{
              public void mouseClicked(MouseEvent e){
    x = e.getX();
    y = e.getY();
              public void mouseEntered(MouseEvent e){
              public void mouseExited(MouseEvent e){
              public void mousePressed(MouseEvent e){
    x = e.getX();
    y = e.getY();
              public void mouseReleased(MouseEvent e){
    x = e.getX();
    y = e.getY();
              public void mouseMoved(MouseEvent e) {
    x = e.getX();
    y = e.getY();
              public void mouseDragged(MouseEvent e) {
    x = e.getX();
    y = e.getY();

  • What´s wrong? I can´t export this movie or even play it in fullscreen

    I´ve had imovie 09 with the latest updates for a while now. And everything has worked fine. But today when i was playing around and making a "movie"/presentation with only text effects, sound and pic´s it would´nt show it in full screen. When i hit the fullscreen mode it just went black. And when i try to export it, everything in that area is grey. I can´t choose anything ....not even itunes or mobilme...nothing. Have i missed something?
    Is this normal? Or am i doing something wrong.

    Just out of curiosity, try playing the song in a different program . . . maybe Windows Media Player to see if it works. I wonder if it's corrupted....

  • How to I get iPhoto to stop opening in fullscreen mode?

    Every time I open iPhoto, it opens in fullscreen mode. It's as if there is a setting that has been set for it to do it(though I've checked the settings and there's no such thing). I usually exit fullscreen mode in the usual way and it cooperates, but then sure enough, the next time I open it up, it's in fullscreen mode again. Additionally, perhaps it is linked to this problem, everytime I open iPhoto, it tells me that "iPhoto has detected inconsistencies in your[my] library" and that I should "click Repair to avoid any potential problems". I've clicked repair numerous times but it still gives me the same message the next time I start the program. I've tried deleting the iPhoto plist file and that has not helped either.
    Another side note that may be similar is that Terminal always opens in fullscreen just like iPhoto.

    Alright, I fixed the problem!
    A more in depth description of the process, some credit for its origins, why it works, and how else you can use it can be found here:
    https://discussions.apple.com/message/17269094#17269094
    But basically, you do the following:
    1. Navigate to "~/Library/Saved Application State/"
    2. Find "com.apple.iPhoto.savedState"
    3. Move it to the Trash
    4. Launch iPhoto
    Also, to solve the issue involving "Repairing" the Library, I had to navigate to the file "iPhoto library" (in ~/Users/dro8654/Pictures) and edit its "Sharing & Permissions" preferences such that only MY user was allowed to "Read & Write"
    This discussion was what helped me with this:
    https://discussions.apple.com/message/17261957#17261957

  • FLASH PLAYER 10.3.183.7  DOES NOT WORK IN FULLSCREEN

    FAO:  Mr CHRIS CAMPBELL
    Hello Chris
    You're probably getting this from all angles but the newest update to Flash Player  (10.3.183.7)   JUST DOES NOT WORK PROPERLY.
    I keep my browsers up to date and as of today (5 Sept 2011)  Flash  WORKS in "small pane in browser" mode (for example, in Youtube)  BUT GOES BLANK AS SOON AS FULLSCREENED.
    Note that overlay captions and the pause / play graphics DO all work - it is only the video decompression that doesn't - leave screen blank and black.
    This is BOTH in FireFox 7.0  and in latest Google Chrome:  I have carefully uninstalled & replaced Flash form the links you posted here and IT STILL DOES NOT WORK in fullscreen.
    You really should NOT release new version of auto-updating code like this that are not properly tested:  this has mucked up video viewing for millions of people needlessly.
    Is it because of the new accelerator support ?   who knows.    This is a mid-life Toshiba Satellite Pro   (we don't all go out and buy new PCs every ten weeks like you developers do)  and it has a P4 and standard onboard Intel 82852 graphics: perfectly fine up to last week.     But it has 64MB of graphics space and I see that 10.3.183.7  now "requires"   128MB ?       You just cannot make assumptions like that :  I bet there are  50 million plus PCs out there with 64MB (or less) VGA RAM.  
    Adobe is a lovely product,  but this is a complete and utter  bal*ls-up  as we in the UK call it:      please excuse my anglo-saxon directness.    Sort it out, please.
    Mike,  London,  exasperated
     

    Hi Chris
    Thanks for your rapid feedback.
    YES  -  you are right  - turning off hardware accelerate FIXES it on this machine.   
    (For anyone else trying this,  note that if your PC is busy you may not be able to get the Right-click menu to work while the video is displaying,  so PAUSE it first,  then right click in the pane,   choose "Settings",  and UNtick the hardware acceleration tickbox.  Then unpause, and bob's your uncle.)
    Interesting:  Chris -  I also notice that   Not All Videos Do it     -  some are fine (adverts seem to be,  on youtube)  -  but this (below) is an example of the one which will not fullscreen with the HW acceleration on  (nice watching, too  :-)
    http://www.youtube.com/watch?v=lb3VWZj_I6g&list=PL0F01AFE18471E7B8&index=1
    NB  Might it have anything to do with the transcoding YouTube are supposedly doing,  over to VP8 ?     I wonder if they change the content of the stream,  when you choose fullscreen perhaps ?   And so perhaps confusing the HW accelerator which may not know VP8 ?
    Thanks again for rapid response.   GOOD LUCK ALL
    Mike H
    London

  • Framerate problems playing HD in fullscreen.

    I am watching an HD video purchased from the iTunes store. The video plays perfectly (both within iTunes or with Quicktime Player directly) at actual-size. However, if I put the video in Fullscreen mode in either player, the video becomes choppy, especially in high action scenes. It seems almost like it is dropping frames.
    The odd thing is that the video is 1280x720 and my screen resolution is 1280x1024, so bringing it to Fullscreen is not resizing the video at all.
    I have looked into the video and advanced options in Quicktime and experimented with the DirectX settings as well disabling full-screen controls, but to no avail. I was hoping for a frame-drop control, an option to sync frame-rate to my monitor, or anything else other media players often have, but no such options exist for Quicktime.
    I would like to play the video in Fullscreen to remove the bright colored Quicktime frame. Is there a known fix for this?

    If you weren't playing a DRM-encumbered movie, I would say to use an external player such as VLC.
    So, you played with the Advanced DirectX settings -- did you try just disabling "Enable Direct3D Video acceleration"?
    You could also check if your video card drivers are up-to-date.

  • Problem with Wine, NVidia and fullscreen games

    Hi,
    I'm writing about a problem i recently noticed with wine, nvidia gpu and fullscreen 2d games.Basically the problem is as follows - i am running arch with the latest kernel and nvidia drivers on Thinkpad T61 with NVidia Quadro NVS 140M. I have a problem with old 2d games like Red Alert 2, Baldur's Gate, Icewind Dale, Diablo 2, Heroes 3. All of these games do not support the native 1440x900 resolution of my screen and all of them work fine in window mode but crash if fullscreen is selected. I managed to get some of them working by making them work at higher resolutions. For example although Red Alert 2 does not support 1440x900, it can be easily made to work at that resolution and after i applied the necessary settings it worked. The same was with Heroes 3 - by default it does not support 1440x900 and it used to work only i window mode but there is a HD mod which allows it to run in higher resolutions and after i applied it it worked perfectly in fullscreen. I haven't thested Baldur's Gate and Icewind Dale but i think it will work there too.
    The problem is that i cannot use this approach to all games - for example i must run Diablo 2 and Starcraft in their original resolutions. I read somewhere that the problem is that wine can only change between the resolutions described in the xorg.conf file and if doesn't find the necessary resolution the game will crash or will only take the portion of the screen that is its resolution - for example when i play Starcraft rather than stretching it to the whole screen it simply takes 640x480 pixels of my screen and the game is displayed in the top left corner of the screen leaving everything else black.
    I didn't have this problem before - it is something new though i'm not sure since when do i have the problem because i rarely play games. As for the idea that the problem may be related to the resolutions defined in the Xorg.conf file, my xorg.conf is automatically generated by the nvidia installer and there are no resolutions defined there.

    brebs wrote:
    Try nvidia 304.48
    I remember that issue, with the 302 series.
    I have Nvidia 304.48 installed and the problem still exists (it also happens with Catalyst). This didn't occur with 295.59 using the same version of Wine.
    https://bbs.archlinux.org/viewtopic.php?id=55145
    https://bbs.archlinux.org/viewtopic.php?id=147073

  • Problem with Projector and Fullscreen

    Hi,
    Can anyone confirm a problem with fullscreen in the latest
    player 9,0,115,0:
    When I use getURL to launch a browser window, or make an exec
    call with
    fscommand, the standalone projector jumps out of fullscreen.
    quote:
    fscommand("fullscreen", true);
    and
    quote:
    on(release){
    getURL("
    http://www.mylink.com",
    "_blank");
    I'm using CS3.
    Any ideas?

    I dont know really but i read here
    http://www.adobe.com/devnet/flash/articles/first_as3_application.html
    they the getURL() function was removed from CS3 and the new is
    URLRequest(); Try with this one i get it from the upper link
    import flash.net.*;
    var url = "www.google.com";
    var request:URLRequest = new URLRequest(url);
    try {
    navigateToURL(request);
    catch (e:Error) {
    // Handle error...
    }

  • Problem with FPS in fullscreen.

    Hello, for several days, regardless of the quality of the source, cut me(not enough FPS) after switching to fullscreen. The same thing happens when I right-click menu, expanding flash menu in the window. Clearing your cache, use different cleaners, install any version of flash / java, codecs, does not solve the problem. Is it 240P or 1080p loses fps very much, the same thing with Internet broadcasts. Everything happens regardless of which browser I use. WinXP SP3. I also tried to update the drivers from the graphics and disable hardware acceleration in flash. Nothing ... Help!
    Sorry for my english.

    Hi,
    Updating the video card driver and turning off the hardware acceleration are two things that should help. It is better if you get your Driver update from the manufacturer's site.
    You could try viewing in a lower resolution and see if that helps.
    If you need further help, post back your Operating System, 32bit or 64bit and browsers & versions used.
    What version of Flash Player are you using? Check here: http://kb2.adobe.com/cps/155/tn_15507.html 
    Thanks,
    eidnolb

  • FullScreen script doesn't work all the time

    I am having a problem with this script. Its weird, sometimes I type in a number like 3333 and it will go to the google link like this:
    http://www.google.com/maps?saddr=3333&daddr=40.000000,80.000000
    Other times I type in the same number and it doesn't work.
    Anyone see any problems with the code?
    echo "<script language=\"Javascript\">
    <!--
    var str = \"left=0,screenX=0,top=0,screenY=0\";
    if (window.screen){
    var ah = screen.availHeight - 30;
    var aw = screen.availWidth - 10;
    str += \",height=\" + ah;
    str += \",innerHeight=\" + ah;
    str += \",width=\" + aw;
    str += \",innerWidth=\" + aw;
    } else {
    str += \",resizable\";
    function call_full() {
    var saddr=document.getElementById('saddr').value;
    var daddr=document.getElementById('daddr').value;
    fullScreen('http://maps.google.com/maps?saddr='+saddr+'&daddr='+daddr+'')
    //-->
    </script>";
    echo '<form name="addr_form" id="addr_form">
    <b>Get Directions</b>
    <br>
    <font size=2>Your address: (street, town, state)</font><br>
    <input type="text" size=40 maxlength=40 name="saddr" id="saddr" value="" />
    <input type="button" type="submit" onClick="call_full()" value="Go">
    <input type="hidden" name="daddr" value="40.00000, -80.00000"/>
    </form>';Message was edited by:
    [email protected]

    The main problem I see is that it's written in Javascript, and this is a forum about Java, not about Javascript.
    I can tell you that in Java there's a method available to URL-encode URL parameter values. For all I know there's one in Javascript too. There should be, in my opinion, but not knowing the language very well I couldn't tell you if there really is one.

  • Is there a quick way to open a resident video in fullscreen mode?

    Short and not-so-simple, I have a client who requires the following:
    Starting from the home screen, he wants the shortest number of taps to open a video (resident on the device) in fullscreen mode. Ideally, I wanted to have a "shortcut" on his home screen that opens a directory on his iPad that contains videos. Unfortunately, iOS does not allow for this. In fact, finding resident files on the HDD at all doesn't seem so easy.
    For now, I have him going to his camera, switching to video, and then opening the Video Roll to access videos I've downloaded to his iPad from various sources like email attachments or download links. This is definitely not a long-term solution.
    To clarify, the client needs to be able to bring up one of several videos near-instantly, with no buffering and in many cases without an active internet connection. He wants his iPad to be a video gallery, with "a two-click process." Someone (such as myself) would be syncing/uploading the videos as they are created, updated, or replaced, so getting videos onto his iPad easily and remotely (if possible) is also a desire (Dropbox or iTunes?).
    Can someone please give me some advice? I am an idiot with iOS, as I spend all of my time on Android devices.

    Is this a cpvc or a cptx file, when you talk about 'video'?

  • Photoshop CS4 Menu toolbar display bug and fullscreen slowness...

    http://img384.imageshack.us/img384/8202/menutoolsbugee3.gif
    I'm having a display bug with the menu toolbar in Photoshop CS4 Extended. Notice the area of tools is gone and replaced by random pixels? This happens whenever I enter the fullscreen mode that hides the interface. And when I exit that fullscreen mode, that bug appears and doesn't fix itself until I restart Photoshop. Can this be fixed?
    Image view rotation also happens much slower than normal in that fullscreen mode when interface is hidden. But performs normally after I bring back the interface.
    I'm on WinXP, Athlon 64 4000+, 3GB ram, GeForce 6800 GT video card [driver 169.21]. I'm not sure if this is a video driver bug or CS4 bug.

    Yeah, Dave, I can understand how that can happen. I've seen that sort of weirdness when I've seriously overtaxed my hardware.
    <br />
    <br />Had way too much running all at once yesterday, switched over to Firefox, and clicking on folders in the Bookmarks bar, I had 4 bookmark/folder menus dropped simultaneously.
    <br />
    <br />I managed to grab a screenshot with 2 of them showing, but man! You shoulda seen it with 4!
    <br />
    <br />I ESC'ed out, quit GarageBand (had a song project of several hundred MB going) and all was fixed.
    <br />
    <br />
    <a href="http://www.pixentral.com/show.php?picture=1oV3eLGID1UYwZ4L5Y0n44ThA0Ab0" /></a>
    <img alt="Picture hosted by Pixentral" src="http://www.pixentral.com/hosted/1oV3eLGID1UYwZ4L5Y0n44ThA0Ab0_thumb.png" border="0" />

  • Open iView in new window in fullscreen

    Hi,
    I would like to open an (URL) iView in new window and maximize it size to expand on all the screen. Something like: width=100% height=100%.
    Unfortunatly, the window feature properties does not allow this, it only allows passing width and height in pixels.
    Does anyone has a solution for this issue? How to open iView in a new window in full-screen.
    Thanks in advance,
    Aviad

    Hi Aviad,
    You could set "fullscreen=yes" (without quotes) for the property called "Window Features" (technical name: "com.sapportals.portal.navigation.WinFeatures") on the navigation element in question (iView or, if existent, surrounding page). Take care, this opens the window without frame and toolbar (closable by ALT-F4).
    To get a 100% screen (with toolbar, frame etc), you have to calculate the clients resolution before, using JS for example. So you would need to build a workaround, for example an iView with no output but opening a new window with a certain NavURL as target.
    Hope it helps
    Detlev

Maybe you are looking for

  • Creation of PM Notification based on UD Code

    Hi Seniors I am new to PM/QM module and facing an issue while configuring UD code follow-up actions. My requirement is once the Valution Code is set to "Rejected" in UD code then follow-up action should be generated and in this follow up action, coup

  • Idoc and Bdoc

    Hi Gurus, 1) I would like to know about Idoc and Bdoc,     what I feel is  Idoc triggers in ECC and Bdoc triggers in CRM 2) How difference does displaying a customer in CRM (txn : BP) and ECC (txn: XD03) makes? Thanks and regards, Manu

  • HT201334 Apple configurator profile question

    How can you set the priority of profiles to install? Also, if one profile has a setting that overides another, which takes precidence?

  • Where do i go on my ipad 3 to connect to airplay on my apple tv?

    where do i go on my ipad 3 to connect to airplay on my apple tv?

  • Simple question RE: Image Resizing in CS5

    I have an action that resizes and adjusts levels in images. I load up an image and i'll play the action. The problem is, every time the image is resized , the window goes tiny. Like this So each time I play the action and then want to continue editin