Problme with full screen resolution adjustment

import java.awt.*;
import java.applet.*;
import javax.swing.*;
import javax.swing.event.*;
import java.awt.event.*;
public class StartClass extends JFrame
public static void main(String[] args)
JFrame f = new JFrame();
Breakout b = new Breakout();
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice gd = ge.getDefaultScreenDevice();
Window win = new Window(f);
gd.setDisplayMode(new DisplayMode(640,480,DisplayMode.BIT_DEPTH_MULTI,DisplayMode.REFRESH_RATE_UNKNOWN));
gd.setFullScreenWindow(win);
f.getContentPane().add(b);
f.setResizable(false);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.show();
I get this error:
Exception in thread "main" java.lang.UnsupportedOperationException: cannot change a display mode.
What im trying to do is try to get the program to go into full screen at a resolution of 640x480. help!

I found this
http://forum.java.sun.com/thread.jsp?forum=21&thread=278108
from this
http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2Bsetdisplaymode+-%22replies%3A+0%22&col=javaforums&x=39&y=4

Similar Messages

  • Problem with full screen resoultion adjustment

    import java.awt.*;
    import java.applet.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.event.*;
    public class StartClass extends JFrame
         public static void main(String[] args)
              JFrame f = new JFrame();
              Breakout b = new Breakout();
              GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
              GraphicsDevice gd = ge.getDefaultScreenDevice();
              Window win = new Window(f);
              gd.setDisplayMode(new DisplayMode(640,480,DisplayMode.BIT_DEPTH_MULTI,DisplayMode.REFRESH_RATE_UNKNOWN));
              gd.setFullScreenWindow(win);
              f.getContentPane().add(b);
              f.setResizable(false);
              f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              f.show();          
    I get this error:
    Exception in thread "main" java.lang.UnsupportedOperationException: cannot change a display mode.
    What im trying to do is try to get the program to go into full screen at a resolution of 640x480. help!

    You must call set fullcsreen mode before you change the graphics mode. I just started working on such a project last night, and that was a problem I ran into :)

  • How to adjust website to work with multiple screen resolutions?

    http://www.allenkey.com.au/
    hello i have recently designed this website and the formatting isnt correct when veiwed with different screen resolutions
    Pleese help!

    hello i have recently designed this website and the formatting isnt correct when veiwed with different screen resolutions
    Just so you'll know, and to keep the thread clear, resolution has nothing to do with how your page renders or is formatted.  A given page will look exactly the same on any resolution screen provided you keep the browser width the same pixel value.  It's the variation in that width from one resolution screen to another that causes the difference.  And yes, it's the fact that you have used absolute positioning as a primary layout method that is the problem for the reason that JTANNA has already mentioned.
    Now - how do you want your page to behave?  Do you want it to be fixed width and centered (that would be the easiest).  In that case, change this -
    <body>
    to this -
    <body>
      <div style="width:928px;margin:0 auto;position:relative">
    and this -
    </body>
    to this -
    </div>
    </body>
    Now, reposition all of your AP containers so that the page is again aligned the way you want, and you're done.

  • Website with Full Screen Background Images

    I'm trying to create a website with full screen background images (or  possibly, a video) that will crop to the browser window. It's also  important that the image be center-justified. The Die Antwoord site does  pretty much what I'm trying to accomplish. I'd also like to know how  they can use such high resolution images. If I try to use a high res  image, the file size is enormous. Another site that uses similar  technology only with a video is the TV on the Radio site.
    I  am fairly new to Flash so please forgive me if this is a rudimentary question.  Any help will be greatly appreciated.

    Hi Bob,
    Thanks for your reply.
    What I'm concerned about is the crispness of my full-page images. Am I right in assuming with a PDF folio, static images won't be as crisp? Is there a way to maintain its sharpness?
    M

  • Embed with full screen

    Hi, i will try to sum this up...
    what i need help with is embedding with full screen, how do i
    do that? like for ins-tents a youtube video, now i know they don't
    have any "full screen" button on their video as you embed it, but i
    want to make a costume one, like i make a link under the video
    "full screen" then you press it and the video will adjust to your
    IE or Firefox browser,, I've seen many sites to that for example
    www.all-aboutsp.com.
    and my second question, how do i embed a video from another
    website but yet use my own Player like www.southparkzone.com ?
    thanks in advance

    nobody can?

  • Bridge - How to view image in full screen resolution

    In Bridge - How to view an image in full screen resolution and not as a Preview (Space bar), like in Lightroom (F), Photoshop or ViewNX 2 ?

    The size of the Bridge Preview window will always be the absolute limit of the image display in Bridge.  Maybe I am not following you.  Sorry

  • Lack of All format playable Video player with Full Screen STRETCH feature

    I am a big fan of Nokia and i know Windows phone is the world best smart phone.im using Lumia 820. but in my highend Lumia devices lack of a
    All format playable Video player (like mkv etc.)officially from Nokia or Microsoft.pls this is very important thing for all Lumia user for HD movie experience.pls update current video player.now I'm using Moli player but there is 1
    vital feature is missing...this is Full Screen STRETCH...when i play movie using Moli player on my phone screen upper and lower portion appear black bar.It mean Ascept ratio not match.This is very important for full screen movie exp.But  this
    feature is also available on Android  MX player.
             So,I request you please update current video player with
    Full Screen STRETCH feature for windows phone user.Thank you.

    Hello,
    You should ask in the
    Windows Phone forums on the Microsoft Community forums.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Creating a FLV video player with full screen option

    > This message is in MIME format. Since your mail reader
    does not understand
    this format, some or all of this message may not be legible.
    --B_3258016930_5977304
    Content-type: text/plain;
    charset="ISO-8859-1"
    Content-transfer-encoding: 8bit
    Hi!
    I am trying to create a video player that will allow full
    screen functions
    like what we can see on youtube. I know how to create the
    window and the pop
    up but the only problem I am having is having the original
    video in the
    small screen to pause or go silent when the full screen mode
    is activated.
    How can get it done?
    Thank you.
    °K.
    --B_3258016930_5977304
    Content-type: text/html;
    charset="ISO-8859-1"
    Content-transfer-encoding: quoted-printable
    <HTML>
    <HEAD>
    <TITLE>Creating a FLV video player with full screen
    option</TITLE>
    </HEAD>
    <BODY>
    <FONT FACE=3D"Arial"><SPAN
    STYLE=3D'font-size:12.0px'>Hi!<BR>
    <BR>
    <BR>
    I am trying to create a video player that will allow full
    screen functions =
    like what we can see on youtube. I know how to create the
    window and the pop=
    up but the only problem I am having is having the original
    video in the sma=
    ll screen to pause or go silent when the full screen mode is
    activated. How =
    can get it done?<BR>
    <BR>
    Thank you.<BR>
    <BR>
    <BR>
    <B>&deg;K.<BR>
    </B> </SPAN></FONT>
    </BODY>
    </HTML>
    --B_3258016930_5977304--

    Hello,
    You should ask in the
    Windows Phone forums on the Microsoft Community forums.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Help:How to publish a Flash with full screen HTML

    Please, guys, be kind enough to teach me how to publish a
    Flash with full screen size in HTML. I have tried to search the
    board, but so far no luck.
    Originally, I want my .SWF to keep changing its background.
    The solution I got was placing colored stage-sized rectangles on
    the bottom layer. Then I don't want the viewers to see the HTML
    area where I cannot seem to control smooth color changes.
    So, after I construct a Flash file with backdrop-color
    changing by the method I mentioned above, how do I publish it with
    full screen mode in HTML, as you can see
    here? Help!
    Thanks in advance, guys.

    Here's an AS2 and a AS3 version I got from David Stiller
    2 small details you have to add 1 in publish settings set Dimensions to percent 100 100
    and in the html set <style>body {margin: 0; padding: 0}</style>
    // AS2
    import flash.display.BitmapData;
    Stage.align = "TL";
    Stage.scaleMode = "noScale";
    var tile:BitmapData = BitmapData.loadBitmap("tile");
    function fillBG():Void {
      beginBitmapFill(tile);
      moveTo(0, 0);
      lineTo(Stage.width, 0);
      lineTo(Stage.width, Stage.height);
      lineTo(0, Stage.height);
      lineTo(0, 0);
      endFill();
    fillBG();
    var listener:Object = new Object();
    listener.onResize = fillBG;
    Stage.addListener(listener);
    // AS3
    stage.align = StageAlign.TOP_LEFT;
    stage.scaleMode = StageScaleMode.NO_SCALE;
    var bmp:Tile = new Tile(50, 50);
    var tile:BitmapData = new BitmapData(50, 50);
    tile.draw(bmp);
    function fillBG(evt:Event = null):void {
      graphics.beginBitmapFill(tile);
      graphics.moveTo(0, 0);
      graphics.lineTo(stage.stageWidth, 0);
      graphics.lineTo(stage.stageWidth, stage.stageHeight);
      graphics.lineTo(0, stage.stageHeight);
      graphics.lineTo(0, 0);
      graphics.endFill();
    fillBG();
    stage.addEventListener(Event.RESIZE, fillBG);
    David Stiller
    Co-author, ActionScript 3.0 Quick Reference Guide
    http://tinyurl.com/dpsAS3QuickReferenceGuide
    "Luck is the residue of good design."

  • Displaying remote panel on different screens with different screen resolution

    Hi
    I am running a vi on the PXI . But when i try to open the remote panel it gets shifted on different screens
    with different screen resolution. I have tried to set the windows run time position using the vi properies
    but to no avail. Can anyone help me on this issue??????
    Regards
    Amit Ahuja

    What is your lv version?

  • Need help with full screen slideshow image quality

    I am looking to display some images with full screen slideshow. The images I add are very large, over 5000 wide. When I publish the site some images retain their quality while others lose it and look like crap. Why would this be and how can I fix it. I tried to resize them to the 2560x1707 that muse does, and then add them. This doesn't change the end result of poor quality.

    Go to Assets Panel and locate the image you want to use at original size. Right click the image and chose 'Import Larger Size'.
    See if that helps retain quality for that image, since Muse does not resize/interpolate that image for you.
    Cheers,
    Vikas

  • X220:Graphics problem with full screen videos

    I have got my X220 laptop last month. I am facing problem while playing youtube videos full sceen.
     videos can be seen best with smaller window but there is major graphics problem with full screen.
    Can someone help on this?
    I am using Windows 7 Enterprise edition.
    Thanks

    what do you mean by major graphics problem, please elaborate.
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

  • Problem with Full Screen

    Ok I am getting problems with full screen graphics on some computers.
    I am writing an internet based RPG and this is really eating into my time...
    Can any one explain why my graphics will not show some times (works others) with the exact same code running....
    I am using a BufferStratagy with a frame.
    Any help would be gladly apreashiated thank you in advance,
    Phibred

    Not a thread issue, no thread on this side of the program and yes there is a media tracker. However I have learned that my problem was that my screen does not like to flip to 800x600 for java applications for some reason thx any way.

  • Help with T430 screen resolution

    I would like to purchase a T430 with 1600x900 screen resolution as recommended in the reviews. However, I am concerned about whether I will be able to read text at that resolution. (This was an issue with the higher resolution when I purchased my beloved T400.) I cannot find a T430 in my area to look at before purchase. So, I am wondering whether some kind soul might be willing to post a screenshot of the desktop (with icons on it) of their T430 1600x900. Viewed at the original size, I should be able to determine from that image whether it will be legible, right?
    Solved!
    Go to Solution.

    Lilac wrote:
    There are no stores in my area that carry the T430. I would have to travel 3 hours to see one. But if the screenshot would not tell me what I need to know, maybe I will need to do just that.
    I didn't say a ThinkPad.  Any computer with a 14" screen running 1600x900 natively will give you some idea if that resolution is going to be acceptable.
    If the closest computer store is 3 hours, it probably isn't worth doing.  6 hours round trip is a lot of time and hassle.

  • Lion Screen Sharing with Full Screen apps on Remote Lion

    Has anyone figured out how to EASILY work with multiple desktops and full screen apps on the remote mac when Screen Sharing with one Lion mac from another?  All of the standard methods of switching between desktops and full screen apps (swipe, cmd + <arrow>, etc) all take place on the the local Mac, and not the remote one. 
    The only real effective methods I have found so far are using the dock (not elegant with full screen apps), and removing an app from full screen.  Either way, these methods are clumsy and do not compliment the new features that Lion provides. 

    You're not going to believe this.
    Problem was on my buddy's end.  The  slash key "/" was stuck down on her keyboard.
    Sometimes the solution is so far out of normal troubleshooting, you're luck if you ever find it...
    Nothing to see here, move along...

Maybe you are looking for

  • Blank Row in ALV Grid Display

    In ALV Display I want to have a <u>BLANK row</u> everytime the value of 'Cross Company Code Document Number' (BVORG) changes. Is there a way to use the Sort Option of "REUSE_ALV_GRID_DISPLAY" to do this? Or is the only possible way is by modifying th

  • Will Microsoft Word 2008 work with Mountain lion

    Does anyone know?

  • Pioneer DVR-115DBK won't recognize CD-R's

    Hi, I recently purchased a Pioneer DVR-115D to replace my previous DVR-105 model. The 115 works well for the most part, plays music CD's, plays and copies DVDs, but when I insert a blank CD-R, I get the following message: "The disc could not be used

  • Squid and Oracle Apps

    Hello, I hope I put this in a right forum. I'd put in the Linux (Non OEL) forum but still not solved yet. I'm trying to setup squid in Fedora 13 and get a problem with Oracle Apps. I'd setup so that only certain user can request http service by setup

  • SPOOL SP01 Problem

    Hi All, I am working on an HR form... that form is printing perfectly fine with proper alignment but when I went to the spool using sp01 (before getting it print) and looked at the form, there was some alignment problem and there were few fields whic