Background of entire application...

Hi,
I was wondering if anyone knew of an easy way to keep the background color of my application all the same? i have a app that looks great on one machine but then bad on another because the "gray" that the numerous systems define as their system color are different and it throws off images amoung other things. I tried to go thru and change the background of each and every component but that is super tedious. I just thought I would check if there was a way to juts set it in one spot?
Thanks, Ben

I have had the same problem, solved like this:
I have a GUITools class with the following method:
public static void setupUILnF()
        //Make sure we have nice window decorations.
          JDialog.setDefaultLookAndFeelDecorated(true);
        JFrame.setDefaultLookAndFeelDecorated(true);
        javax.swing.plaf.metal.MetalLookAndFeel.setCurrentTheme(new myTheme());
          UIManager.put("TextArea.font",EDITABLE_TEXT_FONT);
          UIManager.put("TextField.font",EDITABLE_TEXT_FONT);
          UIManager.put("ToolTip.background",TOOLTIP_BG);
          UIManager.put("ToolTip.font",DEFAULT_TEXT_FONT);
          //The constants are defined as public static final colors & fonts
     }here is the myTheme class:
public class DropmanTheme extends DefaultMetalTheme
    private final ColorUIResource primary1 = new ColorUIResource(0,0,0);
    private final ColorUIResource primary2 = new ColorUIResource(20,20,20);
    private final ColorUIResource primary3 = new ColorUIResource(GUITools.DARK_BLUE);
    private final ColorUIResource secondary1 = new ColorUIResource(100,100,100);
    private final ColorUIResource secondary2 = new ColorUIResource(GUITools.DARKENED);
    private final ColorUIResource secondary3 = new ColorUIResource(GUITools.BACKGROUND);
    private final FontUIResource controlTextFont = GUITools.DEFAULT_TEXT_FONT;
    private final FontUIResource userTextFont = GUITools.DEFAULT_TEXT_FONT;
    //public ColorUIResource getPrimary1() { return primary1; }
    //public ColorUIResource getPrimary2() { return primary2; }
    //public ColorUIResource getPrimary3() { return primary3; }
    //public ColorUIResource getSecondary1() { return secondary1; }
    public ColorUIResource getSecondary2() { return secondary2; }
    public ColorUIResource getSecondary3() { return secondary3; }
    //public FontUIResource getSystemTextFont() { return ; }
    public FontUIResource getControlTextFont() { return controlTextFont; }
    public FontUIResource getUserTextFont() { return userTextFont; }
    //public FontUIResource getWindowTitleFont() { return ; }
}I have some turned off coz I didnt pick the colors yet.
peace out

Similar Messages

  • How to set the icon for the entire application with JFrame.setIconImage

    I set the icon on the main frame using JFrame.setIconImage(). The icon is shown properly in the main frame.
    If more JFrames are opened from the main frame, the newly opened JFrames also show the icon.
    However if JDialogs are opended, in some cases the icon set on the main frame is shown and in other cases the coffee cup.
    What is JFrame.setIconImage() expected to do? Setting the icon for a single JFrame or the entire application?
    How can I set the icon for the entire application?
    How can I set the icon for JDialogs?
    Thank you

    In order for your dialogs to use the same icon as the frame, you must parent the dialogs to the frame which has the custom icon.
    See the following thread for more information: http://forum.java.sun.com/thread.jsp?forum=57&thread=362542
    cheers,
    Greg

  • I'm trying to get rid of logmein. I threw away the entire application but I can't remove it form my overhead menu bar and the activity monitor tells me it's still running.

    I'm trying to get rid of logmein. I threw away the entire application but I can't remove it from my overhead menu bar and the activity monitor tells me it's still running. How do I get rid of it completely?

    Install it again and use the developers uninstall instructions
    How to uninstall/install software on your Mac

  • How to display the entire application in two different languages in apex

    Hi,
    How to display the entire application in two different languages in apex...
    For example i need to display each item in both English and Hindi..
    To achieve this initially i have the select the language otherwise the item label alone ll be displayed in both languages ...
    Anyhow how it ll be apex is it possible
    Regards,
    Pavan

    Hi pars,
    http://www.packtpub.com/sites/default/files/1346-chapter-6-creating-multilingual-apex-applications.pdf?utm_source=packtp…
    In this link also i struck in
    In page 10  of that document
    The application is now ready to be translated. Everything is in place to run it in any language imaginable.To ca ll the application in another language, change the URL of your application to the following:
    http://yourdomain:port/pls/apex/f?p=&APP_ID.:&PAGE_ID.:&SESSION_ID.:LANG:NO::FSP_LANGUAGE_PREFERENCE:nl
    This example will call the chosen page in the application and show it in the Dutch language instead of in English. To select another language change the property nl at the end of the URL to your desired language code.
    Thanks alot for ur suggestions.kindly provide more inputs..............

  • Background Color on Application tag not showing...

    I just recently upgraded to the nightly build version # 4.0.0.10045 and the backgroundColor property on the main application tag is no longer rendering the background color. I noticed a new ApplicationSkin.mxml in the spark skins with the following:
    <!---
            A rectangle with a solid color fill that forms the background of the application.
            The color of the fill is set to the Application's backgroundColor property.
        -->
        <s:Rect id="backgroundRect" left="0" right="0" top="0" bottom="0"  >
            <s:fill>
                <s:SolidColor color="{getStyle('backgroundColor')}" />
            </s:fill>
        </s:Rect>
    However adding a backgroundColor property to the Application tag or in the CSS has not given any results.

    Ok it turns out it is not the application tag causing problems, but the halo VBoxes, HBoxes and Viewstacks. It seems I can no longer apply background colors to them at all.
    Here's an example:
    <mx:VBox id="footerVBox" horizontalAlign="center" verticalGap="-5" paddingBottom="5" paddingTop="0" backgroundColor="0xFF0000" width="600">
         <mx:HBox horizontalGap="1" verticalAlign="middle">
              <mx:Label text="{copyrightSymbol} 2009 SearchIgnite" fontSize="12" color="#003366" />
              <mx:VRule height="12" strokeColor="#003366"/>
              <mx:Label text="{'Version ' + version}" fontSize="12" color="#003366"/>
              <mx:VRule height="12" strokeColor="#003366"/>
              <mx:Label text="Customer Service 888-744-6483" fontSize="12" color="#003366" />
         </mx:HBox>
    </mx:VBox>
    Is rendering with a white background behind it, obsucring the background color of my application. The backgroundColor style property is not getting applied at all.
    Upon rewriting this group as:
    <s:Group id="footerVBox" width="100%">
         <s:layout>
              <s:VerticalLayout horizontalAlign="center" paddingBottom="5" paddingTop="5"  />
         </s:layout>
         <s:Group>
              <s:layout>
                   <s:HorizontalLayout verticalAlign="middle" />
              </s:layout>
             <s:Label text="{copyrightSymbol} 2009 SearchIgnite" fontSize="12" color="#003366" />
             <mx:VRule height="12" strokeColor="#003366"/>
             <s:Label text="{'Version ' + version}" fontSize="12" color="#003366"/>
             <mx:VRule height="12" strokeColor="#003366"/>
             <s:Label text="Customer Service 888-744-6483" fontSize="12" color="#003366" />
    </s:Group>
    </s:Group>       
    I am able to get the background color of the app to show through. Again I am using build version 4.0.0.10045 and this was not an issue in the previous builds.

  • Is there a way to restrict changing the browsing history in safari with ought restricting the entire application?

    Is there a way to restrict changing the browsing history in safari with ought restricting the entire application?

    For the iPod touch in your profile?
    Private browsing help here >  iOS:  Safari web settings
    For Safari for Mac OS X ...
    From your Safari menu bar click Safari > Private Browsing
    You can only block all history in Private Browsing, pages you visit, and autofill.

  • JDev 10.1.2 - JSF 1.1_02 - error hangs entire application

    Hi,
    I'm building my first JSF application and an issue has arisen during testing which has us all stumped! Whenever an error occurs for a particular user, the entire application then falls over and all other users then see (different) error messages too.
    Let me try to describe the scenario in detail.
    1. 10 users are using the main page of the application quite happily.
    2. Another user logs in and visits a different page in the same application. This page contains a bug.
    3. The application serves the error page to this user as an unhandled exception was thrown when processing the request.
    4. The other 10 users also get the error page even though they have not visited the buggy page! The application has fallen over and requires the container to be restarted.
    Steps 1-3 are obvious, but I don't understand step 4 - why should the application fail to continue serving bug-free pages to all other users? Is this the expected behaviour for JSF applications? (Other platforms I've used don't behave this way.)
    I can easily replicate this issue by introducing a typo to a component's EL binding. The initial error message is
    javax.servlet.jsp.JspException: Error getting property 'thisisatypo' from bean of type com.mypackage.MyBeanAll other users then see a secondary error message:
    java.lang.IndexOutOfBoundsExceptionOther applications on the app server are not affected.
    Is there a way to configure or recode the application to better handle exceptions so that the application itself doesn't hang and other users can continue to use it? Is it a threading issue? Or is this an issue with the application server, which requires reconfiguration to fix it?
    A thread on Sun's JSF forum mentions a similar issue, but no-one has answered it: http://forums.sun.com/thread.jspa?forumID=881&threadID=5049367
    My environment:
    JSF: v1.1_02 (Sun JSF RI)
    IDE: JDeveloper 10.1.2.3.0
    Java: 1.4.2_06
    App Server: Oracle App Server 10g (OC4J 9.0.4.0.0)
    (Upgrading to more recent versions of JSF or application server are not options at the moment - my organisation has already scheduled upgrades sometime within the next 12 months or so, but I cannot bring them forward!)

    Hi Frank, thanks for your reply.
    I did indeed manually configure JSF for JDev 10.1.2 & Oracle App Server 10g (OC4J 9.0.4), following the instructions provided by Oracle at [http://www.oracle.com/technology/products/jdev/howtos/10g/jsf_howto/jsf.html|http://www.oracle.com/technology/products/jdev/howtos/10g/jsf_howto/jsf.html]
    I have just spent some time porting my application to JDev 10.1.3 & OC4J 10.1.3, as you suggest, and I can confirm that the issue does not appear using this platform.
    However, my organisation does not have this version of Oracle App Server in production. As I indicated in my first post, an upgrade from 9.0.4 to a newer version (tbc) should occur sometime in the next 12 months, but we undertook this project on the basis that JSF would work on Oracle App Server 10g (OC4J 9.0.4), as per the "how to" above.
    If this is not the correct forum to pursue this issue, where, or with whom, should I?
    Many thanks,

  • Photoshop auto recovery keeps hanging the entire application. How can I stop this?

    Hello,
    My PS crashed, and I restarted my computer. When I opened the application again, it always tries to recover my previous files.
    When it does that, it hangs my entire application. I don't need the recovered file, I just need PS to work normally.
    Is there anyone with the same experience?
    Thanks!

    Then trash the files in the Folder PSAutoRecover/… on your Scratch Disk.
    If that doesn’t help try restoring Preferences after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved:
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html

  • JSF error hangs entire application

    Hi,
    I'm building my first JSF application and an issue has arisen during testing which has us all stumped! Whenever an error occurs for a particular user, the entire application then falls over and all other users then see (different) error messages too.
    I can easily replicate this issue by introducing a typo to a component's EL binding. The initial error message is
    javax.servlet.jsp.JspException: Error getting property 'thisisatypo' from bean of type com.mypackage.MyBeanOther users then see a secondary error message: java.lang.IndexOutOfBoundsExceptionOther applications on the app server are not affected.
    Is there a way to configure the application to better handle exceptions so that the application itself doesn't hang and other users can continue to use it? Would using an error page resolve this? (I'm currently catching exceptions in try...catch blocks and displaying the error messages using the <h:messages> component.)
    Or is this an issue with the application server, which requires reconfiguration to fix it?
    A previous thread mentions a similar issue, bit no-one has answered it: [http://forums.sun.com/thread.jspa?forumID=881&threadID=5049367|http://forums.sun.com/thread.jspa?forumID=881&threadID=5049367]
    My environment:
    JSF: v1.1_02 (Sun JSF RI)
    IDE: JDeveloper 10.1.2.3.0
    Java: 1.4.2_06
    App Server: Oracle App Server 10g (OC4J 9.0.4.0.0)
    (Upgrading to more recent versions of JSF or application server are not options at the moment - my organisation has already scheduled upgrades sometime within the next 12 months or so, but I cannot bring them forward!)

    Hi BalusC, thanks for your response!
    I am using try...catch blocks around my business & database code and I am already using an errorpage. My question is not so much "how to make errors more user friendly" as "how do I prevent the application producing errors for all users when a single user encounters a bug?"
    I'm having difficulty in clearly explaining my issue, probably as I don't understand the JSF architecture sufficiently!
    Let try to describe the scenario.
    1. 10 users are using the main page of the application quite happily.
    2. Another user logs in and visits a different page in the same application. This page contains a bug.
    3. The application serves the error page to this user as an unhandled exception was thrown when processing the request.
    4. The other 10 users also get the error page even though they have not visited the buggy page! The application has fallen over and requires the container to be restarted.
    Steps 1-3 are obvious, but I don't understand step 4 - why should the application fail to continue serving bug-free pages to all other users? Is this the expected behaviour for JSF applications? (Other platforms I've used don't behave this way.)
    When this app goes to production there will be 800+ users. Although I hope to have eliminated most bugs by then, I don't want the entire user base blocked from the app when a single error occurs for a single user.
    If you know what I might have done wrong or what I'm missing, please let me know!
    Thanks.

  • I m trying to manage space in my iPhone but what I find is I m not able to delete document data alone of an application without deleting the entire application ... Any other suggestions or methods to accompanish this? Any pointers welcome... Is this a bug

    I m trying to manage space in my iPhone but what I find is I m not able to delete document data alone of an application without deleting the entire application ... Any other suggestions or methods to accompanish this? Any pointers welcome... Is this a bug

    You mean take the cover off of the iPhone, to look inside?  I'd recommend against it.  Even with warranty expired, you might qualify for an out-of-warranty service, which for 3GS is $149.
    Other than that, any repair/service options are going to cost money.  You might want to see if a wireless carrier will let you get a new contract & phone.
    Out of curiousity, you're just using at as, basically, an iPod Touch, if there's no cell provider?  Did I understand that correctly?

  • How to read Properties file once and access through the entire application

    HI All,
    I want to read properties file only once and want to access the property file values in entire application (like i want to access it in a ordinary class)

    Please do not double-post. Stick with one thread:
    http://forum.java.sun.com/thread.jspa?messageID=9678612

  • Error : Background synchronization of application [bcbici]

    Thank you very much for your attention.
    Nowadays we have SAP J2EE cluster environment with two nodes.
    Patch's 3  of Portal Platform and Content Management installation ran without problems in the SAP J2EE node 1  but in the node 2 after executing appclear and run adittional task like appears in Installing Patch 3 for Enterprise Portal 60 SP2 the second node does not start satisfactorily. Additional we have had to apply note 740486 "How to fix to freshly installed PL22 Dialog Instance" and update the file config_local.properties since it was not having any value for parameters.
    After realizing these tasks the portal gives us the following mistakes in startup.
    ""Error : Background synchronization of application did not succeed, because of : java.rmi.RemoteException: Error occured while synchronizing application . Committing deploy to container - EJBContainer failed.com.inqmy.services.deploy.container.DeploymentException: ID020230 Cannot load bean , because Exception occured in object instantiation: java.lang.NoClassDefFoundError: com/sap/bcb/common/InternalException
      Synchronization of all applications completed! 
    We don´t know how to solve this error.
    Please can you give me any atditional information.
    Thank you very much in advanced.

    Ignacio,
    Maybe, mention the OSS note in case it solved the problem.
    Thanks,
    Swapan

  • How to secure one page not entire application?

    Hi there,
    I'm looking for some guidance on how to secure individual pages on my site. I've read a number of articles discussing creating a login using the Application.cfc. The thing is this approach locks down the entire site. I only want to secure a page. In my scenario, if the user hasn't logged in, and goes to a profile.cfm page, they will be asked to login. Once they login, they will then be directed to the profile.cfm page.
    Any and all advice would be greatly appreciated.
    Thanks.
    Novian

    Hi, Novian,
    An option that come directly to mind is to check for the specific page to be locked down in onRequestStart of your Application.cfc.
    This approach is relatively easy to implement but may not be the best approach (don't know how it might affect performance or something else). Basically, use a conditional in your onRequestStart method to see if the page being requested by the user is the page that needs to be secured. Something along the lines of:
    <cffunction name="onRequestStart">
         <cfargument name="target_page" />
         <cfif target_page is 'super-secure-page.cfm'>
              <!--- security stuff --->
         </cfif>
    </cffunction>
    There are, of course, other options but this was a quick and easy one that came right to mind.

  • External commands fail in Background Jobs on Application server

    Hi,
    We are having problems with jobs that include External Commands. The jobs run successfully if on the Central Instance. But if they run on either of the two Application Server's it fails with 'Unable to connect to Target Host' error message.
    I can run the External Commands from SM49 on both AS's. But as soon as its run in background it fails.
    I have read the rfcexec.sec file needs to be in the .\work directory on the application so I have this in place.
    This is what gets written to dev_w0 when the failure occurs :
    M  *****************************************************************************
    M  *
                                                                                    M  *  LOCATION    SAP-Gateway on host <APP_SERVER> / sapgw75
    M  *  ERROR       timeout during allocate
    M  *
                                                                                    M  *  TIME        Fri May 30 11:20:34 2008
    M  *  RELEASE     640
    M  *  COMPONENT   SAP-Gateway
    M  *  VERSION     2
    M  *  RC          242
    M  *  MODULE      gwr3cpic.c
    M  *  LINE        1795
    M  *  DETAIL      no connect of TP sapxpg from host <CENTRAL_INSTANCE.domain>
    M  *              after 22 sec
    M  *  COUNTER     483
    M  *
                                                                                    M  *****************************************************************************
    M
                                                                                    A  RFC 1446  CONVID 48742194
    A   * CMRC=27 DATA=0 STATUS=0 SAPRC=242 ThSAPECMINIT
    A  RFC> ABAP Programm: SAPLCRFC (Transaction: )
    A  RFC> User: <USERNAME> (Client: 300)
    A  RFC> Destination: %_TCPIP_%1 (handle: 2, , )
    A  RFC SERVER> RFC Server Session (handle: 1, 48741194, {C4A35AF0-2F4C-4E36-98C3-9999A6FE99D7})
    A  RFC SERVER> Caller host: iblonc4306_P75_75
    A  RFC SERVER> Caller transaction code:  (Caller Program: RSBTCXPG)
    A  RFC SERVER> Called function module: SXPG_STEP_COMMAND_START                                
    I'd really appreciate any suggestions on how to fix this issue??
    Thanks,
    Kye

    Hi Siddhesh,
    Thank you for your prompt response. I'm confident all of the prerequisites are set correctly.
    I have enabled the trace on SAPXPG but its only writing to the log dev_cp and dev_xpg when the command is executed successfully.
    For example, if I use SM49 to run the External command from one of the Application Servers dev_cp & dev_xpg  are updated and the command completes successfully. However if I run the job (that has the external command as a single step) from SM37 it fails and doesn't log anything to dev_cp or dev_xpg??
    Is this normally how the trace would work?
    Thanks again,
    Kye

  • Printing with Gray background on entire page every time I print through Elements 12

    Every time I print a photo in photoshop, a gray background appears on the entire page of the printed paper (except for 1/4th of an inch margin on all sides.)  This does not happen when printing from iPhoto so I assume it is a preference in photoshop or in my driver/printer settings?  I am set up for sublimation printing and with an ICC profile from Conde Systems.  I work in RGB mode and use the specific color profile downloaded by Conde.  
    I have a feeling that when I set up my settings, I somewhere marked the "hard settings" or "default" background color to print in WHITE…which is somehow translating to gray when I print (this is just a guess.) I am thinking that a setting of mine  is off yet I have no idea where to change it.    If I open a new doc, specify that I want the background transparent, it will print without the gray box!  However, if I open an image and simply hit "print" - the entire page is gray - which is wasting tons of ink.  Creating the new doc and placing the image on that doc and then printing it is a fine temporary solution to the problem but it is not conducive to my business.  Anyone with any knowledge on this  situation would be a lifesaver.   Happy to provide any additional details needed!!!
    Please offer any insight you have - this has been driving me crazy for weeks!!
    Thanks in advance.

    The troubleshooting steps in the document here may help resolve the alignment pages printing on your Photosmart c4485 printer.  Do both cyan and black print properly on the alitnment page?

Maybe you are looking for

  • Upgrade to iphone - downgrade part of family plan

    I am currently under my parents family plan. Our contract ends in November 2011. I would like to get the iphone soon. My father would like to downgrade his plan to something with less minutes. I would like to keep the same plan i currently have with

  • After update to iOS 8.3 all my books disappeared from iPhone.

    TThere are no books in iBooks on my iPhone. But my iPad does have the books after the update to iOS 8.3. why is there a difference? Why did this happen at all? How can I get them to sync again?

  • Can't delete game

    Hi, I'm using parallels desktop to run windows xp. I installed a game some time ago and had problems so decided to uninstall it. The problem is that although the game was removed using the Add/Remove software program the game files, although not visi

  • Permissions Problems PT.II The Empire Strikes Back

    Hello all. I initially had a permissions problem with files on my computer after upgrading from Tiger to Leopard last week. I thought I had the problem solved with the doubleteam effort of RodneyW. and V.K. The topic is here: http://discussions.apple

  • High and low sound in the final output to DVD.

    At playback, the audio at the DVD menu is loud compared to the movie on the DVD. In FCP, I am staying below the 0dB with the audio so that it doesn't become distorted. In DVDSP, I can't control the volume. The menu audio is way too loud. its like tha