How to use the set full screen mode ?

hai...i' a newbie ..i hav one question ...how to use the set full screen mode for my application..
i found.
public void setfullscreenmode (boolean mode)
but when try in my application it error and other
canvas.setfullscreenmode(true);
actually i don't know where i should put this code

i also found the coding it use like
setFullScreenMode (true);
but when i apply it ..it error because cannot resolve the symbol.
my question is which one i should use; declare the
public void setFullScreenMode (boolean mode);
first or use
setFullScreenMode (true) ;
or other way ..what i need to do to use setFullScreenMode

Similar Messages

  • Set full screen mode

    Hi everyone
    It may not seem a JMF problem but i am hoping for some help.
    I am just trying to implment full screen on jmf player panel, i tried but the nothing is shown but a black screen
    the following is the code of whole program:-
    import java.awt.*;
    import java.awt.Rectangle;
    import java.awt.Dimension;
    import java.awt.event.*;
    import javax.media.*;
    import javax.media.Player;
    public class MyPlayer extends Frame implements ControllerListener
         private Player player;
         private Panel panel;
         private String [] urls;
         int currentsong = 0;
         MediaLocator ml;
         int flag = 0;
         int videoWidth = 320, videoHeight = 200, controlHeight = 30;
         Dimension size;
         Component visual, control;
         private Dimension dimFrameSizeBeforeFullScreen = null;
         private Window windowFullScreen = null;
         public static void main(String[] args)
              String[] files = { "Khalid_Diana.mpg", "11.mpg", "Taha.mpg" };
              MyPlayer Medialist = new MyPlayer(files );
              Medialist.nextMedia(0);
         public void setFullScreen() {
              System.out.println("Full Screen");
              Dimension dimScreen;
              Dimension dimPrefSize = new Dimension(500,300);
              Rectangle rectVideo;
              panel = new Panel();
              panel.setLayout(new BorderLayout());
              //if (panel == null)
              //     return;
              dimScreen = Toolkit.getDefaultToolkit().getScreenSize();
              System.out.println("Screen Size: " + dimScreen.toString());
              if (windowFullScreen == null)
                   windowFullScreen = new Window(this);
                   windowFullScreen.setLayout(null);
                   windowFullScreen.setBackground(Color.black);
              windowFullScreen.setBounds(0, 0, dimScreen.width, dimScreen.height);
              rectVideo = new Rectangle(0, 0, dimScreen.width, dimScreen.height);
              if ((float)dimPrefSize.width / dimPrefSize.height >= (float)dimScreen.width / dimScreen.height){
                   rectVideo.height = (dimPrefSize.height * dimScreen.width) / dimPrefSize.width;
                   rectVideo.y = (dimScreen.height - rectVideo.height) / 2;
              else{
                   rectVideo.width = (dimPrefSize.width * dimScreen.height) / dimPrefSize.height;
                   rectVideo.x = (dimScreen.width - rectVideo.width) / 2;
              Toolkit.getDefaultToolkit().sync();
              windowFullScreen.add(panel);
              panel.setBounds(rectVideo);
              windowFullScreen.setVisible(true);
              windowFullScreen.validate();
         public MyPlayer(String[] files)
              addWindowListener(new WindowAdapter()
                   public void windowClosing(WindowEvent e)
                        if (player!=null) player.close();
                        System.exit(0);
                   try{
                        Thread.sleep(2000);
                        setFullScreen();
                   }catch (Exception e){
              urls = files;
              //setTitle("Player");
              //panel.setBackground(Color.BLACK);
              //add(panel);
              //setLocation(300,250);
              //setSize(500, 500);
              //setResizable(false);
              //setVisible(true);
         public void nextMedia(){ nextMedia(0);}
         public void nextMedia(int index)
              try
                   ml = new MediaLocator("file:D:/Temp/" + urls[index]);
                   player = Manager.createPlayer(ml);
                   player.addControllerListener(this);
                   player.start();
              catch(Exception x) { x.printStackTrace(); }
         public void controllerUpdate(ControllerEvent ce)
              if (ce instanceof RealizeCompleteEvent)
                   visual=player.getVisualComponent();
                   if (visual !=null)
                      // size=visual.getPreferredSize();
                        //videoWidth=size.width;
                        //videoHeight=size.height;
                        panel.add( "Center", visual);
                   else {
                      // do nothing
                   if ((control=player.getControlPanelComponent())!=null)
                        //controlHeight=control.getPreferredSize().height;
                        //panel.add("South", control);
                   //setSize(videoWidth+10, videoHeight+controlHeight+30);
                   //validate();
                   //repaint();
              else if(ce instanceof EndOfMediaEvent) {
                   player.close();
                   player.deallocate();
                   panel.removeAll();
                   nextMedia(currentsong=(currentsong+1)% urls.length);
              //System.out.println("\n " + urls[currentsong] + " : " + ce.toString() );
              //else if ( ce instanceof FormatChangeEvent){}
    }Thanks in advance

    My problem is solved !
    Following is code of how to set full screen mode:-
    mport java.awt.*;
    //import java.awt.Rectangle;
    import java.awt.Dimension;
    import java.awt.event.*;
    import javax.media.*;
    import javax.media.Player;
    import javax.swing.*;
    public class MyPlayer extends JFrame implements ControllerListener
         private Player player;
         private Panel panel;
         private String [] urls;
         int currentsong = 0;
         MediaLocator ml;
         int flag = 0;
         int videoWidth = 1024, videoHeight = 768, controlHeight = 30;
         Dimension size;
         Component visual, control;
         private Dimension dimFrameSizeBeforeFullScreen = null;
         private Window windowFullScreen = null;
         Container content = getContentPane();
         public static void main(String[] args)
              String[] files = { "Khalid_Diana.mpg", "11.mpg", "Taha.mpg" };
              MyPlayer Medialist = new MyPlayer(files );
              Medialist.nextMedia(0);
         public MyPlayer(String[] files)
              setBackground(Color.BLACK);
              setUndecorated(true);
              Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
              System.out.println("\n\n The Screen DIM: " + screenSize);
              content.setBounds(0, 0, screenSize.width, screenSize.height);
              addWindowListener(new WindowAdapter()
                   public void windowClosing(WindowEvent e)
                        if (player!=null) player.close();
                        System.exit(0);
              urls = files;
              setTitle("Player");
              panel = new Panel();
              panel.setLayout(new BorderLayout());
              panel.setBackground(Color.BLACK);
              add(panel);
              pack();
              //setLocation(300,250);
              setSize(1024, 768);
              //setResizable(false);
              setVisible(true);
         public void nextMedia(){ nextMedia(0);}
         public void nextMedia(int index)
              try
                   ml = new MediaLocator("file:D:/Temp/" + urls[index]);
                   player = Manager.createPlayer(ml);
                   player.addControllerListener(this);
                   player.start();
              catch(Exception x) { x.printStackTrace(); }
         public void controllerUpdate(ControllerEvent ce)
              if (ce instanceof RealizeCompleteEvent)
                   visual=player.getVisualComponent();
                   if (visual !=null)
                       size=visual.getPreferredSize();
                        videoWidth = size.width;
                        videoHeight = size.height;
                        panel.add(visual, BorderLayout.CENTER);
                   else {
                      // do nothing
                   if ((control=player.getControlPanelComponent())!=null)
                        //controlHeight=control.getPreferredSize().height;
                        //panel.add("South", control);
                   validate();
                   repaint();
              else if(ce instanceof EndOfMediaEvent) {
                   player.close();
                   player.deallocate();
                   panel.removeAll();
                   nextMedia(currentsong=(currentsong+1)% urls.length);
              //System.out.println("\n " + urls[currentsong] + " : " + ce.toString() );
              //else if ( ce instanceof FormatChangeEvent){}
    }By the way thanks Stefan for being supportive

  • How to get out of full screen mode in Firefox 4?

    How to get out of "Full Screen Mode" in firefox 4 ?

    Pressing the F11 should do it.

  • How to use the set functions effectively in webi ,please let me know with detail

    how to use the set functions effectively in webi ,please let me know with detail

    Hi,
    we use use set functions on heirarchies with aggregate functions mostly .
    If you include member_set, Min returns the minimum value of the aggregated data for all members in the member set.
    Member_set can include multiple sets separated by semicolons (;).
    The list of member sets must be enclosed in {}.
    If the member set expression does not specify a precise member or node, the hierarchy referenced must be present in the table, then the member set expression references the current member in the hierarchy in the table. If the hierarchy is not in the table, the function returns the message #MULTIVALUE.
    Eg .
    1)     Ancestor
    =Sum([YTD] ; {Ancestor([Test Hierarchy];2)})
    2)     IsLeaf
    =[Test Hierarchy].IsLeaf
    You can use this function when you want to show your Measure only at lower level .
    3)     .Depth
    =[Test Hierarchy].Depth
    This is also function used with hierarchy to find Level of Members .
    Follow this link for PDF reference .
    Page 147
    https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&ved=0CDIQFjAB&url=https%3A%2F%2Fhelp.sap.com%2Fbusinessobject%2Fproduct_guides%2Fboexir4%2Fen%2Fxi4sp5_ffc_en.pdf&ei=nBAUU-iUM4WWrAeMuoCoDg&usg=AFQjCNHakXsEjd_yUk2y3lVdibf3PXpEOA&bvm=bv.61965928,d.bmk
    search on SCN this question was discussed before also one those links .
    http://scn.sap.com/thread/3183380
    Hope this will help you .

  • I forgot how to use the setting, move the mouse to the upper left corner and the windows become smaller for an overview?

    i forgot how to use the setting, move the mouse to the upper left corner and the windows become smaller for an overview?

    I'm not quite sure what you want - if you want an overview of all open windows, use the F key.. Otherwise please post back and be more specific.

  • How to Open File in Full-Screen Mode

    How do I set a Quicktime file to open in full-screen mode?
      Windows XP  

    New to QuickTime 7 Pro is the ability to apply "Presentation" to a file. You'll see the tab in the Movie Properties window.
    One option is to "Enter fullscreen mode when opened". Use Save As to create a new file (leaving your original untouched).
    The "Presentation" properties travel with the file and you can use the feature even in Web based media (if you use special html tags).
    http://homepage.mac.com/kkirkster/mycareerfuture/
    One of my pages that uses tags to call the QuickTime Player (even the free version found on most computers). These new files are now "Presented".

  • How to show dock in full screen mode

    Hello,
    I'm wondering how to get the dock to show up temporarily in full screen mode. When I place my cursor near the bottom of the screen in a full screen app, the dock doesn't pop up. Is this normal and if so, how do I switch between full screen apps without using gestures on the mouse? I'm really hoping that this is a bug.
    Thanks

    Alternatively you can use the same principle anywhere on the screen, you do not have to scroll to the bottom.  Simply move the cursor to the screen edge where your dock is then move the cursor the same direction again. You do have to briefly pause between the two movements but you can do this anywhere the dock is located, it does not have to be at one position on the screen.  That should speed things up a bit and prevents the dock from appearing by inadvertently scrolling to the side or the bottom.
    If you can, get a Magic Trackpad, Lion navigation works very well with one of these, I think that the days of the mouse are numbered.  The numbers of gestures available with the Magic Trackpad is extensive in Lion.

  • How to show controller in full screen mode

    During DVD playing, switching to full screen mode the controller disappears and we can use only the bar at bottom with the essential commands. No possibility to use the rallenty, for instance, which is available opening the drawer of the main controller. The function can be activated through the key board but is not so direct. Does some body know if it is possible to have the complete controller visiblealso in full screen mode?
    Thanks

    Alternatively you can use the same principle anywhere on the screen, you do not have to scroll to the bottom.  Simply move the cursor to the screen edge where your dock is then move the cursor the same direction again. You do have to briefly pause between the two movements but you can do this anywhere the dock is located, it does not have to be at one position on the screen.  That should speed things up a bit and prevents the dock from appearing by inadvertently scrolling to the side or the bottom.
    If you can, get a Magic Trackpad, Lion navigation works very well with one of these, I think that the days of the mouse are numbered.  The numbers of gestures available with the Magic Trackpad is extensive in Lion.

  • How to always open in full screen mode

    is there a way to always open a session in full screen mode?
    should i press "the full screen icon" every time???

    Hello,
    This setting is stored in the localstore.rdf file in the Firefox profile folder.
    *http://kb.mozillazine.org/localstore.rdf
    You you can check this file to see if sizemode="fullscreen" appears under the browser.xul#main-window heading.
    If have this section when the normal dimensions are 1024x720.
    <pre><nowiki><RDF:Description RDF:about="chrome://browser/content/browser.xul#main-window"
    height="720"
    width="1024"
    screenX="323"
    screenY="90"
    sizemode="fullscreen" /></nowiki></pre>
    From: [https://support.mozilla.org/questions/966532 questions/966532]

  • How to disable dock in full screen mode?

    Hi, every time im full screen the dock are bugging me. Exemple, when i'm on Facebook on Google Chrome in full screen and I want to write something in the chat, the dock pop-up. Is there a way to disable dock when i'm in full screen mode? I'm on a MBP mid 2012 running Maverick.
    Thanks you!

    Alternatively you can use the same principle anywhere on the screen, you do not have to scroll to the bottom.  Simply move the cursor to the screen edge where your dock is then move the cursor the same direction again. You do have to briefly pause between the two movements but you can do this anywhere the dock is located, it does not have to be at one position on the screen.  That should speed things up a bit and prevents the dock from appearing by inadvertently scrolling to the side or the bottom.
    If you can, get a Magic Trackpad, Lion navigation works very well with one of these, I think that the days of the mouse are numbered.  The numbers of gestures available with the Magic Trackpad is extensive in Lion.

  • ITunes: how to get out of "full screen" mode in Lion?

    running Lion for the first time - I hit some kind of a a wrong button on iTunes, and it went into some kind of goofy full screen mode.  How do I get it back to the original mode?

    You  must have tripped over the double-headed arrow symbol at the right end of the menu bar.  To get back, slide your cursor to the top of the screen to display the menu bar and slide right to the double-headed arrow (now enclosed in blue) at the right end of the menu bar.

  • Flash crashes using Firefox in full screen mode

    When trying to view videos full screen I get a message that Adobe has crashed. I have uninstalled and reinstalled Adobe and Firefox using the current versions. This problem does not seem to appear with IE.

    The problem in my case appears self imposed. I had previously changed my visual effects settings to best performance. After changing the visual effects settings back to "Let Windows choose..." all my problems with the adobe crashing in full screen mode were resolved. Thanks to jscher2000 for your input.

  • How do I get to full-screen mode in Adobe Reader 10.4.4 for ipad mini? It's vanished.

    I updated Adobe Reader and now double tapping activates zoom. There does not seem to be any way to go to full-screen mode, and reading with the header (time and battery life icons) is unpleasant.

    Thanks for taking the time to post -- especially to a thread that was started almost a year ago.  I'll give your suggestion a try.
    Larry

  • How to get out of full screen mode in Firefox

    Have tried to get out of full screen mode by pressing F11 and f11 and esc but nothing works.  any suggestions?

    Shift-CMD-F toggles full screen off and on in Fx. Also, if you've put the Full Screen icon in the Firefox Toolbar, bring the mouse cursor up to the top of the screen. This will reveal the toolbar and you can click on the icon to return to normal.
    Get the icon from View>Toolbars>Customize. Drag it into the Toolbar somewhere.
    Message was edited by: WZZZ

  • Lots of hang ups when using iPhoto in full screen mode

    Has anyone else got this problem or a solution? I find that iPhoto hangs up or give strange action when in ful screen mode. The other day, for example, I had two iPhoto windows showing, one in full screen and one normal window on the desk top! Another day the system became unresposive and I had to force quit iPhoto to get it back. Another day I had to re-boot the machine entirely. All other full screen apps work fine.
    I am on MacBook black, 2GB memory. OS X Lion fully updated.

    Try trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder.
    (On 10.7: Hold the option (or alt) key while clicking on the Go menu in Finder to access the User Library)
    (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    What's the plist file?
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.

Maybe you are looking for