Can i get XP look and feel?

Hi,
I want to XP look and feel in my swing application. In c# i can get XP style but is it possible in java or not. If yes how please give me a little hint
thanks,

Dude. this is just for making the L&F look as native platfrom.
Its better than using motif or some that kinda L&F.
(Looks like XP on Win XP... looks like windows on other win versions)
String nativeLF = UIManager.getSystemLookAndFeelClassName();
     // Install the look and feel
     try {
          UIManager.setLookAndFeel(nativeLF);
     } catch (InstantiationException e) {
     } catch (ClassNotFoundException e) {
     } catch (UnsupportedLookAndFeelException e) {
     } catch (IllegalAccessException e) {
Dont forget to import this :
import javax.swing.UnsupportedLookAndFeelException;
have fun Enjoy!
[email protected]

Similar Messages

  • How Can You Change the Look and Feel of Charts in OBIEE 11g

    How Can You Change the Look and Feel of Charts in OBIEE 11g?
    Edited by: user11973122 on Jul 18, 2012 12:13 AM

    Check these files
    OFM_HOME\Oracle_BI1\bifoundation\web\msgdb\s_blafp\viewui\chart\dvt-graph-skin.xml
    OFM_HOME\Oracle_BI1\bifoundation\web\msgdb\views\dvtchart\obips.dvtchart.xml
    OFM_HOME\Oracle_BI1\bifoundation\web\display\chartfontmapping.xml
    Pls mark correct or helpful if helps

  • Can we change the look and feel of the screen layout

    Dear All,
    I am new to ABAP WebDynpro, and would like to know the following with respect to ABAP WebDynpro :
    1. To what extent can we change the look and feel of the screen layout ?
    2. Is it possible to change the background color of the layout?
    3. Is it possible to change the color of, Buttons etc ?
    Any information / document/ link to explain this would be very helpful ..
    Thanks in advance,
    Aditi

    Hi,
    Psl check out these links.
    check out these webdynpro standard components in SE80 tcode -
    WDR_TEST_UI_ELEMENTS
    check out this link on webdynpro for ABAP-
    http://help.sap.com/saphelp_nw70/helpdata/EN/03/0048413e466e24e10000000a155106/frameset.htm-WD for ABAP
    http://help.sap.com/saphelp_nw70/helpdata/EN/46/9319f88f8115ebe10000000a114a6b/frameset.htm -UI elements
    http://help.sap.com/saphelp_nw70/helpdata/EN/46/9319f88f8115ebe10000000a114a6b/frameset.htm-Button Properties
    http://help.sap.com/saphelp_nw70/helpdata/EN/46/9319f88f8115ebe10000000a114a6b/frameset.htm- For different Layouts
    Regards
    Lekha

  • Where can I find Java look and feel icons besides those provided in sun?

    thanx

    You can draw your own or download from site like the one shown below:
    http://www.graphxkingdom.com/shtml/doc1.shtml
    ;o)
    V.V.

  • Trying to amend a chip on NWBC 4 but get NWBC look and feel?

    Hiya,
    I'me just trying to customize a SAP standard report chip and, from 'documentation', I'd expect to see something like this (rendered in Corbu and it lets me edit):
    But instead I see this (unable to edit without an access key and rendered in NWBC HTML or NWBC 3.5):
    Would anyone know why?
    Thanks!

    Hi Robert,
    Have you checked the configuration you have in NWBC_CFG?
    Also this might help:
    NWBC 4.0 - Gui Theme
    Hope this helps,
    V

  • Downloading look and feels

    Is it possible to say maybe download more look and feesl for java and install them. I see some java based application with very beautiful lookand feels. Can one get more look and feels
    Thank you

    whao! more even at
    http://www.javootoo.com/
    thanks anyway

  • How can I include a JSP, Maximized, and retain look and feel(WSRP)

    I have created a page group and defined a root page with a certain look and feel. There are two portlets on the page. Once the user clicks on a submit button, the portlet performs some action and includes a jsp included in the EAR file. The portlet needs to maximize the UI to display the jsp correctly.
    Once control returns back to the screen, the look and feel is lost and uses Oracle's default style. I have two questions:
    1. From the portlet, how can I retain the look and feel of the page group when referencing "external" jsp (i.e JSPs in the deployed portal EAR file).
    2. How can I "redirect" the user to the home page in a standard way? If there is not a standard way, how do I use the Oracle specific utilities to do it?
    All of my JSPs are developed externally out of the scope of the Oracle Portal.
    Environment - Oracle Portal 10.1.4 on Release 2 using WSRP to contact Oracle Release 3, hosted EAR file (WSRP Producer).
    Thanks in advance.

    Hi José,
    I don't think that is possible. But you can import the css files that ep uses for its look and feel and try to give your web pages similar look and feel. The tables and other controls used in EP are totally different and are done through complex JavaScript coding instead of simple HTML tags. If you want exact lok and feel then i thin you must go for a Webdynpro based application rather then a J2EE application with JSPs.
    Regards,
    Guru.
    PS: Give points for helpful replies.

  • Transparent TextField with Synth Look and Feel

    I am trying to use synth to implement a textfield with a transparent background, and having some problems with it. I can see my panel and the transparent field fine enough in the beginning, but when the text in the field changes, it writes right over the previous text and becomes a pile of unreadable white marks. I've experimented with varying degrees of transparency, but you can still see the old field underneath slightly. Does anyone have any suggestions? My code is below.
    Thanks.
    synth.xml
    <synth>
    <!-- PANEL -->
    <style id="panelStyle">
        <state>
            <imagePainter method="panelBackground" path="../../../lafImages/papyrus_bkgd.gif" sourceInsets="10 15 10 15"/>
        </state>
    </style>
    <bind style="panelStyle" type="name" key="PAPYRUS_PANEL"/>
    <!-- TEXTFIELD -->
    <style id="textFieldStyle">
        <font name="Kudasai" size="12"/>
        <state>
            <color type="TEXT_FOREGROUND" value="#FFFFFF"/>
            <!-- set the alpha value for transparency in 1st two digits -->
            <color type="BACKGROUND" value="#00000000"/>
        </state>
        <opaque value="false"/>
    </style>
    <bind style="textFieldStyle" type="region" key="TEXTFIELD"/>
    </synth>
    my tester
    class SynthTester {
        private JTextField field;
        public SynthTester(){
            initLookAndFeel();
            JFrame main = new JFrame();
            JPanel panel = new JPanel();
            panel.setName("PAPYRUS_PANEL");
            field = new JTextField(3);
            field.setText("0");
            panel.add(field);
            JButton button = new JButton("+");
            button.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    int val;
                    try {
                        val = Integer.parseInt(field.getText());
                    } catch( Exception ex ) {
                        val = 0;
                    val++;
                    field.setText(Integer.toString(val));
            panel.add(button);
            main.add(panel);
            main.pack();
            main.setVisible(true);
        private void initLookAndFeel() {
            SynthLookAndFeel lookAndFeel = new SynthLookAndFeel(); 
            try {
                InputStream is = getClass().getResourceAsStream("synth.xml");
                if( is == null) {
                    System.err.println("unable to load resource stream");
                } else {
                    lookAndFeel.load(is, getClass());
                    UIManager.setLookAndFeel(lookAndFeel);
            } catch (Exception e) {
                System.err.println("Couldn't get specified look and feel ("+ lookAndFeel+ "), for some reason.");
                System.err.println("Using the default look and feel.");
                e.printStackTrace();
                System.exit(1);
    }

    As its name implies, an imagePainter element creates a SynthPainter that paints from an image. For example:
    <synth>
    <style id="example">
    <state>
    <color value="white" type="BACKGROUND"/>
    </state>
    <imagePainter method="panelBackground" path="background.png"
    sourceInsets="5 6 6 7" paintCenter="false"/>
    <insets top="5" bottom="6" right="7" left="6"/>
    </style>
    <bind style="example" type="region" key="Panel"/>
    </synth>

  • Changing look and feel with radio buttons

    k this is the code that i have so far, Yes i read the tutorial and stuff but it doesnt seem to make any sense and all. tell me what else i need in this code to do what i want, its the action performed part i didnt put the other code, what else do i need??? but well...you will see grips of duke dollars to whom can do it
    public void actionPerformed(ActionEvent e)
    String actionCommand = e.getActionCommand();
    if(actionCommand.equals("Metal"))
    try
    UIManager.setLookAndFeel( "javax.swing.plaf.metal.MetalLookAndFeel" );
    catch (Exception ex)
    else if(actionCommand.equals("Windows"))
    try
    UIManager.setLookAndFeel( "com.sun.java.swing.plaf.windows.WindowsLookAndFeel" );
    catch (Exception ex)
    else if(actionCommand.equals("Motif"))
    try
    UIManager.setLookAndFeel( "com.sun.java.swing.plaf.motif.MotifLookAndFeel");
    catch (Exception ex)
    }

    While not in the tutorial, I have found several other things necessary to get the look and feel change to be complete. Here is the code I'm using after I set the look and feel. It seems to do a pretty good job of sync'ing everything together.
                SwingUtilities.updateComponentTreeUI(TDba.getFrame());
                TDba.getFrame().pack();
                Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
                Integer w = new Integer((int)(dim.width * .8));
                Integer h = new Integer((int)(dim.height * .8));           
                TDba.getFrame().setSize(w.intValue(), h.intValue());
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Swing disabled components look and feel problem.

    Hi All,
    I have a Swing application. My system is recently upgraded to JRE 1.6 and I'm facing problem with look and feel of swing components when they are disabled. Color of disabled components is very faint and its being difficult to read the text in such disabled components. In JRE 1.4 this problem was not there. Please let me know what I can do to get the look and feel(Color and Font) of disabled components, same as JRE 1.4.
    Thanks

    Sandip_Jarad wrote:
    ..I have a Swing application. My system is recently upgraded to JRE 1.6 and I'm facing problem with look and feel of swing components when they are disabled. Which look and feel is the application using? As an aside, did it never occur to you to mention the PLAF?
    ..Color of disabled components is very faint and its being difficult to read the text in such disabled components. Why is it so gosh-darned important to read the text on a control that is (supposedly) not relevant or not available?
    ..In JRE 1.4 this problem was not there. Please let me know what I can do to get the look and feel(Color and Font) of disabled components, same as JRE 1.4. Here are some suggestions, some of them are actually serious. I'll leave it as an exercise for you, to figure out which ones.
    - Run the app. in 1.4.
    - Use a custom PLAF that offers a 'less faint' rendering of disabled components.
    - Use Motif PLAF (I haven't checked, but I bet that has not changed since 1.4).
    - Put the important text in a tool-tip.

  • Improving the look and feel of your application

    Deal all java programmers
    I have Frame at the moment that has a menu and displaying 2 images. The application looks very boring and dull at the moment. I am just wondering if there is a class,tool or function in java that can help improve the look and feel of your application and make it looks better and stand out.
    All Regards

    If you're using Java 5.0, you might be interested in Synth:
    http://www-106.ibm.com/developerworks/java/library/j-synth/

  • IC_BASE look and feel (Default theme)  very urgent !!!

    Hi Gurus,
    Somehow the theme of my BSP application ic_base has been changed, entire look and feel of the application has been changed. Is the link between ic_base.css file with the ic_base bsp application has been changed?
    How can I restore my look and feel of my application?
    Very urgent!!!!
    regards,
    Abhi...

    avoid duplicate threads. continue the discussion in your old thread at
    BSP portal display problem (Urgent!!!)

  • WebDynpro look and Feel

    Hi,
    I created a webdynpro application and deployed into portals. We are running Portals SP11. But the webdynpro is not getting custom look and feel what has been added to the portal by default, it is displaying SAP Color theme.
    Any ideas please?
    Thanks
    Vijay

    Hi
      Are your J2EE instances different for WAS and EP. If they are then what is the version of your WAS. You have mentioned EP as SP11.
    Note : In SP11 the below mentioned procedure slightly affects the theme. It works fine in SP10 though. See if the steps mentioned below is of any help to you.
    If you want the color schemes to apply for WebDynpro then you will have to set the theme for the WebDynpro application too.
    Download the Theme Editor available in SDN.
    Follow these steps
    Create a new theme editor project with the same name as the theme name in the portal.
    Import your theme file into WebDynpro.
    You will have to generate your custom theme and then right click and export your theme as a zip file.
    Then extract the Zip file to a folder.Copy the extracted files into the folder
    C:\usr\sap\J2E\JC00\j2ee\cluster\server0\temp\webdynpro\web\sap.com\tcwddispwda\global\SSR\themes
    Then give the path in your Visual Admin --> Configuration Adapter --> WebDynpro >tcwddispwda> default.properties
    Type the path as the following.
    http://<machine_Name>:50000/webdynpro/resources/sap.com/tcwddispwda/global/SSR/themes/sap_chrome
    and also set the property useWebDynproStyleSheet property to true and then restart your J2EE server.
    Hope that helps you. Let me know if you require more inputs
    regards
    ravi

  • Problem about look and feeling

    i want to make my jframe looking and feeling like jdeveloper.what should i do ?

    Hi,
    if I remember well then JDeveloper uses the JGoodies Plastic Look and Feel. Just go to http://www.jgoodies.com/ and get the look and feel.
    Frank

  • Changing the fonts used by the look and feel?

    I want to be able to change the font settings for the program I'm writing. Is there any way to do this without writing my own theme and/or LookAndFeel? For example, is there a way to just use the Nimbus Look & Feel, but override the fonts it uses somehow? I've been browsing around and it seems like most solutions are to write your own theme from scratch, which I'd like to avoid if possible (I don't want to change anything else, just the fonts!).
    Any help or guidance is very much appreciated. Please let me know if I was unclear.

    Thank you both for the links. I realize I didn't ask this initially, and you both answered the question I asked, but I'm actually curious if there's a way to do this consistently across different looks and feels. Just some sort of blanket command that, regardless of what the Look and Feel is, overrides font selections. Perhaps I'm looking for a way to override the mappings of logical fonts? I'm not exactly sure how one would accomplish it.
    I don't do this because I want to force the user into using a specific font, but actually I'm trying to add a feature that allows the user to override the Look & Feel's font choices with their own if they so choose.
    But I can't control what Look and Feel they're using (well, I can, but I have chosen not to).
    Does any of that make sense?
    Edited by: Caryy on Sep 21, 2010 11:22 AM

Maybe you are looking for

  • DVD or CD Sharing no longer works on one computer

    I have a small network of various Macs running 10.6.8.  DVD sharing works fine on all but one.  That one (13" MacBook Pro 10.6.8) cannot find a shared disk on the network (its on the same subnet, all other network services work just fine). Other comp

  • IPhone doesn't appear in iPhoto - unable to import

    I am unable to import photos from my iPhone 3G into iPhoto 8 (v7.1.5). The iPhone does not appear in the left pane, and no idea why? Anny suggestions?

  • Variable Names

    Hi Im trying to write a simple loop that will create n amount of data types by using a for loop for (int i=0;i<5;i++)      MySet set+i=new MySet();      }where it says MySet set+i i want it when it executes to read set1,set2,set3,etc so the variable

  • Read email adress from a text file then check the validity of them

    a text file has three lines, each line contains one email adress: [email protected] qwe@@ws.com wer//@we.net read the email address from a text file, then check which one is invalid, output the invalid email adress in the console.

  • Network Devices not able to connect to the Internet, but local network has no issues.

    Hello All, I have been having this problem for the past 4 months or so(ever since I got the server).  I have a Windows Server 2012 R2 machine running a DHCP server.  I have 2 network devices installed on it.  One hardwired to the motherboard and one