BLAF -  Browser Look And Feel

I have been looking at BLAF Guidline Specification. I am using it as a guid for building our Portal solution.
But lately there have been som problem with this pages.
The links to the gif are lost, and the education link does
not work.
I hope you can repair this pages, it is a very nice place
to look to get ideas.
http://otn.oracle.com/tech/blaf/specs/index.html
Regards
Atle Lovstakken

Hi,
Try skinning. Below are two links enough to get you started.
http://www.oracle.com/technology/products/jdev/101/howtos/adfskins/index.html
http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/skin-selectors.html
Regards,
Chan Kelwin

Similar Messages

  • Oracle Browser Look and Feel (BLAF) UI

    Can you suggest where can I find the documentation on "Oracle Browser Look and Feel (BLAF) UI Guidelines"?

    http://www.oracle.com/technology/tech/blaf/index.html

  • PushButton with Windows XP Look and Feel

    Hi all,
    I am looking for a way to give my buttons in my Oracle Forms 10gR2 (with Sun JPI 1.5) a Windows XP look and feel. In my formsweb.cfg I can choose between a generic and an oracle look and feel. The generic look and feel claims to have the windows look and feel, but unfortunatly, this is a Windows 3.11 L&F. Because of the overall look and feel of the Oracle L&F we decided on using this L&F but we would like our buttons to look like other buttons in Windows XP. I think this can be done by building a specific java implementation class but I have no experience with this.
    Did anybody already build such an implementation class and willing to share it with me?
    Thanks in advance,
    Harold

    The only way to accomplish this is with a Java Bean or PJC. Refer to the Oracle Forms Demos for some examples of what can be done with Beans and PJCs. Also, refer to the following page:
    http://forms.pjc.bean.over-blog.com/categorie-450786.html
    Forms Demos on OTN:
    http://www.oracle.com/technology/sample_code/products/forms/index.html
    One other suggestion would be to use:
    LookAndFeel=oracle
    colorScheme=blaf
    This will not resemble XP, but does offer a more professional looking application over the standard colors. BLAF was originally created for Oracle Applications, but works in all versions of Forms 6i and newer. BLAF = Browser Look And Feel

  • Is a JSP Tag Library providing Oracle Financial look and feel available

    We are going to use Oracle Financial as part of our future application.
    That is why other parts of it (which we plan to develop using JDeveloper)
    have to have the same Look and Feel.
    Is a JSP Tag Library that provides Oracle Financial Look and Feel available?

    Oracle Applications use BC4J, UIX, and JDeveloper.
    The UIX framework implements the Oracle "Browser Look And Feel" (BLAF) that our Oracle Applications self-service applications use.
    The UIX JSP tag library lets JSP developers do the same.

  • Type of browser affecting the look and feel

    Hi all,
    My webdynpro application, when viewed in portal iview from different browsers, causes great misalignment issues.  For ex the application when viewd from IE looks perfectly fine, but when I use browsers like mozilla, chrome, safari etc there are many look and feel issues.  Is there a way which the appliction would look same in all browsers or some sap note for this issue.
    Thank you
    Regards,
    Preet Kaur

    Hi Preet,
    SAP Portal doesn't really support all the latest versions of browsers. I would suggest you to check the Platform Availability Matrix for browser compattibility based on your portal version.
    If the issue is happening in SAP Delivered theme, and if the browser is supported by SAP - you can reach out to SAP for help.
    In case of WD4A, your portal theme version should be higher than the backend version.
    There are multiple notes with reference to browser compattibility which you might want to check based on your version, exact problem and type of application.
    Thanks,
    Shanti

  • Changing Look and Feel programatically ??

    Hi,
    Is there a way in WLP815 to apply a look and feel programatically may be by using desktop backing or some other way?
    I tried to use LookAndFeel.setSkin() in desktop backing preRender method to change the skin from 'default' to say 'custom',
    To my surprise, It is rendering images from 'custom' and CSS styles from 'default' skin. Hmmmm.
    I even cleared the cache on my browser. But no luck :-(
    Does any one had this issue and know a work around?
    Thanks in advance!
    -Subba

    I use following code in header backing "init":
    LookAndFeel lookAndFeel = LookAndFeel.getLookAndFeel(request);
    lookAndFeel.setSkin(newskin);
    lookAndFeel.setSkeleton(newskeleton);
    lookAndFeel.reinit();

  • Look and feel resoures could not be found error message

    Hi all,
    We moved all the images,js and css files to apache.
    The entryes in the skin.xml file are below
    <ns:render-dependencies>
    <ns:html>
    <ns:links>
    <ns:search-path>
    <!-- <ns:path-element>/</ns:path-element> -->
    <ns:path-element>/intranet/static</ns:path-element>
    </ns:search-path>
    <ns:link href="/intranet/static/css/body.css" rel="stylesheet" type="text/css"/>
    <ns:link href="/intranet/static/css/book.css" rel="stylesheet" type="text/css"/>
    <ns:link href="/intranet/static/css/button.css" rel="stylesheet" type="text/css"/>
    <ns:link href="/intranet/static/css/form.css" rel="stylesheet" type="text/css"/>
    </ns:links>
    <ns:metas/>
    <ns:scripts>
    <ns:search-path>
    <!-- <ns:path-element>/</ns:path-element>
    <ns:path-element>../js</ns:path-element> -->
    <ns:path-element>/intranet/static</ns:path-element>
    </ns:search-path>
    <ns:script src="/intranet/static/js/util.js" type="text/javascript"/>
    <ns:script src="/intranet/static/js/skin.js" type="text/javascript"/>
    <ns:script src="/intranet/static/js/delete.js" type="text/javascript"/>
    </ns:scripts>
    </ns:html>
    I found the below error in logfiles
    <Feb 3, 2010 11:41:27 AM EST> <Error> <netuix> <BEA-423128> <The look and feel r
    esource at base path /intranet/static/js/util.js could not be found.>
    <Feb 3, 2010 11:41:27 AM EST> <Error> <netuix> <BEA-423128> <The look and feel r
    esource at base path /intranet/static/js/util.js could not be found.>
    <Feb 3, 2010 11:41:27 AM EST> <Error> <netuix> <BEA-423128> <The look and feel r
    esource at base path /intranet/static/js/skin.js could not be found.>
    <Feb 3, 2010 11:41:27 AM EST> <Error> <netuix> <BEA-423128> <The look and feel r
    esource at base path /intranet/static/js/skin.js could not be found.>
    <Feb 3, 2010 11:41:27 AM EST> <Error> <netuix> <BEA-423128> <The look and feel r
    esource at base path /intranet/static/js/delete.js could not be found.>
    first it is looking into the web root and it is going to static root.
    Thanks,
    Venkata sarvabatla

    simplest is revert all the changes you made to what it was when you only had portal.
    Lets say your webapp had context /webapp and your site was accessed as
    http://yourserver/webapp. Lets say the images were under
    http://yourserver/webapp/framework/skins/yourskin/images/abc.jpg and so on for js/css.
    Then you added an apache and configured it to point to your weblogic for all requests (code and static).
    Now copy all the static files from your weblogic (via your build process) /webapp/framework/* to the same directory structure under apaches docroot so that
    <APACHEDOCROOT>/webapp/framework/skins/yourskin/images/abc.jpg is a valid path. Add a rule in Apache which states that /webapp/framework/* is served from apache (or you can say all .jpg,.css,.js is served from apache) and this rule should take precedence over the rule which says /webapp/* goes to weblogic.
    I dont know the exact details on apache , but I presume your apache admin will know. verify by adding a new dummy image file only on apache and access it over the browser. If you get it , then it means your apache is configured correctly, if you get a 404 it means your apache is still forwarding to weblogic.
    This has the advantage that developers can work locally without any change because all the paths are the same with or without apache so the site will work the same way on a local desktop as it would with apache.

  • Discussion of Weblog:  ABAP Look and Feel Service

    <a href="/people/brian.mckellar/blog/2005/06/12/bsp-in-depth-abap-look-and-feel-service In-Depth: ABAP Look and Feel Service</a>
    <i>The three minutes routine to change any SAP-blue theme to the new theme that is required for you next demo!</i>
    If there should be any questions, comments, etc on this weblog, please post it here, so that it is easier to handle the traffic. We are also interested to see if anyone does actually use the tool.

    Hiya,
    I saw this blog posted a while back and have only now had a chance to use it - very cool work there Brian and Steffan!
    The only thing is I'm having what looks like the same problem as Maximilian!
    We're on 620 sp45.
    Everything installed fine, I tweaked the mime version code for 620 (me->ifur_d2_system~css_version) and the left hand side of the screen, the editor itself, looks and works fine - but the preview screen doesn't work, the BSP is displayed with no theme at all.
    I opened the BSP in a new page with default theme and set the theme manually with paramters and this doesn't work either.
    i.e.
    http://<host>:<port>/sap/bc/bsp/sap/it05/entrypoint.htm?sap-themeRoot=%2fsap%2fpublic%2fbc%2fur%2fdesign2002%2fthemes%2falfs1000202FFE4C43B2D1B7D674EDAA520565656
    But if I try with an SAP standard theme everything works fine and the new theme is picked up correctly
    i.e.
    http://<host>:<port>/sap/bc/bsp/sap/it05/entrypoint.htm?sap-themeRoot=%2fsap%2fpublic%2fbc%2fur%2fdesign2002%2fthemes%2f~sap_standard
    I've checked the URL encoding (using program BSP_DECODE_URL) and with the alfs theme this looks fine.
    In the source code the stylesheets are referenced using the correct themeRoot i.e.
    <link id="urstyle" rel="stylesheet" type="text/css" href="/sap/public/bc/ur/design2002/themes/alfs1000202FFE4C43B2D1B7D674EDAA520565656/ur/ur_ie6.css">
    When I set a break point in the ALFS HTTP handler this is not picked up.
    BUT the one really puzzling thing about all this is that whilst I've been trying to fix this and work out what is going wrong I've made small changes to the ALFS class, i.e. to change the default BSP application used in the editor, and sometimes after generating the class code, refereshing both browser and system caches, everything worked fine - even the debugging of the HTTP handler - for some generated themes - and then stopped working again!
    Now I know how this reads - and I've worked with enough users in my time to know you must be thinking - well she must have changed something! But I really can't work out what it could have been.
    I've been round and round trying to reproduce what ever it was to get this working.
    I've tried all the following in various combinations:
    - restarting ICM
    - removing ALFS HTTP handler from ICF service
    - starting with a completely new copy of the class
    - adding alert statements to the ALFS editor page to track themeRoot values
    - changing the code relating to me->ifur_d2_systemcss_version and me->ifur_d2_systemur_version so that there is a version number (tried 'urversion=DAT<date>' and plain 'DAT<date>'), changed the code so there is no version number used at all.
    - even (don't laugh!) put the ALFS HTTP handler on node SAP/BS/BSP just to make sure the external debugger was still working (it was). At this point I could see each time it was called, and since each call did not have the alfs string in it, all the internal class processing was correctly skipped.
    All of the above in combination with cache refreshing on both server and brower side and logging on/off.... and still feel no closer to resolving this.
    From what I understand, the ALFS HTTP handler is called everytime a MIME or theme object is requested from the theme root - as this is the only time that a request would pass via SAP/PUBLIC/BC/UR. And I understand that if the requested object is already cached, there will be no request passing via this node, so the ALFS HTTP handler won't be called - but think that there must be some important point relating to caching that I must have missed ...
    So that's my first question... help!
    Also, Brian, what you have mentioned before, this patch you have to take a theme, patch it with ALFS then import it into the theme editor - this sounds like exactly what we need to do ... I couldn't see any weblogs relating to this - so could you point me in the right direction??
    We have no portal so I'll be trying the standalong theme editor plug in for Eclipse.
    Thanks in advance,
    Cathy

  • 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

  • Changing the look and feel of the logon screen and portal themes.

    Dear all,
    we got some  requirements  in the portal  where i have implement the following things..
    1) when we give the portal url in the browser along with logon screen i have to display the some content related to the organaisation ,,, there i want to do logon screen customization also.
    2)once login to the portal i need display the some company related information along with  different ESS services .i want to remove the masthead area and in the  role area want to display different services.
    please guide me   to achive this.
    the client is not at all happy with  present look and feel,
    so what we can do t achieve ths?
    Thank you in advance.
    Swapna

    Hi Swapna,
    Portalapp.xml is the configuration file of portal application holding comonents and services. Where as authschemes.xml file is used to determin and tell portal which of the user authentication schemes is to be used. It also tells portal about which logon PAR file should be used. It is defined inside following tags.
    <frontendtarget>Logon PAR File Name</frontendtarget>.
    Take a scenario for example. You have created a custom logon PAR file and made some changes. You cannot see the changes before deploying it. You have to deploy it first. Now, you want that whenever somone logon to portal, your logon PAR should be referred and executed. Authschemes.xml does this work. It maintains a reference to the PAR file that should be used for logon.
    Now, still have to create a custom authschemes.xml file and upload it. (Follow this link for the authschemes file location http://help.sap.com/saphelp_nw04/helpdata/en/1a/3afd4e641b8f42ac07bb77fe30375b/content.htm)
    Refer this link for details on authschemes.xml file: http://help.sap.com/saphelp_nw04/helpdata/en/d3/1dd4516c518645a59e5cff2628a5c1/content.htm
    Let us see in brief what are the steps executed:
    1) You request a portal login
    2) Portal, after receiving a request, looks for a reference to which Authschemes file to be used. It finds it in Visual Admin
    3) Once portal have the name of authschemes file, it parse this file and determin what are the authentication schemes to be used and which logon PAR should be executed.
    4) Only after these steps, it renders logon page to you
    Once you do all these steps, you can see the result on logon page itself. You do not have to look for deployed PAR file.

  • Customised look and feel for B2B/B2C web shop.

    Dear experts,
                I would like to find out if there is an admin page for SAP E-commerce to customise the look and feel of the webshop?
    Thanks.
    Wein

    Hi Wein,
    To change Look and Feel for Web shop is depends on scenario of eCommerce application i.e. B2B or B2C. B2B has different structure than B2C.
    Web Channel application comes in SAP standard with SAP look and Feel. You have to change look and feel as per client requirement.
    To change look and feel of Both B2B/B2C scenario you have to deal with files like CSS, JSP, Properties, XLF and some time you have to add your custom JAVA, JSP, CSS, Properties files etc...
    To change standard SAP logo youhave to make change in CSS files. Also you have to consider Browser type while changing look and feel because to display your B2B/B2C application correctly in different browser you have to make changes in different CSS.
    You will get better idea with example how to change look and feel in "Dev & Ext. Guide" for Web Shop. You will get this from Service Market place.
    eCommerce Developer.

  • Windows look and feel instead, in InternalFrameDemo.java

    Hi all, I am learning swing and I am trying to modify the
    InternalFrameDemo.java source from
    http://docs.oracle.com/javase/tutorial/uiswing/examples/components/index.html#InternalFrameDemo
    My idea is to add the line
    JFrame.setDefaultLookAndFeelDecorated(true); in the constructor, but it doesn't work
    and I don't understand why.
    Could somebody please help me?
    Kindest regards,
    Lasse
    public InternalFrameDemo() {
    super("InternalFrameDemo");
    //Make the big window be indented 50 pixels from each edge
    //of the screen.
    int inset = 50;
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    setBounds(inset, inset,
    screenSize.width - inset*2,
    screenSize.height - inset*2);
    //FDoesn't work
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Set up the GUI.
    desktop = new JDesktopPane(); //a specialized layered pane
    createFrame(); //create first "window"
    setContentPane(desktop);
    setJMenuBar(createMenuBar());
    //Make dragging a little faster but perhaps uglier.
    desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
    }

    Uh I think you're mistaken. Whenever in doubt or something doesn't work as expected, check the javadocs. The link to the javadocs can usually be found really easily by typing "java 6 classname". In this case:
    http://docs.oracle.com/javase/6/docs/api/javax/swing/JFrame.html
    If you want to set the Windows look & feel as your thread title suggests, this was not the method you were looking for as the javadocs will tell you. That method controls if a frame is decorated or not (as the name suggests), which it is by default. Setting it to true will not change anything.
    So what then? You type into Google "java swing windows look and feel". Without quotes of course.

  • Problems installing the new 'Look And Feel' done by Francios Degrelle

    I have download the new verison of the new 'Look And Feel' from
    http://sheikyerbouti.developpez.com/forms-pjc-bean/LAF/sources/v133/LAF_133.zip
    1- I defined a new section in formsweb.cfg named summit in the middle tier (AS 10g Rel2):
    [Summit]
    baseHTML=base.htm
    baseHTMLjinitiator=basejpi.htm
    baseHTMLjpi=basejpi.htm
    baseHTMLie=baseie.htm
    HTMLdelimiter=%
    workingDirectory=e:\app\summit
    envFile=default.env
    IE=JInitiator
    escapeparams=true
    form=customers_laf
    debug=no
    otherparams=buffer_records=%buffer% debug_messages=%debug_messages% array=%array% obr=%obr% query_only=%query_only% quiet=%quiet% render=%render% record=%record% tracegroup=%tracegroup% log=%log% term=%term% useSDI=yes
    buffer=no
    debug_messages=no
    array=no
    obr=no
    query_only=no
    quiet=yes
    render=no
    pageTitle=Summit
    serverURL=/forms/lservlet
    codebase=/forms/java
    imageBase=DocumentBase
    width=100%
    height=100%
    separateFrame=false
    splashScreen=no
    lookAndFeel=oracle
    colorScheme=blue
    logo=no
    restrictedURLparams=HTMLbodyAttrs,HTMLbeforeForm,pageTitle,HTMLafterForm,log,allow_debug,allowNewConnections
    serverApp=default
    archive_jini=frmall_jinit.jar
    archive=frmall.jar,laf.jar
    WebUtilArchive=
    jpi_download_page=http://java.sun.com/products/archive/j2se/1.4.2_09/index.html
    jpi_classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93
    jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0
    2- then I put a copy of the file 'forms.css' in the middle tier in the folder :
    apache\apache\htdocs
    so as to be on the path and then modified PM$CSS_FILENAME in all forms to be 'forms.css' instead of 'c:\forms.css' and recompiled.
    3-I put a copy of the file 'laf.jar' in the folder : 'd\Ora_AS\forms\java' in the middle tier and added this path to the classpath environment variable.
    4- I restarted the middle tier and wrote this URL:
    http://test/forms/frmservlet/config=summit
    the customers form opened but with no background images,I added the following to the URL '&form=test_laf_color_scheme.fmx',the form opened with the default color scheme to 'purple',I changed it from a drop down list to orange and all buttons background color degraded to orange.
    My questions:
    1-where are the background images ?
    2- I cannot compile the 'laf.pll' file to 'laf.plx',when I compile I get this error:
    FRm-91507 -internal error
    P.S. I read this thread :
    FRM-91507 when compiling a library with Forms 6i
    and I didn't understand it,where do I change the Forms_Path? in the forms Home release 1 or Forms home release 2?!!!
    3-Is the 'forms.css' file properly located? if not? where do I put it?
    Sorry for the long scenario but I'm really confused?
    Thanks
    Mohammad

    Hello,
    I'm curently out of everything so I cannot answer this one. All I can tell is that images are read from the client machine or jar file. If you want read images from the application server, you need the http:// syntax.
    Francois

  • How to change the default look and feel

    Hi.
    Does anyone knows how to change the default Caspian look and feel to, for example, Nimbus ?
    Or the skin feature turns look and feel setting, as We know in java, unnecessary in javafx ?
    I´m using javafx 1.2.
    Cheers

    Canspian is not a look&feel, it's a skin.
    Look&feel only change the SwingComponent,
    regards.

  • Problem with java look and feel

    Hi! This is my first time posting here. Do apologize me if I am not familiar with the regulations here. Thanks!
    Currently, I am developing a project using NetBeans IDE. It is using RMI, and some basic UI. I am facing the following error when I tried applying the java look and feel code. Please see below for the code used and the error message.
    try {   UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
    } catch (Exception e) { }
    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: javax.swing.plaf.ColorUIResource cannot be cast to java.util.List
    at javax.swing.plaf.metal.MetalUtils.drawGradient(MetalUtils.java:196)
    at javax.swing.plaf.metal.MetalInternalFrameTitlePane.paintComponent(MetalInternalFrameTitlePane.java:384)
    at javax.swing.JComponent.paint(JComponent.java:1027)
    at javax.swing.JComponent.paintChildren(JComponent.java:864)
    at javax.swing.JComponent.paint(JComponent.java:1036)
    at javax.swing.JComponent.paintChildren(JComponent.java:864)
    at javax.swing.JComponent.paint(JComponent.java:1036)
    at javax.swing.JLayeredPane.paint(JLayeredPane.java:564)
    at javax.swing.JComponent.paintChildren(JComponent.java:864)
    at javax.swing.JComponent.paint(JComponent.java:1036)
    at javax.swing.JComponent.paintChildren(JComponent.java:864)
    at javax.swing.JComponent.paint(JComponent.java:1036)
    at javax.swing.JLayeredPane.paint(JLayeredPane.java:564)
    at javax.swing.JComponent.paintChildren(JComponent.java:864)
    at javax.swing.JComponent.paintToOffscreen(JComponent.java:5129)
    at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:285)
    at javax.swing.RepaintManager.paint(RepaintManager.java:1128)
    at javax.swing.JComponent.paint(JComponent.java:1013)
    at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
    at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
    at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
    at java.awt.Container.paint(Container.java:1797)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:734)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:679)
    at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:659)
    at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:128)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Java Result: 1

    Thanks for everyone's help!
    Below is the executable code generated using NetBeans which is enough to generate the error message. Sometimes you can get the error message just by running the program. Sometimes the error will occur when you go into the Menu and click on Item.
    * NewJFrame.java
    * Created on January 8, 2008, 1:11 PM
    package client;
    import javax.swing.UIManager;
    * @author  Yang
    public class NewJFrame extends javax.swing.JFrame {
        /** Creates new form NewJFrame */
        public NewJFrame() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                         
        private void initComponents() {
            jDesktopPane1 = new javax.swing.JDesktopPane();
            jInternalFrame1 = new javax.swing.JInternalFrame();
            jMenuBar1 = new javax.swing.JMenuBar();
            jMenu1 = new javax.swing.JMenu();
            jMenuItem1 = new javax.swing.JMenuItem();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            javax.swing.GroupLayout jInternalFrame1Layout = new javax.swing.GroupLayout(jInternalFrame1.getContentPane());
            jInternalFrame1.getContentPane().setLayout(jInternalFrame1Layout);
            jInternalFrame1Layout.setHorizontalGroup(
                jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 190, Short.MAX_VALUE)
            jInternalFrame1Layout.setVerticalGroup(
                jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 95, Short.MAX_VALUE)
            jInternalFrame1.setBounds(80, 40, 200, 130);
            jDesktopPane1.add(jInternalFrame1, javax.swing.JLayeredPane.DEFAULT_LAYER);
            jMenu1.setText("Menu");
            jMenuItem1.setText("Item");
            jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jMenuItem1ActionPerformed(evt);
            jMenu1.add(jMenuItem1);
            jMenuBar1.add(jMenu1);
            setJMenuBar(jMenuBar1);
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addComponent(jDesktopPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 484, Short.MAX_VALUE)
                    .addGap(20, 20, 20))
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jDesktopPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 279, Short.MAX_VALUE)
            pack();
        }// </editor-fold>                       
        private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {                                          
    // TODO add your handling code here:
            jInternalFrame1.setVisible(true);
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new NewJFrame().setVisible(true);
            try {
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            } catch (Exception e) {
                e.printStackTrace();
        // Variables declaration - do not modify                    
        private javax.swing.JDesktopPane jDesktopPane1;
        private javax.swing.JInternalFrame jInternalFrame1;
        private javax.swing.JMenu jMenu1;
        private javax.swing.JMenuBar jMenuBar1;
        private javax.swing.JMenuItem jMenuItem1;
        // End of variables declaration                  
    }Edited by: Boxie on Jan 7, 2008 11:23 PM

Maybe you are looking for