How can I set the screen resolution ?

hello brothers.
my program works ultimately at 1024/768 screen resolution.
since I want to make sure that peaple who using that program will see it correct, I want to explicitly change the resolution of the screen.
how can I do that? please..

I believe you use the setDisplayMode() method of the GraphicsDevice object to do this.
If you go to http://www.scottshaver2000.com/ and download the source code to H.E.A.T., you will find a nice example of video mode switching. His game pops up a window showing the available configurations, then lets you select the one you want and switch to it.
The applicable classes are in his com.sas.gui package: FullScreenJFrame.java and VideoModeSelector.java.
Rick

Similar Messages

  • Where can I set the screen resolution

    I am trying to use do a course online and they said that the screen resolution needs to be set at 1024 x 768. Where do I do this?

    You can paste this in the Code field in the Firefox > Web Development (or Tools) > Error Console and click the Evaluate button and enter 1024x768 on the prompt.
    <pre><nowiki>
    var Cc=Components.classes, Ci=Components.interfaces;
    var ps = Cc["@mozilla.org/embedcomp/prompt-service;1"].getService(Ci.nsIPromptService);
    var wm = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator);
    var nb = wm.getMostRecentWindow("navigator:browser");
    var txt = 'width x height';
    var obj = new Object; obj.value = nb.window.outerWidth + 'x' + nb.window.outerHeight;
    if(ps.prompt(null, 'Resize', txt, obj, null, {}) && (obj.value != null)){
    var vA = obj.value.split("x");
    if(vA[0]) nb.window.outerWidth = vA[0];
    if(vA[1]) nb.window.outerHeight = vA[1];
    </nowiki></pre>

  • How can I increase the screen resolution on my T61; using Windows 7

    I just recently purchased a Lenovo T61 from a guy on ebay.  I’m trying to figure out how to increase the resolution of the monitor, but can’t seem to figure it out.  Here are the technical specs of the machine:
    System
    Manufaturer: LENOVO
    Processor: Intel Core 2 Duo CPU T7300 @ 2.00GHz
    Model: 7658CTO
    Installed Memory: 2.00 GB RAM
    System type: 64-bit operating system
    OS Installed: Windows 7 Professional
    Number of processor cores: 2
    Storage
    Size of hard disk:  160 GB
    Media Drive:   CD- RW/ DVD MULTI Recorder (Can burn all types of CDs and DVDs)
    Graphics
    Display adapter type:  Mobile Intel 965 Express Chipset Family
    Total available graphics memory:  358 MB
    Display adapter driver version:  8.15.10.1867
    Primary monitor resolution:  1280x800
    DirectX version DirectX 10
    Webcam: Integrated Webcam above display
    I’m running Windows 7.  I don’t think there is an inherent/native resolution higher than 1280x800.  Is this right?  Can I download a driver to allow me to get to a higher resolution?  I’m using 1400x1050 on my older T42; this resolution is very nice.  I’d like to see this on my T61.  How can I do this?
    Thanks!
    Ryan---

    Hello ryguy7272,
    it seems your tft has got a primary monitor resolution:  of 1280x800 only.
    There´s no way to power that up, except at an external monitor.
    Maybe that´s why the machine was a lot cheaper than others.
    Edit: typos
    Follow @LenovoForums on Twitter! Try the forum search, before first posting: Forum Search Option
    Please insert your type, model (not S/N) number and used OS in your posts.
    I´m a volunteer here using New X1 Carbon, ThinkPad Yoga, Yoga 11s, Yoga 13, T430s,T510, X220t, IdeaCentre B540.
    TIP: If your computer runs satisfactorily now, it may not be necessary to update the system.
     English Community       Deutsche Community       Comunidad en Español

  • How can i set the resolution on my imac ''27 in to 1024*768?

    hello,
    i'm new to imac
    how can i set the resolution on my imac ''27 in to 1024*768?
    its only gives me to options
    1- 1280*720
    2-800*600
    thanks

    My mid-2011 27" iMac, ML 8.3 has 1024x768:

  • How can I reset the screen colors/resolution on an old white macbook?

    My screen shows neon colors and a zigzag shapes.  How can I reset the color resolution?  This laptop was supposedly fixed but when returned all my data had been "lost".  The certified mac tech said he reinstalled the OS but lost all my desktop files and HD and couldn't recover.  ODDLY, when I started the machine and started fresh, my old hard drive was still there!  Although he'd wiped out my current desktop files- gone.  But, the  screen colors went wonky all of the sudden and I don't know how to resert or correct the resolution.  Can any one share a suggestion?

    With that kind of issue after returning from a repair where a tech was inside the computer, it should be returned to the same place for an evaluation of the problem, a diagnosis, and perhaps they need to check their work to see if something came loose while they had it apart.
    The System Preferences> Displays has a panel to select settings.
    You may have to try & see about a reset of System Management Controller http://support.apple.com/kb/HT3964 Or, if reset of NVRAM  http://support.apple.com/kb/HT1379 may help. Not sure if these would do anything if there is hardware damage.
    Good luck & happy computing!

  • How can I set the data binding between Web Dynpro & Database table

    Dear friend,
    I am a beginner of Web Dynpro. I want to develop my simple project like these:
    1. Create my own database table via Dictionary Project such as TAB_USER and have 3 fields: USER_ID, USER_NAME, USER_POSITION and I have already deployed & archived it.
    2. Create my own Web Dynpro Project, and create the input fields as User ID, User name, User position and icon 'Save' on the selection screen and I have deployed it already.
    For the process, I want to input data at the screen and save the data in the table, please give me the guide line like these:
    1. How can I set the data binding between Web Dynpro and Database table ?
    2.  Are there any nescessary steps that I will concern for this case?
    Sorry if my question is simple, I had try  to find solution myself, but it not found
    Thanks in advances,
    SeMs

    Hi,
    You can write your own connection class for establishing the connection with DB.
    Ex:
    public class  ConnectionClass {
    static Connection con = null;
    public static Connection getConnection() {
    try{
    Context ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup("jdbc/TSPAGE");
    con = ds.getConnection();
    return con;
    }catch(Exception e){
    return null;
    You can place the above class file in src folder and you can use this class in webdynpro.
    You can have another UserInfo class for reading and writing the data into the DB .
    Regards, Anilkumar
    PS : Refer
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/simple java bean generator for database.pdf
    Message was edited by: Anilkumar Vippagunta

  • How can I set the size of an image in java?

    How can I set the size of an image in java? I have to choose the width and height of image...thanks to everybody...sorry for my english :-)

    Hi 43477
    Can you provide more details, do you want to setsize to display an image on a screen of when saving image etc?
    PS.
    There is a good invention called googlegoogle is good, but sometimes it's better to use more specific search, there is a search field avove on this page :)

  • How can I stop the screen on my iPad from dimming & turning off so quickly?

    How can I stop the screen on my iPad from dimming &amp; turning off so quickly?

    Settings>General>Auto-Lock>Set the time you want.

  • How can we debug the screen pop up?

    How can we debug the screen pop up?

    Hi,
    if you know where the popup is raised it is easy of course as you just have to uses F6 to keep the debug mode running.
    But there is a way to get the popup into debug mode similar to typing /h into the ok code field of a sandard dynpro. Therefore you have to do the following steps:
    1) click the "Create a Shortcut" button in the gui to get a shortcut on your desktop (the button next to new session)
    2) in the oped screen for shortcut setting choose:
         type -> system command
         command -> /h
         depending on gui release you have to enter a system ID -> use the one of your system and parameters -> just type abc
    3) press finish to create the shortcut
    If you have done this you can drag and drop the shortcut from the desktop to a sap session or popup to switch on the debug mode. One shortcut works for all systems you have, the system id in it does not matter.
    Oh, while I often have the case that I forget to resize the window before the popup appears so i cannot access the shortcut directly on the desktop, just remeber that you can always open a small file explorer window go to the desktop folder and drag it from there ;o)
    Best Regards
    Roman

  • How can I set the number of batch process for DTP globally?

    Hi guys,
    How can I set the number of batch process for DTP in system globally?
    For eg. set the number to 1
    Any hint is appriciated!
    Regards,
    Liying

    Hi,
    In DTP screen also you can view batch settings. Check the Settings menu, you will find Batch.
    Reg
    Pra

  • How can i set the alternating colors for a table rows

    Dear All,
    Please any one help me how can i set the Alternating colors for Table Rows.
    i created a theam there i set the background alternating color to brown and i set the table design properity to alternating. but it is not reflecting.

    Hi,
    The design property in Table properties should work for your requirement. Select "alternating" value for design.
    Please see the API below:
    design
    Determines the appearance of the table. The property design can take the following values and is represented by enumeration type WDTableDesign.
    alternating - The table rows are displayed alternately in a different color.
    standard - The table background has one color. The individual table rows are displayed with grid net lines.
    transparent - The table background is transparent. The individual table rows are displayed without grid net lines.
    Check whether you have changed the right property or not? Also table should contain more than one rows to test this scenario.
    Regards,
    Jaya.
    Edited by: VJR on Jun 17, 2009 6:43 PM

  • How can I get the screen to lock on my iPhone 4, so I don't press buttons while talking?

    I just upgraded to the iPhone 4.  When I am talking on the phone, the screen doesn't lock, so I am constantly pressing buttons or hanging up on the person I'm talking to.  How can I get the screen to lock while I'm talking?  It's driving me NUTS.

    The otterbox is one of the culprits. Take the phone out of the case and see if it still happens. If so it is not the case. If the problem goes away, then you may need to make the hole slightly larger. My family has three iPhone 4's in otterboxes and none have this problem. Other users on this forum have reported success with the above methods.

  • How can I set the page that will open, when I open a new tab, to be the same as the homepage?

    How can I set the page that will open, when I open a new tab, to be the same as the homepage?
    An app changed it to some other search engine, before installing the app, I the tab that would open was the homepage I set.
    In my case it is Google, and I want my new tabs to open on Google like they did before the installation.
    thank you,
    Asaf Privman.

    You can middle-click or Ctrl left-click the Home button on the Navigation toolbar to open the Home page in a new tab.
    You can look at one of these extensions:
    * NewTabURL : https://addons.mozilla.org/firefox/addon/newtaburl/
    * New Tab Homepage : https://addons.mozilla.org/firefox/addon/new-tab-homepage/

  • How can we read the screen field values from the report selection screen wi

    Hi expart,
    How can we read the screen field values from the report selection screen with out having an ENTER button pressed  .
    Regards
    Razz

    use this code...
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_posnr.
    **Read the Values of the SCREEN FIELDs
    CALL FUNCTION 'DYNP_VALUES_READ'

  • Formatting issues: when I open a msg, the font is sooo small you need a magnifier to read it. How can I set the font size to one I can easily read?

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    I have various formatting issues:
    a. When I open a msg from my web browser (Cablevision), the font is sooo small I need a magnifier to read it. How can I set the font to a size I can easily read?
    b. When I forward msgs, the text gets all distorted and I need to clean it up (some symbols, lots of spaces between words). How can this be fixed?
    c. When I want to tell someone about a website, I cannot type the URL in so that all they have to do is click on it. How can this be fixed?
    d. When I open messages, the text opens in a small window and covers the "Show Images" button. Why?
    == This happened
    ==
    Every time Firefox opened
    == Ever since I started using Firefox (a few months ago)
    ==
    '''Troubleshooting information'''
    I didn't find any results
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows 7
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
    == Plugins installed
    ==
    *-nphpclipbook
    *Office Plugin for Netscape Navigator
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *Default Plug-in
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    *NPRuntime Script Plug-in Library for Java(TM) Deploy
    *The Hulu Desktop Plugin allows Hulu.com to integrate with the Hulu Desktop application.
    *Shockwave Flash 10.0 r45
    *Adobe Shockwave for Director Netscape plug-in, version 11.5
    *iTunes Detector Plug-in
    *3.0.40624.0
    *NPWLPG
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers

    The text editor is the text area that you use on the webmail (Yahoo, Hotmail) website to create a new mail.
    You can compare that with the ''Post new message'' text area that you use to create a new post on this forum.
    Just above the text area that you use to enter the message text there is usually a button bar with buttons that allows some text formatting like Bold and Italic and can also include a button to make a clickable hyperlink.
    Check the tooltip of each button by hovering with the mouse over each button.
    Make Link - https://addons.mozilla.org/firefox/addon/142

Maybe you are looking for

  • Ipod nano 1st gen is not recognized in itunes 10

    I updated my computer system to leopard 10.5.8 as well as the latest itunes 10. I bought a new ipod nano 6th gen, and it syncs and works fine. The problem I have is my old Ipod. It is detected by my power mac on the desktop only the icon it has is a

  • Printing envelope not formatted correctly on custom size 8.75 by 5.75

    Printers and All-In-Ones running win 7 64 bit, officejet 8600 pro all update current, In works 2007 word processor or 2011 Hallmark card progam.  downloaded latest driver and reinstalled same (deleted original dr and rebooted first). Envelope is corr

  • Setting default preferences (CS3)

    Hi, I seem to be losing my preferences a lot recently, when I have a crash, and it's becoming quite tedious fixing them manually. I've managed to successfully java script a few things to work on startup. However there are a few things I don't know th

  • File Validatoin

    Hi, I need some implementation methodology for this interface. PI will pick up files from an FTP and sends to SAP for processing via proxy. The requirement is that if SAP failed to process the xml file for some reason, PI would need to make sure on n

  • GMDERIVE - Best Practices

    Hello experts, Do you have any best practices to share for the setup of GM DERIVE? Although I know this is company-specific, I would appreciate if you could give some advice. I am currently analyzing 2 possibilities for the derivation of sponsored ob