IS IT POSSIBLE to change SCREEN's RESOLUTION thru JAVA code?

Can I change the screen resolution of the PC (through my Java code) where my application will run? is there any possible way to do this?

Hi.
Sure it's possible if you use JDK 1.4, you can switch to fullscreen mode and change the displayModes throug methods like :
java.awt.GraphicsDevice :
public void setDisplayMode(DisplayMode dm)
public DisplayMode getDisplayMode()
public DisplayMode[] getDisplayModes()
You can browse to for more information
http://java.sun.com/j2se/1.4/docs/guide/awt/AWTChanges.html
Regards, Mart�n

Similar Messages

  • Is it possible to change screen of iphone 6

    i have purchased i phone 6 before 3 months , today i got creak screen. so is it possible to change screen ? i am from india

    My iPhone is not eligible for warranty service. What are my service options?
    There are two service options for an iPhone that is not eligible for warranty service:
    Battery Replacement Service
    If your iPhone requires service due to the battery’s diminished ability to hold an electrical charge and it is not covered under Apple's warranty, the AppleCare Protection Plan, or statutory consumer rights, please contact an iPhone Authorized Service Provider.
    Out-of-Warranty Service
    Please contact an iPhone Authorized Service Provider for out-of-warranty service options.
    These are your only options in India

  • Is it possible to change  color on the line strip/code view in CS6?

    Hello -
    I did some research on this and cant seem to see if this can be done - I was hoping to change the color of the blue line menu on the code view screen.
    Eric

    I take it you're referring to that vertical line in the left hand side of Code View? I don't think it's possible to change the color.  If you disable line numbers (#), it's a bit less noticeable.
    Nancy O.

  • How to change InputField background color using Java Code

    Hi,
    In my application use will enter some set of Cost Centers in a table and submits request.
    In return i will get a list of invalid cost centers which i need to display in a table with input field
    In that table all cost centers will displayed, but invalid cost centers should be highlighted or background color should some other color. like red or yellow.
    Is it possible using java code to change a input field color.
    Please help me.
    Thanks

    Hi,
        declare a error message in message pool and declare a method say "checkCostCenters " and in this method, u can check whether it is a valid cost center .. if it is invalid cost center , then throw the erro message using the below code :
    wdComponentAPI.getMessageManager().reportContextAttributeMessage(
                        inputfieldattibutePointer, IMessageProgramPlanComp.ur error message,
                        new Object[] );
    for getting pointer and label use the below code:
    IWDAttributePointer inputfieldPointer = URNODEELEMENTElement
                        .getAttributePointer(URNODEELEMENT.ATTRIBUTENAME);
              String inputfieldLabel = wdContext.nodeURVALUENODE.getNodeInfo()
                        .getAttribute(URNODELEMENT.ATTRIBUTE).getSimpleType()
                        .getFieldLabel();
    hope it helps..
    Thanks and Regards

  • Can I change the Jar contents trough Java code ?

    It may seems a little bit wierd, but it could solve a lot of acessibility problms....
    Can I change/set the jar contents using java code ?
    My real problem: I'm creating a EDI Client and using a XML file as configuration file. It's running well but this XML is much exposed to unauthorized users....
    Can I set a value in this XML file if it is inside a jar file ??

    you can look at class JarOutputStream . You could also use class RunTime to just create a new jar with the proper files via the normal jar command.

  • Is it possible to change Overridden Qualified Table Name in code?

    Hi,
    Environment: Crystal Reports XI R2, 2008, Sql Server 2005
    I had about 1000 reports to change. Several changes are the standard, so i had created several tools that i use to make that change in all reports.
    However i can't find a way to change Overridden Qualified Table Name and remove the Catalog and Owner information, so it seems that the only way is using CR editor and make these changes one by one... not a good idea!
    Does anyone managed to do this???
    Thanks,
    Carlos Crespo

    Hi,
    <P>Thanks for your input.</P>
    <P>I use CR in two ways:<BR>
    a) to develop reports to use in our projects - In this case we don't have major issues with this, and we chance the location of the database in code at runtime;<BR>
    b) to develop reports to use in ERP softwares from third parties - and here we are having some issues - not always but some times.<BR>
    We know that they change the location of the DB in code also (no specific info however).<BR>
    <P>An example:<P>
    We change a report on my development PC, against a DB called TEST;<BR>
    We send the report to the customer, who runs it on its system, trying to read data from a db XYZ;<BR>
    If the customer also has a TEST db, in some reports the system reads some tables from XYZ, but others he gets the info from TEST db. In one example our customer has an invoice where all data was from the production DB, except the COUNTRY table that was read from a copy of the TEST db. After TEST was removed, the data was read from the production DB....<BR><BR>
    And to get you an idea: we're talking about hundreds of customers - some of them have 600 SQL DBs in the same server (small Dbs, around 70/500 MB in size) - so we can only hope that the user doesn't create a DB with the same name we used to develop the report...<BR><BR>
    And what i don't understand is WHY we can define Overridden Qualified Table Name  in same tables, and not in others.<BR><BR>
    Example:<BR><BR>
    One of the reports has 6 sub-reports. <BR>
    I can define Overridden Qualified Table Name  in the main report (except for a View), and in 2 of the subreports - but not in the other 4...<BR>
    The zero in front of the table name shows  a table where Overridden Qualified Table Name has been defined, and the original Catalog and Owner was removed - the 2 shows a table where Overridden Qualified Table Name has been defined, but the original catalog (PRITESTEDOC75) and owner (dbo) remains.<BR><BR>
    I even tried to export the sub-reports, change this info in the sub-report, and then import it again (a suggestion from Business Object support), but it doesn't work...<BR><BR>
    Main Report:<BR>
    Artigo     0     <BR>     
    CabecDoc     0     <BR>     
    LinhasDoc     0     <BR>     
    ModosExp     0          <BR>
    Clientes     0          <BR>
    CondPag     0          <BR>
    DocumentosVenda     0     <BR>     
    Moedas     0          <BR>
    MoradasAlternativasClientes     0     <BR>     
    OutrosTerceiros     0<BR>          
    ArtigoIdioma     0          <BR>
    Paises     0          <BR>
    ArtigoLote     0     <BR>     
    TDU_CC_INFODOCVND     0     <BR>     
    Clientes_Fac     0     <BR>     
    Paises_Fac     0          <BR>
    V_Entidades     2     PRITESTEDOC75     dbo        (V_Entidades is a View, not a Table)<BR><BR>
    Sub-Report 1:<BR>
    GCP_VND_CalculaTotaisDocumento     2     PRITESTEDOC75     dbo (GCP_VND_CalculaTotaisDocumento is a SP)<BR><BR>
    Sub-Report 2:<BR>
    CnfTabLigCBL     2     PRITESTEDOC75     dbo<BR><BR>
    Sub-Report 3:<BR>
    LinhasNumSerie     2     PRITESTEDOC75     dbo<BR><BR>
    Sub-Report 4:<BR>
    ResumoRetencao     0          <BR>
    Historico     0          <BR>
    OutrosTerceiros     0          <BR>
    EntidadesPublicas     0          <BR>
    Clientes     0          <BR><BR>
    Sub-Report 5:<BR>
    1 ResumoRetencao     0     <BR>     
    2 Historico     0          <BR>
    3 OutrosTerceiros     0          <BR>
    4 EntidadesPublicas     0     <BR>     
    5 Clientes     0     <BR><BR>
    Sub-Report 6:     <BR>
    1 ResumoIva     2     PRITESTEDOC75     dbo<BR>
    2 CabecDoc     2     PRITESTEDOC75     dbo<BR>
    3 Iva     2     PRITESTEDOC75     dbo<BR><BR>
    Best Regards,<BR><BR>
    Carlos Crespo<BR>

  • Change Screen Resolution or not Change Screen Resolution?

    I mean is it possible to change screen resolution with Java?
    I read some topics (not in this forum) that is impossible. I know there is a method to set at full screen a frame with the favourite resolution but does it effectively exist a method to set the screen with a favourite resolution?
    For example:
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setUndecorated(true);
            frame.setIgnoreRepaint(true);
            device.setFullScreenWindow(frame);
            if (displayMode != null && device.isDisplayChangeSupported()) {
                try {
                    device.setDisplayMode(displayMode);
                } catch (IllegalArgumentException iae) {
                    System.err.println("EX: " + iae);
            ...the device.setDisplayMode(displayMode) always throw me an exception: Invalid Display Mode (or something like that) with all permitted display modes (640by480, 800by600, 1024by768, etc...), with all permitted refresh rates, with all permitted color depths.
    Illuminate me please!
    Thanx in advance!

    Hi,
    I think i you should check this link
    http://forum.java.sun.com/thread.jspa?threadID=624649&messageID=3554316
    with help of above link you solve your problem of screen resolution
    but problem with above code is when you apply on frame that's ok but is you add any JDialog to that frame then JDialog and move JDialog with mouse dragged and dropped
    then dialog is invisibly run .
    you check this i you find any solution please post that it's urgent

  • Is it possible to change text colour in code view?

    Hi all,
    Not sure if this is possible as never seen it myself, but is it possible to change the text colour in the code of the html?
    A site I am building at the moment is for a school who want to be able to edit text / links occasionally, and as they will only be using something like notepad and have no html knowledge between them whatsoever, I thought if I could highlight bits in the code which are 'not to be played with' it would make everyone's job a lot simpler!
    Possible or not?

    cs6_noob wrote:
    Can the comments only go at the beginning of a line, or can they, for example go after say a <p> tag but before the page text? (If you get my meaning!)
    Eg <p><!--edit from here--!>welcome to our website<!--up to here--!></p>
    Yes, you can, but you need to make sure the HTML comment tags are correct. What you have done won't work, but this will:
    <p><!--edit from here-->welcome to our website<!--up to here--></p>
    Notice that the exclamation mark is only in the opening comment tag. Not in the closing one.
    Opening tag for comment:
    <!--
    Closing tag:
    -->

  • Change the video resolution when capturing a WEB-cameras

    Language: Java
    It is used in addition: JMF
    When capturing video from WEB-cameras with JMF - getting the video is at the lowest resolution.
    Can you please tell how to change the video resolution?
    The code by which the captured image (no SWING-forms):
    MediaLocator getWebCam = new MediaLocator("vfw://0");
    private Player player;
    Timer timer = new Timer(40, this);
    public BufferedImage grabFrameImage() {
    Image image = null;
    FrameGrabbingControl frameGrabbingControl = null;
    if (player != null)
    frameGrabbingControl = (FrameGrabbingControl) player.getControl("javax.media.control.FrameGrabbingControl");
    Buffer buffer = frameGrabbingControl.grabFrame();
    if (buffer != null)
    image = new BufferToImage((VideoFormat) buffer.getFormat()).createImage(buffer);
    if (image != null)
    return (BufferedImage) image;
    return null;
    public WorkWithWebCam() throws NoDataSourceException, IOException, NoPlayerException {
    initComponents();
    player = Manager.createPlayer(Manager.createDataSource(getWebCam));
    player.start();
    private void jButton1ActionPerformed(ActionEvent e) {
    timer.start();
    public static void main(String args[]) {
    EventQueue.invokeLater(new Runnable() {
    public void run() {
    try{
    new WorkWithWebCam().setVisible(true);
    }catch(Exception ex){}
    public void actionPerformed(ActionEvent e) {
    panelMain.getGraphics().drawImage(this.grabFrameImage(), 0, 0, 400, 300, null);
    P.S. Can you please tell how this forum can be identified code \ listing?

    Hello,
    I don't know if there is a way to change the video. But I think you can easily use your own videos by using a local .mpg or .3gp file via InputStream. Just change the player's parameters in video/mpg instead of capture://video.
    Hope it helps...
    Torsten

  • Changing controlling area from single company code to cross company code

    Hi,
    Due to my client requirement, in the middle of the year, we need to change the controlling area from being same as company code to cross company code controlling area. Although the currency is same. We are going to create a new company code. Is the changing controlling area settings possible to do? what are the precautions and changes need to be taken?
    One more question, we need to change the company code when the new company code is created in the system in Cost Center Masters in the middle of the year. Is this possible after changing controlling area from single company code to cross company code. Right now company code is not appearing in the cost center master.
    Thanks & Regards,
    Saidarao

    Hi,
          If both companies having transaction data its not possible,Normally before defining Organisational Strucutre only we have to deside both companies is assigning same controlling are or have to maitain separately for this we have to compare the Fiscal year,Operating chart of accounts ,if both having same then we will assign both the company codes to one controlling area if these two companies having different currencies also its not a problem.When we creating Controlling Area we have to choose option of controlling area as same company code (if one company code one controlling Area) for example if you assigning two companies then we have to use cross company code cost accounting.If u need any further information let me know.
    Regards,
    Satya

  • In Lightroom 4, is it possible to change the resolution when exporting to Facebook?

    Is it possible to change the resolution when exporting a photo to Facebook using either the regular plugin or Jeffrey Friedl's plugin?  I can't seem to do it; I only have control over the image dimensions, not the resolution and the dimensions, as you can see in the screen shots below:
    I have control over both when I export to my hard drive (or a flash drive, etc.), as you can see below:
    I can't find the option to control the resolution when I try to export to Facebook.  Before I got Lightroom 4, I would create whole new low-resolution files of images I wanted to post online using Photoshop.  The image size settings I would use are a longest edge of 10 inches at 72ppi, and I would like to continue doing this.  If I can only set the longest side to 720 pixels (I can't even seem to set the longest edge to an inches value - I can only choose a pixels value) and not change the resolution from 300ppi to 72ppi, then my photos' longest edge will only be less than 3 inches long (right?).  Thus, I really want to be able to upload low-resolution photos to Facebook via Lightroom with the ability to change both the resolution and the image dimensions.  Any idea how to do it without having to export to my hard drive first?  Thanks!

    Rob Cole wrote:
    I'd be inclined to set it to zero so it obviously doesn't mean anything
    You can set it to whatever you like, and it makes no difference. Most of the time (depending on how you saved it), it will still open as "72".
    When you save an image for web, the resolution is usually stripped from the file. It's simply not there anymore. That's probably what happens in the Lr facebook module, and that's why there's no entry for it.
    But when you open that image somewhere else, that default of 72 ppi is assigned. Most apps need to know what to do with a file if asked to print it out. So there is a default, and that's usually 72, mostly by convention. With that default ppi, it prints out at a comparable size to what you see on screen at 1:1 display.
    And when people see that, they think "hey, web images are 72 ppi". But they're not - that figure is just inserted there by the opening application.

  • Changing screen resolution

    Hi Everyone,
    I'm quite sure that it is not possible to change the screen resolution from within a running java program. The problem is that my boss won't believe it until he reads it in the spec. Does anyone out there know where to find a anything about it the specs?
    Thanks in advance
    jan

    Hi! The screen resolution is a function of the underlying OS and cannot be changed from a Java program, unless one resorts to JNI. However, the screen resolution can be retrieved from a Java program. Look at the docs for the getScreenSize() and getScreenResolution() methods in the java.awt.Toolkit packges. Note that these methods are abstract. The actual implementation depends upon the vendor.
    Perhaps you can ask your boss to search the Java docs for methods that allow Java code to change the resolution w/o resorting to JNI. We'll all be glad to know! :-)
    Hope this helps!
    Cheers!

  • Problem to change screen resolution in MB Intel DG41 with video on board

    Hi, I need some help as soon as possible because this problem it´s make me difficult my job. I have installed the MAC OS Snow Leopard 10.6.2 in a Motherboard Intel DG41 with micro Core2Duo and video on board of this motherboard and don´t let me change screen resolution. I have a display of 22´ inches and the panel to change the screen resolution only mark 1024x768. I think the more likely it is that the system does not recognize me the drivers to this chipset of video. I searched everywhere on the internet but I have not found the solution.
    Thanks Fernando

    First of all sorry for my English is not very good. My PC is an Intel MotherBoard DG41 with onboard video and a micro Core2Duo. The system is MAC OS Snow Leopard 10.6.2.
    Thanks for replying

  • Is it possible to change the size of the 'Close' button in Full Screen viewing mode?

    I am currently using Firefox for a kiosk type scenario. We require that the browser run full screen. The issue is that the 'Close' button is not large enough for users to consistently see, so they're having issues figuring out how to close an active browser window.
    Can anyone tell me if it's possible to change this icon? I've tried using themes, but they tend to theme everything but the close button.
    Custom configuration details are below.
    Firefox version: firefox-3.0.4-1.el5.centos
    Customisations:
    Access to local drives disabled:
    Modified the contents of /usr/lib/firefox-3.0.4/chrome/browser.jar, so that browser.js has the added stanza:
    <pre><nowiki>if (location.match(/^file:/) ||
    location.match(/^\//) ||
    location.match(/^resource:/) ||
    (!location.match(/^about:blank/) &&
    location.match(/^about:/))) {
    loadURI("about:blank");
    }</nowiki></pre>
    Various menus & bookmarks disabled in chrome/userChrome.css
    <pre><nowiki>/* Kill "normal" bookmark icons in the bookmarks menu */
    menuitem.bookmark-item > .menu-iconic-left {
    display: none;
    /* kill icons for bookmark folders in Bookmarks menu */
    menu.bookmark-item > .menu-iconic-left {
    display: none;
    /* kill icons for bookmark groups in Bookmarks menu */
    menuitem.bookmark-group > .menu-iconic-left {
    display: none;
    /* Remove the Edit and Help menus
    Id's for all toplevel menus:
    file-menu, edit-menu, view-menu, go-menu, bookmarks-menu, tools-menu, helpMenu */
    helpMenu { display: none !important; }
    tools-menu { display: none !important; }
    file-menu { display: none !important; }
    edit-menu { display: none !important; }
    view-menu { display: none !important; }
    go-menu { display: none !important; }
    bookmarks-menu { display: none !important; }
    #autohide-context { display: none !important;}
    #bookmarksToolbarFolderMenu { display: none !important;}
    #organizeBookmarksSeparator { display: none !important;}
    .tabbrowser-tabs .tab-icon {
    display: none;
    #urlbar {
    font-family: Arial !important;
    color: Black !important;
    font-size: 26 !important; }</nowiki></pre>

    Try code like this:
    <pre><nowiki>#window-controls .toolbarbutton-icon {
    width: 25px !important;
    height: 25px !important;
    </nowiki></pre>
    The three buttons have these IDs:
    <pre><nowiki>#minimize-button
    #restore-button
    #close-button</nowiki></pre>

  • Is it possible to change the CATEGORY TITLE font color and/or size of each tile group in start screen, when the tiles are sorted by CATEGORY?

    TIA.

    Q.  Is it possible to change the CATEGORY TITLE font color and/or size of each tile group in start screen, when the tiles are sorted by CATEGORY?
    A.  No
    Carey Frisch

Maybe you are looking for

  • Creating Java applet

    I have to create a Java applet, but I don't know how. It should display a simulation of running rabbit in 10 circles, explaining the For cycle in a programming language C. I tried to make it in NetBeans, but I couldn't. Can anubody please help me? An

  • How do you change name on new ios7 games centre

    Can anyone help with how to change my name on games centre

  • My phone keeps giving me a message that it is too hot to use

    I keep getting an error message on my phone that the temperature is too high and that I need to allow it to cool down before using. I can only use the phone for about 1-2 minutes before it gives me that message. I have to put in fridge to cool it dow

  • Looking for Lion + InDesign users

    Hi All, I use InDesgin heavily for photographic album design, and since upgrading to Lion have hit an annoying problem. When designing, I 'Place" (Command-D) images into the document, and do so by selecting my aperture library from the 'open' dialog

  • Removing targets manually

    Hi. I am in a situation where a couple of servers(hosts) are decommissioned and we did not stop the agent(oem agent on decommissioned servers) before that. Now I am facing issues to remove those targets(hosts, agents) in our OEM 10g R1 Grid control.