Create or Customize a look and feel

I'd like to create my own java look and feel and I wonder if a tool that allows to create or customize my laf exists ? What's the better or faster way to do so ?

LookAndFeel lf = UIManager.getLookAndFeel();
         // Install a different look and feel; specifically, the Windows look and feel
         try {                         //com.sun.java.swing.plaf.windows.WindowsLookAndFeel
                                        //javax.swing.plaf.metal.MetalLookAndFeel
         UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
         } catch (InstantiationException e) {
         } catch (ClassNotFoundException e) {
         } catch (UnsupportedLookAndFeelException e) {
         } catch (IllegalAccessException e) {
         }

Similar Messages

  • Customize the look and feel through CLAF

    Hi...
    anyone has a detailed document about Customize the look and feel through CLAF
    if you just can give me a link
    thanks

    Ckeck out in OAF Personalization guide CLAF section under "Personalizing OA Framework Applications"

  • Unable to display created Desktop to User(Look And Feel)

    Hi Experts,
    I have created a Theme -> then created Desktop -> assigened Theme to Desktop and then assigened Default framework to Desktop.
    and have changed the Master Rule as below:
    Rule Collection
    *IF User = **
    THEN Portal Desktop = pcd:portal_content/every_user/general/defaultDesktop
    IF User = test_user
    THEN Portal Desktop = pcd:portal_content/SterlingDestop
    So when i log into test_user i can see standard Desktop rather than my Customized Desktop. how do i achieve this.
    I have provided Permission(Portal Content) as read to this User also.
    Thanks In advance.
    Regards,
    Siva

    Hi Siva
    Please check the below blog if you have missed something :
    [Portal Branding for specific user|Portal Branding for specific user]
    Best Regards
    Arun Jaiswal

  • Customize the look and feel of OIM 11g R2 selfsevice page

    Hi All,
    we need to customize the self service UI as per the styles used by client, for eg the background colors, fonts, tab colors, fontcolor etc, I tried doing by configuring skin but the docs say place it in admin.war and cannot find admin.war anywhere.
    Can anyone please help me out? Where to place the trinidad files and my custom css. Also, what will be the high level style classes that I need to override.
    Thanks

    refer the section 30.3 "*Skin Customization in Oracle Identity Manager*" in OIM 11g R2 Developer guide.
    HTH

  • Customize the look and feel of a portlet

    After I published an application component as a portlet and inserted that portlet into a portal page, there are portlet text header and a thin border around the portlet. How can I get rid of the header and the border, or at least to hide them? Thanks in advance.

    Edit the page region properties to turn the portlet border and heading off.

  • Customize look and feel

    I am looking to customize the look and feel of Collaboration Suite namely the page banner and colours for all users (global settings not individual settings). However I cannot find a way to edit the OCS_V2_PAGE_BANNER.

    Can you detail your steps on how you are trying to change this? Also, who are you logged in as?
    Here are the steps:
    Log into the portal page with the admin account.
    Select Builder
    Select Navigator
    Click on the Contents link for OCS_V2_Page_Group section under Page Groups
    Click on Navigation Pages
    Click on the Edit link to change the OCS_V2_PAGE_Banner.
    To change the colors, you can click on the Customize link on the top right hand corner of the page.
    Choose the style tab and then change the style you want to change it to.
    Let me know if this help.
    Ian

  • Customisin Look and Feel

    I am still in the process of "finding my feet" when it comes to programming with Java, and as a result need a little guidance.
    Could anyone please tell me of a good place to find information that offers tutorials or good explanations of how to customize the look and feel of JComponents in swing.
    Much appreciated,
    Craig.

    Take a look at the java source code for the SwingSet2 demo that comes with the java plugin...it's exactly what you need.

  • JSP Tags Look and Feel

    I want to customize the look and feel ( fonts , BG colours , Layout etc ) of the pages rendered for the
    wizard and dialog tags like FormatCustomizer , CrossTabOptions , CalcBuilder etc, in BI Beans 9052 . How can this be achieved ?

    Hi,
    If you are using the BI beta release please use the beta forum to ask your questions.
    BI Beans PM

  • Customizing Look and Feel

    Is there a way to customize the "look and feel" of the OID webtool?
    Also, is there any way to change what is displayed as a result of performing a search? Specifically, I'd like to extend the searchable fields to include businessCategory.
    Any help would be greatly appreciated.

    Hi,
    I assume you are talking about the OID in iAS 9.0.2 and on this release it's not possible.
    It should be possible in 10G, but I'm not sure.
    We gave up and has developed our own GUI's for the OID application.
    Steffen

  • How to customize the title bar on my own Look And Feel?

    Hi all!
    I am creating my own Look and Feel which extends from NimbusLookAndFeel. What I'm doing is overwriting UIDefaults values??, referring to the Painters. For example:
    +uiDefault.put ("Button [Enabled]", new ButtonEnabledPainter());+
    But now I need is to customize the title bar of the JFrame's, but I do not see this option in Painter's values ??can be overwritten by Nimbus (http://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/_nimbusDefaults . html).
    You know as possible? I have to overwrite an existing UI component? The idea is I want to make the look and feel like SeaGlass, but the code seems a bit complex to know where to begin.
    I hope you can guide me on this issue.
    Thank you very much for everything! And excuse my English!.
    Greetings!

    very simple example, with direct methods
    import java.awt.*;
    import java.awt.event.*;
    import java.util.LinkedList;
    import java.util.Queue;
    import javax.swing.*;
    public class NimbusBorderPainterDemo extends JFrame {
        private static final long serialVersionUID = 1L;
        private JFrame frame = new JFrame();
        private JPanel fatherPanel = new JPanel();
        private JPanel contentPanel = new JPanel();
        private GradientPanel titlePanel = new GradientPanel(Color.BLACK);
        private JLabel buttonPanel = new JLabel();
        private Queue<Icon> iconQueue = new LinkedList<Icon>();
        public NimbusBorderPainterDemo() {
            iconQueue.add(UIManager.getIcon("OptionPane.errorIcon"));
            iconQueue.add(UIManager.getIcon("OptionPane.informationIcon"));
            iconQueue.add(UIManager.getIcon("OptionPane.warningIcon"));
            iconQueue.add(UIManager.getIcon("OptionPane.questionIcon"));
            JButton button0 = createButton();
            button0.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    frame.setExtendedState(ICONIFIED);
            JButton button1 = createButton();
            button1.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    frame.setExtendedState(MAXIMIZED_BOTH | NORMAL);
                }//quick implemented, not correct you have to override both methods
            JButton button2 = createButton();
            button2.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    int confirm = JOptionPane.showOptionDialog(frame,
                            "Are You Sure to Close Application?", "Exit Confirmation",
                            JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE,
                            null, null, null);
                    if (confirm == JOptionPane.YES_OPTION) {
                        System.exit(1);
            buttonPanel.setLayout(new GridLayout(0, 3, 5, 0));
            buttonPanel.setPreferredSize(new Dimension(160, 30));
            buttonPanel.add(button0);// JLabel is best and cross_platform JComponents
            buttonPanel.add(button1);// not possible put there witouth set Dimmnesion
            buttonPanel.add(button2);// and LayoutManager, work in all cases better
            titlePanel.setLayout(new BorderLayout());//than JPanel or JCompoenent
            titlePanel.add(new JLabel(nextIcon()), BorderLayout.WEST);
            titlePanel.add(new JLabel("My Frame"), BorderLayout.CENTER);
            titlePanel.setBorder(BorderFactory.createLineBorder(Color.GRAY));
            titlePanel.add(buttonPanel, BorderLayout.EAST);
            JTextField field = new JTextField(50);
            JButton btn = new JButton("Close Me");
            btn.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    System.exit(1);
            contentPanel.add(field);
            contentPanel.add(btn);
            fatherPanel.setLayout(new BorderLayout());
            fatherPanel.add(titlePanel, BorderLayout.NORTH);
            fatherPanel.add(contentPanel, BorderLayout.CENTER);
            frame.setUndecorated(true);
            frame.add(fatherPanel);
            frame.setLocation(50, 50);
            frame.pack();
            frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
            frame.setVisible(true);
            ComponentMover cm = new ComponentMover(frame, titlePanel);
            //by camickr http://tips4java.wordpress.com/2009/06/14/moving-windows/
        private JButton createButton() {
            JButton button = new JButton();
            button.setBorderPainted(false);
            button.setBorder(null);
            button.setFocusable(false);
            button.setMargin(new Insets(0, 0, 0, 0));
            button.setContentAreaFilled(false);
            button.setIcon(nextIcon());
            button.setRolloverIcon(nextIcon());
            button.setPressedIcon(nextIcon());
            button.setDisabledIcon(nextIcon());
            nextIcon();
            return button;
        private Icon nextIcon() {
            Icon icon = iconQueue.peek();
            iconQueue.add(iconQueue.remove());
            return icon;
        private class GradientPanel extends JPanel {
            private static final long serialVersionUID = 1L;
            public GradientPanel(Color background) {
                setBackground(background);
            @Override
            public void paintComponent(Graphics g) {
                super.paintComponent(g);
                if (isOpaque()) {
                    Color background = new Color(168, 210, 241);
                    Color controlColor = new Color(230, 240, 230);
                    int width = getWidth();
                    int height = getHeight();
                    Graphics2D g2 = (Graphics2D) g;
                    Paint oldPaint = g2.getPaint();
                    g2.setPaint(new GradientPaint(0, 0, background, width, 0, controlColor));
                    g2.fillRect(0, 0, width, height);
                    g2.setPaint(oldPaint);
        public static void main(String[] args) {
            SwingUtilities.invokeLater(new Runnable() {
                @Override
                public void run() {
                    try {
                        UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
                    } catch (Exception fail) {
                    UIManager.getLookAndFeelDefaults().put("nimbusFocus", Color.RED);
                    NimbusBorderPainterDemo nimbusBorderPainterDemo = new NimbusBorderPainterDemo();
    }

  • Hi how to create Mac os look and feel??

    hi
    please tell me how to create Mac os look and feel.
    thx.

    I've heard about a Skin look and feel, but I've never used it. Maybe you should look into that. It would probably be the easiest way to create a custom look and feel, but you won't automatically be able to use Aqua unless you're on a Mac. Sorry.

  • Creating an messagebox in forms with look and feel of Windows

    I wanted to create an message box in my form with look and feel of windows.For this i used the package ORA.FFI...but i am getting an error....and i am not bale to clear it...the code is as follows
    Package Specification: -
    PACKAGE messagebox IS
    /*Function message_box calls windows MessageBox function. */
    FUNCTION message_box(plptext IN VARCHAR2,plpcaption IN VARCHAR2)
    RETURN PLS_INTEGER;
    END;
    Package body : -
    PACKAGE BODY messagebox IS
    lh_window ORA_FFI.LIBHANDLETYPE;
    fh_mb ORA_FFI.FUNCHANDLETYPE;
    lh_forms ora_ffi.libHandleType;
    /* Function i_mbx acts as the interface to the Messagebox
    function in windows
    FUNCTION i_mbx(funchandle IN ORA_FFI.FUNCHANDLETYPE,
    plptext IN OUT VARCHAR2,
    plpcaption IN OUT VARCHAR2)
    RETURN PLS_INTEGER;
    PRAGMA interface(C,i_mbx,11265);
    FUNCTION message_box(plptext IN VARCHAR2,
    plpcaption IN VARCHAR2)
    RETURN PLS_INTEGER IS
    ltext VARCHAR2(500) := plptext;
    lcaption VARCHAR2(500) := plpcaption;
    BEGIN
    RETURN(i_mbx(fh_mb,ltext,lcaption));
    END;
    BEGIN
    lh_window := ORA_FFI.LOAD_LIBRARY('d:\','DclMsgBox.dll');
    fh_mb := ORA_FFI.REGISTER_FUNCTION(lh_window,'DclMsgBox',ORA_FFI.C_STD);
    ORA_FFI.REGISTER_RETURN(fh_mb,ORA_FFI.C_CHAR_PTR);
    ORA_FFI.REGISTER_RETURN(fh_mb,ORA_FFI.C_CHAR_PTR);
    --ORA_FFI.REGISTER_RETURN(fh_mb,ORA_FFI.C_INT);
    END;
    Now when i call this function in When-New-Form-Instance as
    declare
    p number;
    begin
    p:=messagebox.message_box('hello','test');
    end;
    I had created an dll for message box and placed the .dll and .lib files in the d:\ of my system.
    I get an error message when i run the app. The error is:
    The instruction at "0x005a3b24" referenced memory at "0x00000006".The memory could not be "read".
    Can anybody please tell me where have i gone wrong....

    Colin Martin wrote:
    I agree the leather look is horrible. It's just not a reflection of the cutting edge modern design we have all got to love over the years. If it has to be there at least give us a choice of looks.
    There is a word for this (not that one) - skeuomorph. Wikipedia defines this as 'a derivative object that retains ornamental design cues to a structure that was necessary in the original. Skeuomorphs may be deliberately employed to make the new look comfortably old and familiar'.
    Common examples are found in audio software with pictures of actual knobs that you turn, as here; and the leather-bound tear-off look of calendar and contacts on the iPad is the same principle: the intention is to make it familiar and friendly to people who might otherwise be frightened off by a modern look because they are not used to modern technology. The whole concept and look of the iOS operating system is being brought into use on Macs for the same reason, to encourage non-tech-savvy people not to be frightened of them.
    This is all very well in its way, but in these two particular cases the result is unfortunate, particularly for experienced users, and it really ought to be possible to choose between the looks (as you can with the Mail layouts), even if the skeuomorph is the default.

  • Create a Look And Feel

    I need to create my Look And Feel and i don't know how to:
    - Change the icons for an object like a checkbox (1 icon when it's checked and one OTHER if not) whithout using an action listener. I need to implement the in a Look And Feel Class.
    - Change the arrow icon of the scrollbar.
    If there is a solution please help me.

    have a look at skin look and feel: www.L2FProd.com

  • EBS customize Look and Feel

    I'm looking at changing the look and feel or design of the pages in E-Business Suite. I have learned some ways on how to go about it. But First I need to download all the files (.xml, .uix, .class, .jsp) related to EBS.
    Now where do i get these files or what folders do i get those files?
    anyone who has tried to do this also..
    regards,
    anton

    Hi,
    I'd suggest you to read the "OA Framework Personalization Guide" and the "OA Framework Developer's Guide" docs.
    You can find them on Metalink (#268969.1 and #269138.1).
    Hope this helps you.
    Bye
    Raffy

  • Modifying Quiz look and feel

    This question has likely been asked before, but I did a
    search of the forum and couldn't find a specific posting. My
    company has just purchased me a copy of Captivate 2, so some of it
    is a bit new to me.
    My question is....
    Can the visual components of a quiz slide (such as the button
    style) be modified directly in Captivate 2? I get how to modify the
    player controls, but can't seem to find any files where I can do
    the same to quiz slide components.
    If I can not do this directly in Captivate, would I be able
    to do this without breaking anything, by exporting a project to
    Flash?
    The company I work for would like to customize (think
    "branding") the Captivate generated controls and general look and
    feel of a finished project. This would be so that different, less
    technical developers, could create materials that had the same
    style.
    Any resources anyone can point me toward would be
    appreciated.
    Thank you,
    TPK

    Colin Martin wrote:
    I agree the leather look is horrible. It's just not a reflection of the cutting edge modern design we have all got to love over the years. If it has to be there at least give us a choice of looks.
    There is a word for this (not that one) - skeuomorph. Wikipedia defines this as 'a derivative object that retains ornamental design cues to a structure that was necessary in the original. Skeuomorphs may be deliberately employed to make the new look comfortably old and familiar'.
    Common examples are found in audio software with pictures of actual knobs that you turn, as here; and the leather-bound tear-off look of calendar and contacts on the iPad is the same principle: the intention is to make it familiar and friendly to people who might otherwise be frightened off by a modern look because they are not used to modern technology. The whole concept and look of the iOS operating system is being brought into use on Macs for the same reason, to encourage non-tech-savvy people not to be frightened of them.
    This is all very well in its way, but in these two particular cases the result is unfortunate, particularly for experienced users, and it really ought to be possible to choose between the looks (as you can with the Mail layouts), even if the skeuomorph is the default.

Maybe you are looking for

  • Base 26 to Base 10 Java Code - Realbasic Equivalent?

    I was looking at this article on wikipedia that includes two java algorithums for converting a base 26 number (letters) into a base ten number (0-10) and back again. Does anyone know how to translate this into realbasic code? What I am looking to do

  • Unlocked mobile phone

    I boughgt an unlocked mpbile phone (order {removed per forum guidelines}) Blackberry 8230. The problem is that I can`t find the slot for the sim card. Does it have one? If not, why you don't mentio it in your offer? How can I solve the problem? Would

  • How can I skip pages going back and forward?

    I would like to be able to skip over pages instead of just going back one page at a time. I know it can be done because I just did it accidentally. A list popped up with all the previous pages I had visited.

  • Implementing Screen Exit

    Hi, How to implement screen exit in a standard SAP transaction? Thanks, Raghavan

  • Help on Join

    Hi, Need to join 3 tables EQUI,STAT,ZCS_SOLTYPE. The required fields in the tables are EQUI - <b>equnr,zzengn,zzrefeng,eqtyp,objnr</b> STAT - <b>objnr</b> ZCS_SOLTYPE - <b>zzengn,zzcrmgroup</b> My structure table is like this        <b>BEGIN OF s_equ