Set the System resolution

hi all,
I want to set the screen resolution in java 1.3.
I got the screen resoluion by using
Toolkit.getDefaultToolkit().getScreenSize().
Now i want to set the new resolution. Please tell me how to set it.
it should be compatible to java 1.3.
Please i need help. thanks.
Regards,
Suraj Kumar.

Hi,
I don't think this is possible in pure Java, you'll have to look to native (JNI)
JNative is done for that, unfortunately it needs 1.5.0 to run.
--Marc (http://jnative.sf.net)                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Setting the default resolution for sap logon

    Hi, ALL!
    I'm terribly tired of SAP interface. It's so uncomfortable for work.
    For example maybe you know khow to set the default resolution for sap logon to make it use its widgets of proper size. e.g. when i work with transfer rules, it has only half of screen for useful area (i use 1400x1050), and right part is just empty, but on the left very many small fields and you should constantly use scrollbars (i think you know it well). Maybe there is system customizing for this purpose.

    Hello Dmitry,
    There is no customizing for this - atleast to my knowledge.
    However, you should have to redo the settings again and again unless you are continuously re-sizing the main window.
    Cheers
    Aneesh

  • 1.5 How to globally set the System Cache location

    FROM ANOTHER USER ON ANOTHER BOARD:
    This one did not get answered completely.
    ************************* Question:
    Hello,
    I want to deploy JWS on a client PC with Microsoft XP OS. This client have multiple users. JWS put a file deployment.properties in the directory "documents and setting" for the current user.
    How can I create a uniquely file deployment.properties for all users of this client (new and existing profiles) ?
    Create a directory "documents and setting/all users/application data/sun/java/deployment/" with the file deployment.properties don't work.
    Create a directory "documents and setting/default user/application data/sun/java/deployment/" with the file deployment.properties is working but is not good for the existing users. This is good uniquely for new users.
    is there a solution ?
    King regards,
    funchung
    ************************* ANSWER:
    For windows, the system config file is at:
    {Windows Directory}\Sun\Java\Deployment\
    The value of the {Windows Directory} is determined by using the Win32 API GetWindowsDirectory.
    So for example, on XP, the system config file is:
    c:\WINDOWS\Sun\Java\Deployment\deployment.properties
    The settings in this system config file will be used by all users on the system.
    ***************************** HIS REPLY
    I've tried this and it doesn't seem to work.
    I've also tried createing a deployment.config file as per the http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/properties.html article and this doesn't work for me.
    Has anyone done this successfully??
    ******************************** MY REPLY:
    This is true.
    I can get the system install to work if I add the parameter:
    deployment.system.cachedir=C\:\\testcache
    to the deployment.properties file found under:
    C:\Documents and Settings\username\Application Data\Sun\Java\Deployment
    but it will NOT work by adding it to the:
    C:\WINDOWS\Sun\Java\Deployment
    directory. It just creates a new default one in the user's folder.
    What am I doing wrong?
    If there is not a way to globally set the System Cache location, then this isn't much better than the user cache for being able to "install" the software once on the PC and let any user that signs in access that application.
    We had high hopes for this, since this functionality was taken away from us once the java cache started being stored in the user's folders.
    More details:
    I just tried setting the mandatory=true setting and it tells me that it is not allowed to start because it can't find the
    deployment.properties in the same folder (full path is displayed) but I know it is there, because it is the same folder. I even double checked the spelling.
    Maybe there is a bug in the way it finds that properties file, or maybe I need to include something in that file that I didn't find in documentation?
    All it has in it is the one line:
    deployment.system.cachedir=C\:\\testcache
    Can anybody help shed light on this?
    It seems to be a bug that it can't find the deployment.properties file in the 'system' folder.
    -Chris

    I now found more on another thread:
    http://forum.java.sun.com/thread.jspa?messageID=3500778&#3500778
    You can close this one.
    Sorry.

  • Everytime my AppleTV2 enters into sleep modus it requests again the WIFI network password. This is new, where can I set the system to remember the password?

    Everytime my Apple TV 2 enters into sleeping mode it requires my WIFI network password again upon reconnection. This is new, how can I set the system to remember the password?

    Open Mail preferences, click on the Accounts icon in the toolbar then select your mail account, click on the Mailbox Behaviours tab on the right. Set the dropdown menu at the bottom for the Never option.
    However, you cannot change the default options set for a newly created account.

  • How do i get the system resolution?

    ya ^^
    How do i get the system resolution?
    thx nate

    java.awt.Toolkit.getDefaultToolkit().getScreenSize();
    java.awt.Toolkit.getDefaultToolkit().getScreenResolution();

  • Setting the system property in java application

    Hi,
    I want to make a connection to https://URL through my java application class
    which will be deployed in the weblogic server. Could any one help by
    telling how could I set the system properties in my java application. If I
    pass the value in the java class do I have to change any value in the
    weblogic.properties file.
    Thanks in advance and looking forward to hear your valuable suggestion.
    Sirisha

    System.getProperty(..)
    System.setProperty(..) is this what you are asking for?
    This gets and sets the system (your machine) environment properties
    Filip
    In article <396d0a93$[email protected]>, [email protected] says...
    >
    Hi,
    I want to make a connection to https://URL through my java application class
    which will be deployed in the weblogic server. Could any one help by
    telling how could I set the system properties in my java application. If I
    pass the value in the java class do I have to change any value in the
    weblogic.properties file.
    Thanks in advance and looking forward to hear your valuable suggestion.
    Sirisha
    Filip Hanik
    Software Architect
    XMarkstheSpot.com
    [email protected]

  • How do I set the system time?

    Hello
    The system time can be read using System.currentTimeMillis(), but, how can I set it?
    Thanks

    several approaches:
    you could use the OS function to set and call it via Runtime.exec().
    For WIndows e.g.: "time 08:15:00" to set the system time.
    another solution: http://www.rgagnon.com/javadetails/java-0285.html

  • How to set the system clock in win2000? in linux? (RH)

    hi There,
    I need to set the system time on a pure java application.
    what is the proper way to do so? (I can't find any system property which corresponds to the system clock).
    if it's platform dependent , then I need to do so on win2000 and on linux RH.
    thanks

    I don't know about Windows but on RedHat, I would use the date command. Check the man pages for date and look at the -s or --set options.  Do a Runtime.exec to execute that.
    Of course, doing the in Java is not the best option. If you are trying to synchronized clocks on Windows and Linux systems, I would use some freely available Network Time Protocol programs. RedHat has a free NTP daemon available as an RPM in the standard distribution. For Windows, theres a free program called "Net Time" that runs as a service. Both can act as clients and servers.

  • How do you set the system MESSAGE_ID to an XML field value?

    Hi experts,
    I need to set the value of the system MESSAGE_ID to a field that an external company will send in the XML file. What I could gather thus far is that it should look something like this:
    //externalRef and container are passed as parameters:
    GlobalContainer globalContainer;
    String headerField;
    java.util.Map map;
    globalContainer = container.getGlobalContainer();
    globalContainer.setParameter("MessageId", externalRef);
    map = globalContainer.getParameters();
    headerField = (String) map.get(StreamTransformationConstants.MESSAGE_ID);
    return headerField;
    The problem is the setParameter() function - not sure how it is supposed to work. The GETting of the MessageId works though but I need to SET it while mapping the file. Any ideas?

    use the sample code as provided in the link - http://help.sap.com/saphelp_nw04/helpdata/EN/78/b4ea10263c404599ec6edabf59aa6c/frameset.htm
    in your case it will be MESSAGE_ID - http://help.sap.com/saphelp_nw04/helpdata/EN/b3/9a2aeb24dc4ab6b1855c99157529e4/frameset.htm

  • Is there any danger in setting the system date/time to a prior date?

    We are dealing with some software digital certificate expiration issues.  Until the developer gets them fixed, the only way we can use the software is to set the date/time preferences to a date before the certificate expired.  Some users are concerned that this will spell catastrophe for their systems because Unix/Linux based things don't like haivng their dates messed with.  I maintain that the only things that would be affected are the date/time stamp on files they save while the settings are changed, possibly any iCal events created during the change (which can be overwritten by the user), and that if they use Time Machine the backups might not be dated correctly (and for that reason I've suggested they shut Time Machine off while their date is changed).  I just don't believe it will lead to massive system failure.  Who is correct?

    Yes you will have issus with DHCP leases/Internet and your router if your time and date isn't current.
    Offline you can do what you want. Better to get a temporary workaround from the developer to hold you over.

  • How to set the System Setting

    Hi guys
    I have Final Cut Express for a few years but I don’t practice very often, I use it once or twice a year when I have a family project to do. I am confused with the Scratch Drive vs the Final Cut Express Document Folder (Scratch disk>F.C.E. Documents>). About 2 months ago, I start a New project. Before that, I cleared up all the previous project files and from the Preferences I trashed the com.apple FinalCutExpress Plist and from the Final Cut Express User Dater File I trashed the F.C.E. 4.0 Pref and the Ojb Cache and reset my Scratch Disk for capturing (not the startup). Now my editing is almost done. Last week I open the Scratch Drive >Final Cut Express Document Folder, I notice there is no captured files (captured materials,data or media) anywhere in the Capture Scratch, Autosave Vault,Thumbnail Cache File and the Waveform Cache File but there are files in the Audio Render File and the Render File (I suppose this Render File is the Video Render). I open the System Setting, I notice I have set the Scratch Disk for Video Capture, Video Render and Audio Render, the rest are set for Startup Disk; I went to the Startup disk, I found them all filled with something, but I have no idea where to locate my captured materials and I am not sure if these settings are correct or they should all be set to store in the Scratch Disk instead. I am all confused. Right now my questions are where to locate my captured materials (data/medias) and how do I reset the above settings if they need to be reset? I appreciate some one will take time to explain all these to me. My equipment is G4, Final Cut Express 4.0 with OX 10.5. If further info is needed, please adv.
    Thank you ALL.

    If I understand your advice correctly, after the current project is done, I should reset the Thumbnail >Cache File and the Waveform Cache File to the Scratch Disk and leave the Autosave Vault in the >Startup Disk because it is safer.
    Yup. Plus back up your Project file to another media type, CD etc. for double security.
    not to change the clip names either.
    Changing names is fine if you do this within the FCE application because FCE still knows where to find the file. If you change the name in the Scratch Disc through the Finder, FCE will loose the link.
    don’t know how to reconnect them
    Right click an offline clip in the Browser and select reconnect, navigate to where the clip is stored through the window that appears.
    You can search this forum for details and all is explained in the FCE manual.
    Here's one:
    http://discussions.apple.com/thread.jspa?threadID=1968953&tstart=15
    Al

  • How do I set the 4k resolution?

    I have a MacPro with dual D700 and 6xDP and HDMI1.4. The latter is limited to 4k30 (UHD24-30 and C4K24) by the standard. I have connected this port to a Samsung 40HU6950 4k TV that supports all four HDMI 4k modes.
    The MP is defaulting to C4K and thus outputting 4096x2160 at the only supported refresh rate of 24Hz. I would rather run it at UHD30 (3840x2160p30) because (a) the refresh rate will be 25% higher and (b) I will reduce the scaling artifacts that the 6.6% reduction from 4096 to 3840 may be causing in the TV as the panel is really UHD.
    The displays Control Panel for the Sammy does not give me any options, only "what is best for this TV" and five Scaled options (which are all zoom modes). However, the latter is still using the C4K resolution. I would rather the output be UHD30 with chosen Scale level, but that's not how the system operates (yet). Regardless of how the visual elements are scaled, I should be able to choose between the timing formats.
    The reason for this is the mouse movement is laggy and non-fluid. When vendors start selling DP-to-HDMI2 dongles in a couple months, this nightmare should be over and I can output 60Hz. But I really want it to be UHD so every incoming datum matches with a screen element (fixing 'b' above).
    Theoretically, I could remove the EDID from the Samsung and reprogram it to NOT have C4K, but this is extreme and not what you would do while still under warranty. It also presupposes that the EDID is not embedded in the silicon and can be removed. An alternative would be to use a "golden EDID", which is where the data structure is held within the Mac itself and the one in the TV is ignored. This is used when TV's is wrong or bad
    Thoughts?

    Well, that was helpful. There were a whole bunch of resolutions in there, and ironically, UHD30 was at the top of the list (like it was Preferred or something).
    I changed the res and the mouse movement immediately became smoother. However, after about 9s, the screen went dark for about 2s, therm came back. I'm going to have to see how stable this turns out to be. But it looks really good right now.
    I may grab the EDID, parse it, and but some insights about it here. I did searches for UHD and 3840, but did not find anything useful. And there should be
    -n-

  • Is it possible to set the SYSTEM.MODE to 'NORMAL'?? How to do a CANCEL-QUERY??

    Hi All;
    I have a form in which i have created 'ENTER-QUERY', 'EXECUTE-QUERY', 'CLEAR', 'SAVE' & 'EXIT'.
    Now i want to create a 'CANCEL-QUERY', but i exactly don't know what code to put in so that it functions like 'CANCEL-QUERY' of DEFAULT&SMARTBAR.
    Can you please let me know??
    And also , actually i tried the following for 'CANCEL-QUERY' in WHEN-BUTTON-PRESSED trigger .
    BEGIN
      CLEAR_BLOCK(NO_VALIDATE);
      IF :SYSTEM.MODE = 'ENTER-QUERY'
      THEN SYSTEM.MODE := 'NORMAL';
      END IF;
    END;
    I got an error saying A READ-ONLY bind variable used in OUT or IN-OUT context.
    So i guess, i cannot alter or set the status of SYSTEM.MODE. Ofcourse i can't, How can I..
    So what do i put in the Code to do CANCEL_QUERY action??
    Thank You.
    Oracle Forms 6i.
    Oracle 9i.

    I'd just like to know did you manage to cancel a query using my code ,Please try..
    IF :SYSTEM.MODE = 'ENTER-QUERY'
      THEN
      EXIT_FORM(NO_VALIDATE);
    END IF;
    Hope it works..:)

  • How to use of Business Trnasaction That set the system status in BS23

    Run Tcode BS23, If i give I0117 in left  bottom corner > Enter> Click on system Status I0117 Top Left corner > Press F6> system will go to system Status Cross reference screen
    Here we can find the Business Transaction  related information like Process That set the status, Process that deletes the status etc. ( business transaction like RMEP ,RMEZ ,RMUP )
    Above scenario i have depicted for  System Status DSPT. But
    Now my Question is very generic not for only I0117 System Status ( DSPT)
    But  from name of  business transaction how can we get idea that, this Business Transaction can be performed by which T Code,
    this Bu transaction is belogs to which module etc....
    How can I find help related to this business Trnasction from System / any report/ Programme from SE38 etc.....
    I am functional, Please explain me accordingly..
    Being Functional Consultant how can we get maximum help from this Business Transaction.
    Any help pointing to above querries would be appreciated.
    Regards
    Nitin

    Hi,
    Try transaction BERP.
    It will give  you the following info.
    1. See the business events available and the pupose they are meant fot
    2. Documentation for that particular event (here you can know where exactly it is called)
    3. Interface parmeters required in the custom FM
    4. A sample function module with the export import parameters.
    There are few more transaction which are usefull in Bte
    FIBF --> Maintenance transaction BTE
    BERE --> Business Event Repository
    BERP --> Business Processes
    BF31 --> Application modules per Event
    BF32 --> Partner Modules per Event
    BF34 --> Customer Modules per Event
    BF41 --> Application Modules per Process
    BF42 --> Partner Modules per Process
    BF44 --> Customer Modules per Process
    and Bte is attach to a process it works in similar way like workflow do, you can't exactly know the tcode by looking into the event but you can know it with the process for eg.
    This event is called while invoice printing.
    00705000     Invoice print: Exclude contracts
    and we can get more info by checking its description.
    Hope this will help,
    With best regards,
    Navneet Chaubey

  • 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>

Maybe you are looking for

  • How can I get my Epson NX625 printer back on line?

    How can I get my Epson NX625 printer back on line?

  • Different date format in different database..

    Hi, We have two database (10g) with same NLS settings.When we are reading the data from a table and assigning the value to XML tags using oracle.xml.sql.query.OracleXMLQuery class , with one database connection, the data format is coming as MM/DD/YYY

  • Calling stacked canvas

    hi everyone, currently i am working in oracle forms ( 6i ). how to call the stacked canvas through coding when the radio button is clicked.

  • Possible to fill in local amount in FB50?

    Hi all! My customer have a problem. Local currency is SEK (Swedish Crones) and wants to make a booking from bank account in EUR to bank account in SEK. We have received a bank account statement from the bank where we can se that the bookings have bee

  • Thumbnails but no photos after transferring to new iMac - How to Fix?

    When I recently got a new iMac, I transferred all my files from my old Mac to my new computer. I use iPhoto Buddy to create separate libraries for different members of our family and for different years. My iPhoto libraries for 2008 and 2007 transfer