Vertical JMenuBar width problem

When I flip my JMenuBar vertical instead of horizontal by doing
BoxLayout bl = new BoxLayout(this,BoxLayout.PAGE_AXIS);
setLayout(bl);
in a constructor for a class that extends JMenuBar. When I do that only 3 characters of each JMenu in the menubar are show. The button size is also ruffly half the width of the actual window. I am doing pack() on the JFrame that houses the JMenuBar. At the moment nothing else is in the JFrame. If I do not set the layout of my JMenuBar then I get a regular horizontal one and width is fine. It's only when I want the Menus vertical instead of horizontal. Been experimenting with all kinds of stuff and no go so far. Looking for suggestions?

this produces a menubar, with the screen items vertical, but it takes up too much real estate
import java.awt.*;
import javax.swing.*;
class Testing extends JFrame
  public Testing()
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setLocation(400,200);
    JMenu file = new JMenu("File");
    JMenuItem newItem = new JMenuItem("New");
    JMenuItem open = new JMenuItem("Open");
    JMenuItem preview = new JMenuItem("Preview");
    JMenuItem print = new JMenuItem("Print");
    JMenuItem exit = new JMenuItem("Exit");
    file.add(newItem);
    file.add(open);
    file.add(new JSeparator());
    file.add(preview);
    file.add(print);
    file.add(new JSeparator());
    file.add(exit);
    JMenu options = new JMenu("Options");
    JMenuItem font = new JMenuItem("Font");
    JMenuItem color = new JMenuItem("Color");
    options.add(font);
    options.add(color);
    JMenuBar menuBar = new JMenuBar();
    menuBar.setLayout(new GridLayout(0,1));
    menuBar.add(file);
    menuBar.add(options);
    setJMenuBar(menuBar);
    getContentPane().add(new JTextArea(5,20));
    pack();
  public static void main(String[] args){new Testing().setVisible(true);}
}

Similar Messages

  • Vertical taskbar width does not hold the width after reboot

    Hi.
    I wonder if anyone could help me with this. I've been trying to google the answer for hours but no luck.
    I use the desktop with taskbar on the left side not on the bottom. I'll explain why just to cut questions. Simply because it makes more sense to me to have it on side rather than bottom with 16/9 format of display. I also work with many windows open at the
    same time and this way I can have 15 of them on the taskbar without grouping.
    Problem.
    I need the width of the taskbar to be wide enough at least for 3 icons of the quicklaunch section. Below this width there is not enough space for quick launch icons to fit in the area. I could increase the area but then it uses space for the open windows
    tabs and also date/time are not displayed fully. 3 icons is what makes sense for vertical taskbar. Every time I change the width of the taskbar to 3 it goes back to 2 after reboot. No matter whether I lock it or not!
    question.
    Is there any way of setting the minimal height ( in my case width of the taskbar as it is positioned vertically on the side) in the registry? I mean can I enter somewhere " do not go below bloody 3 icons after reboot ! " in the registry  :)
    There must be default value somewhere there  and this is why it keeps going back to it. If only I knew where is it I could increase it to suit me.
    I know it might seem to be silly question but after resizing the taskbar 2 348 times over the past years eveytime I turn the computer on I have had enough.
    I would be very gratefull if anybody could help me. Thanks in advance.

    Refer :
    http://social.technet.microsoft.com/Forums/windows/en-US/2b0ba279-0ded-49b2-b003-713a65e3d645/vertical-taskbar-width-resets?forum=w7itproui
    Arnav Sharma | Facebook |
    Twitter Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members
    reading the thread.

  • Dreamweaver Vertical Spry Menu Problem in IE7

    I just finished setting up a vertical, 3-level spry menu in
    Dreamweaver CS3, and when I preview it in IE7, several pixels have
    been added in between the buttons, which spreads the menu out and
    looks terrible. The problem disappears after I clear the ActiveX
    warning, and it doesn't occur in FF. Could someone please tell me
    how to fix this??
    Here's my SpryMenuBarVertical.css file:
    @charset "UTF-8";
    /* SpryMenuBarVertical.css - Revision: Spry Preview Release
    1.4 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights
    reserved. */
    LAYOUT INFORMATION: describes box model, positioning,
    z-order
    /* The outermost container of the Menu Bar, a fixed width box
    with no margin or padding */
    ul.MenuBarVertical
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 0.8em;
    cursor: default;
    width: 150px;
    /* Set the active Menu Bar with this class, currently setting
    z-index to accomodate IE rendering bug:
    http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html
    ul.MenuBarActive
    z-index: 1000;
    /* Menu item containers, position children relative to this
    container and are same fixed width as parent */
    ul.MenuBarVertical li
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    position: relative;
    text-align: left;
    cursor: pointer;
    width: 150px;
    /* Submenus should appear slightly overlapping to the right
    (95%) and up (-5%) with a higher z-index, but they are initially
    off the left side of the screen (-1000em) */
    ul.MenuBarVertical ul
    margin: -5% 0 0 95%;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    position: absolute;
    z-index: 1020;
    cursor: default;
    left: -1000em;
    top: 0;
    /* Submenu that is showing with class designation
    MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen
    ul.MenuBarVertical ul.MenuBarSubmenuVisible
    left: 0;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarVertical ul li
    background-image:url(../images/topnav-up-165.gif);
    background:#FFFFFF;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Menu items are a light gray block with padding and no text
    decoration */
    ul.MenuBarVertical a
    display: block;
    cursor: pointer;
    background-color: #FFFFFF;
    background-image:url(../images/topnav-up.gif);
    padding: 0.3em 0.3em;
    color: #333;
    text-decoration: none;
    /* Menu items that have mouse over or focus have a blue
    background and white text */
    ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus
    background-color: #FFFFFF;
    color: #333;
    /* Menu items that are open with submenus are set to
    MenuBarItemHover with a blue background and white text */
    ul.MenuBarVertical a.MenuBarItemHover, ul.MenuBarVertical
    a.MenuBarItemSubmenuHover, ul.MenuBarVertical
    a.MenuBarSubmenuVisible
    background-color: #FFFFFF;
    color: #333;
    SUBMENU INDICATION: styles if there is a submenu under a
    given menu item
    /* Menu items that have a submenu have the class designation
    MenuBarItemSubmenu and are set to use a background image positioned
    on the far left (95%) and centered vertically (50%)*/
    ul.MenuBarVertical a.MenuBarItemSubmenu
    background-image: url(../images/topnav-up.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    background-color: #038203;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-bottom-color: #666666;
    border-top-width: 2px;
    border-top-color: #FFFFFF;
    border-right-width: 2px;
    border-left-width: 2px;
    border-top-style: solid;
    border-right-style: solid;
    border-left-style: solid;
    border-right-color: #666666;
    border-left-color: #FFFFFF;
    /* Menu items that are open with submenus have the class
    designation MenuBarItemSubmenuHover and are set to use a "hover"
    background image positioned on the far left (95%) and centered
    vertically (50%) */
    ul.MenuBarVertical a.MenuBarItemSubmenuHover
    background-image: url(../images/topnav-dn.gif);
    background-repeat: no-repeat;
    background-position: 0% 50%;
    BROWSER HACKS: the hacks below should not be changed unless
    you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form
    controls, we underlay each submenu with an iframe */
    ul.MenuBarVertical iframe
    position: absolute;
    z-index: 1010;
    /* HACK FOR IE: to stabilize appearance of menu items; the
    slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
    ul.MenuBarVertical li.MenuBarItemIE
    display: inline;
    f\loat: left;
    background: #FFF;

    I just finished setting up a vertical, 3-level spry menu in
    Dreamweaver CS3, and when I preview it in IE7, several pixels have
    been added in between the buttons, which spreads the menu out and
    looks terrible. The problem disappears after I clear the ActiveX
    warning, and it doesn't occur in FF. Could someone please tell me
    how to fix this??
    Here's my SpryMenuBarVertical.css file:
    @charset "UTF-8";
    /* SpryMenuBarVertical.css - Revision: Spry Preview Release
    1.4 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights
    reserved. */
    LAYOUT INFORMATION: describes box model, positioning,
    z-order
    /* The outermost container of the Menu Bar, a fixed width box
    with no margin or padding */
    ul.MenuBarVertical
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 0.8em;
    cursor: default;
    width: 150px;
    /* Set the active Menu Bar with this class, currently setting
    z-index to accomodate IE rendering bug:
    http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html
    ul.MenuBarActive
    z-index: 1000;
    /* Menu item containers, position children relative to this
    container and are same fixed width as parent */
    ul.MenuBarVertical li
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    position: relative;
    text-align: left;
    cursor: pointer;
    width: 150px;
    /* Submenus should appear slightly overlapping to the right
    (95%) and up (-5%) with a higher z-index, but they are initially
    off the left side of the screen (-1000em) */
    ul.MenuBarVertical ul
    margin: -5% 0 0 95%;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    position: absolute;
    z-index: 1020;
    cursor: default;
    left: -1000em;
    top: 0;
    /* Submenu that is showing with class designation
    MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen
    ul.MenuBarVertical ul.MenuBarSubmenuVisible
    left: 0;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarVertical ul li
    background-image:url(../images/topnav-up-165.gif);
    background:#FFFFFF;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Menu items are a light gray block with padding and no text
    decoration */
    ul.MenuBarVertical a
    display: block;
    cursor: pointer;
    background-color: #FFFFFF;
    background-image:url(../images/topnav-up.gif);
    padding: 0.3em 0.3em;
    color: #333;
    text-decoration: none;
    /* Menu items that have mouse over or focus have a blue
    background and white text */
    ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus
    background-color: #FFFFFF;
    color: #333;
    /* Menu items that are open with submenus are set to
    MenuBarItemHover with a blue background and white text */
    ul.MenuBarVertical a.MenuBarItemHover, ul.MenuBarVertical
    a.MenuBarItemSubmenuHover, ul.MenuBarVertical
    a.MenuBarSubmenuVisible
    background-color: #FFFFFF;
    color: #333;
    SUBMENU INDICATION: styles if there is a submenu under a
    given menu item
    /* Menu items that have a submenu have the class designation
    MenuBarItemSubmenu and are set to use a background image positioned
    on the far left (95%) and centered vertically (50%)*/
    ul.MenuBarVertical a.MenuBarItemSubmenu
    background-image: url(../images/topnav-up.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    background-color: #038203;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-bottom-color: #666666;
    border-top-width: 2px;
    border-top-color: #FFFFFF;
    border-right-width: 2px;
    border-left-width: 2px;
    border-top-style: solid;
    border-right-style: solid;
    border-left-style: solid;
    border-right-color: #666666;
    border-left-color: #FFFFFF;
    /* Menu items that are open with submenus have the class
    designation MenuBarItemSubmenuHover and are set to use a "hover"
    background image positioned on the far left (95%) and centered
    vertically (50%) */
    ul.MenuBarVertical a.MenuBarItemSubmenuHover
    background-image: url(../images/topnav-dn.gif);
    background-repeat: no-repeat;
    background-position: 0% 50%;
    BROWSER HACKS: the hacks below should not be changed unless
    you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form
    controls, we underlay each submenu with an iframe */
    ul.MenuBarVertical iframe
    position: absolute;
    z-index: 1010;
    /* HACK FOR IE: to stabilize appearance of menu items; the
    slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
    ul.MenuBarVertical li.MenuBarItemIE
    display: inline;
    f\loat: left;
    background: #FFF;

  • Change Vertical Scrollbar width in advanced datagrid?

    Help!
    I'm creating an AIR application that will run on windows 8 touchscreen.  Problem is the touchscreen does not recognize finger swiping up/down within the air app.  Haven't figured that out yet....
    In the meantime i need wider vertical scrollbars for our employees fingers to swipe up and down.
    I've got a 'verticalSrollBarStyle' set however it doens't seem to react to 'width = x "
    Can anyone help me increase the width of the scroll bars?
    thanks!

    OK, this is because in a search item you can use as many wildcards as you like: 'A%b%cdef%'.
    If you want to restrict the maximum length, you need to make a custom template for findTextInput.vm and add the following macro:
    #ITEM_MAXIMUM_LENGTH()
    Steven Davelaar,
    Jheadstart team.

  • 100% width problems on iphones

    I have a layout with an accordion which I'm trying to get to work correctly on iPhones. The problem I have is that when viewed in Safari on the phones, there is horizontal play (the pages moves a lot with a side to side swipe gesture). To get around this issue, I implemented several changes including:
    Change the text box width from 360 px to 95% in the CSS files (If I do 100%, some characters can get cut off by the scroll bar on the right)
    Change the viewport from 380 px to 320 px in the CSS files (This prevents the horizontal play on iPhone 4-5S)
    Add <meta name="viewport" content="width=device-width"/> to the html files
    This workaround was ok but with the introduction of iOS 8 and the new iPhone 6 and 6+, the higher resolution is throwing everything off. I think the issue is that the viewport is greater than 320 pixels. This is making my design off-center and with play.
    Any ideas how to work around this? I need a layout that will only allow vertical scrolling and look good on both iOS 7/8 and iPhones 4-6+.
    Sang

    Hi Zak,
    Thanks for the reply. I'm confident that there are no protruding objects outside the width of the pages. The page content is pretty straight forward. The master page has a color background and a vertical menu nav. The content pages have just an accordion object. It displays fine without any issues in browser desktops, but on mobile safari the behavior is different.
    Unfortunately I have to modify the text box width because unlike the accordion object, the text boxes inside of it won't resize based on the device width.
    Sang

  • [SOLVED] Synaptics vertical scroll width.

    Every now and then when navigating a page i accidentally hit the scroll area, is it possible to change the width of the vertical scroll area? Not a big problem, arch is running beautifully and sort of stuck as to what to fiddle with next.
    Man page doesn't seem to explain in simple english for me.
    Thanks
    Last edited by Andy Mack (2010-07-21 09:26:39)

    This will tell you the current position of the right edge scroll area:
    $ synclient -l | grep rightedge
    RightEdge = 5200
    If you want to make the scroll area smaller, move the position:
    synclient RightEdge=5400
    Adjust numbers for you machine of course.
    If you want to make it permanent, create an xorg.conf:
    Section "InputClass"
    Identifier "touchpad"
    MatchIsTouchpad "on"
    Driver "synaptics"
    Option "RightEdge" "5400"
    EndSection
    You can add other options like this as well.

  • Spry Menu Vertical - Border thickness problem in IE 7

    Hello,
    No. I'm not using the last 1.6.1 file, because I have change
    the css vertical menu to fit my design style.
    Errors that I get:
    They are all with IE 7 versions. In Firefox, everything is
    great.
    1) A weird refresh when I click on the submenu links.
    2) I can't get the horizontal border line between the menus
    to get 1px in IE 7.
    Here is the vertical menu css code:
    @charset "UTF-8";
    /* SpryMenuBarVertical.css - version 0.6 - Spry Pre-Release
    1.5 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights
    reserved. */
    LAYOUT INFORMATION: describes box model, positioning,
    z-order
    /* The outermost container of the Menu Bar, a fixed width box
    with no margin or padding */
    ul.MenuBarVertical
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    cursor: default;
    width: 10em;
    /* Set the active Menu Bar with this class, currently setting
    z-index to accomodate IE rendering bug:
    http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html
    ul.MenuBarActive
    z-index: 1000;
    /* Menu item containers, position children relative to this
    container and are same fixed width as parent */
    ul.MenuBarVertical li
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    position: relative;
    text-align: left;
    cursor: pointer;
    width: 10em;
    /* Submenus should appear slightly overlapping to the right
    (95%) and up (-5%) with a higher z-index, but they are initially
    off the left side of the screen (-1000em) */
    ul.MenuBarVertical ul
    margin: -5% 0 0 95%;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    position: absolute;
    z-index: 1020;
    cursor: default;
    width: 10em;
    left: -1000em;
    top: 0;
    /* Submenu that is showing with class designation
    MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen
    ul.MenuBarVertical ul.MenuBarSubmenuVisible
    left: 0;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarVertical ul li
    width: 10em;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Outermost menu container has borders on all sides */
    ul.MenuBarVertical
    border: 1px solid #000;
    /* Submenu containers have borders on all sides */
    ul.MenuBarVertical ul
    border: 1px solid #CCC;
    /* Menu items are a light gray block with padding and no text
    decoration */
    ul.MenuBarVertical a
    display: block;
    cursor: pointer;
    background-color: #333333;
    padding: 0.6em 0.75em; /*primeiro pading vertical, segundo:
    horizontal*/
    color: #FFFFFF;
    text-decoration: none;
    font-family: sans-serif;
    text-align: center;
    border: 1px solid white;
    /* Menu items that have mouse over or focus have a blue
    background and white text */
    ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus
    background-color: #8E001C;
    color: #FFF;
    /* Menu items that are open with submenus are set to
    MenuBarItemHover with a blue background and white text */
    ul.MenuBarVertical a.MenuBarItemHover, ul.MenuBarVertical
    a.MenuBarItemSubmenuHover, ul.MenuBarVertical
    a.MenuBarSubmenuVisible
    background-color: #8E001C;
    color: #FFF;
    SUBMENU INDICATION: styles if there is a submenu under a
    given menu item
    /* Menu items that have a submenu have the class designation
    MenuBarItemSubmenu and are set to use a background image positioned
    on the far left (95%) and centered vertically (50%) */
    ul.MenuBarVertical a.MenuBarItemSubmenu
    background-image: url(SpryMenuBarRight.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    /* Menu items that are open with submenus have the class
    designation MenuBarItemSubmenuHover and are set to use a "hover"
    background image positioned on the far left (95%) and centered
    vertically (50%) */
    ul.MenuBarVertical a.MenuBarItemSubmenuHover
    background-image: url(SpryMenuBarRightHover.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    BROWSER HACKS: the hacks below should not be changed unless
    you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form
    controls, we underlay each submenu with an iframe */
    ul.MenuBarVertical iframe
    position: absolute;
    z-index: 1010;
    filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the
    slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
    ul.MenuBarVertical li.MenuBarItemIE
    display: inline;
    float: left;
    background: #fff;
    How can I give the same effect that happens in firefox, also
    in IE 7 ?
    Please test the link in both: IE 7 and Firefox.
    http://www.hundehilfe-portugal.de/hund.html

    add this to the
    @media screen, projection section of the css.
    ul.MenuBarVertical li.MenuBarItemIE a and give it a fixed
    height. That should fix it.

  • ALV GRID Display Column Width problem when filtering

    Hello All,
       When i displaying ALV Grid Display ,i selected one column and set filter for that.
    the problem is column width at display is 12 charecters but in filter it is allowing only 10 charecters to enter which is wrong. i am unable to set filter.please give solution.
    Thanks
    Sandeep.G

    hello i am calling perform, ineed to set OUTPUTLEN according to field length how can i do that.
    FORM fill_fieldcat  USING  p_field TYPE slis_fieldcat_alv-fieldname
                               p_text  TYPE slis_fieldcat_alv-seltext_l
                               p_flag TYPE c.
      wa_fieldcat-fieldname    = p_field.
      wa_fieldcat-seltext_l    = p_text.
      wa_fieldcat-no_out  = p_flag.
       wa_fieldcat-outputlen = 20.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.

  • Spry Horizontal Menu Bar width problem in IE and Safari

    Hi Everyone,
    I am working on a template and have used Spry Horizontal Menu for quite a few sites now. This one is giving me problems though on the width of the navigation bar.  It moves the last right menu item to the next row on the left in Safari and IE and Chrome, but looks perfect in Firefox.  I'm using a googlefont for the text. As I have quite a few menu items I have them set to 'auto' width.  Is there a fix to make all the others look like it does in Firefox or do I need to shorten my menu items by changing titles/reducing padding, etc.?
    Working page can be viewed at www.ikanizi.com/index2.html
    Many thanks. 

    Anyone who increases their browser's text size will see the same thing.  For wiggle room, reduce top-level links from 11 to no more than 7.
    Nancy O.

  • Vertical Menu position problem

    Hi everyone,
    I'm trying to figure out how to manage the position of a vertical menu aligned on the left of the page.
    I have a centered background image. Depending on the size of the browser window the position of the menu varies and appears off. How can I align it to some position so that it follows coordinates of the background image.
    How would I go about to achieve this?
    Thanks in advance,
    JS

    As JTANNA said in another discussion, our psychic powers don't work so well on holidays. 
    Please post a URL to your problem page.  The answers to layout questions are in your code.  Without seeing your page, all we can do is make wild guesses.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

  • Stage height width problem

    Hi Everyone ,
    I am quite new to Flash ,
    I have made one flash swf in flash cs3 using action script 2
    My requirment is like this -
    if client's resolution is less than or equal to 1024*768 i
    have to show scroll pane of size 410 and when resoution is higher
    than this i have to show scroll pane of size 540 . _x and _y
    of scroll pane is 0,0 all other things on flash is relative to this
    scroll pane so they take their _x and _y accordingly .(By the way i
    have only more movie clip on stage that is of height 160)
    I have used System.capabilities.screenResolutionX and
    System.capabilities.screenResolutionY to detect resolutions
    and have made scroll pane and movie clip to render
    accordingly .
    Now my problem is that there is no way i can change the size
    of stage dynamically as height and width of stage is read only
    (correct me if m wrng ) , so if i take my stage size ,according to
    hight resolution ie scroll size(540) + moviecilp size(160) , 700
    and when it is displayed on low resolutions it has white space of
    around 130 pixels and html content which is just below where my SWF
    ends looks far below where it is required .
    and if i do viceversa ie i make stage 410+160 than it
    truncates my SWF on high reolution .
    Is there any workaround for settings stage height and width
    dynamically or something to do with PUBLISH settings .
    Kindly help , my project deadlines are very near .
    Please help
    Thanks in advance

    Hi Everyone ,
    I am quite new to Flash ,
    I have made one flash swf in flash cs3 using action script 2
    My requirment is like this -
    if client's resolution is less than or equal to 1024*768 i
    have to show scroll pane of size 410 and when resoution is higher
    than this i have to show scroll pane of size 540 . _x and _y
    of scroll pane is 0,0 all other things on flash is relative to this
    scroll pane so they take their _x and _y accordingly .(By the way i
    have only more movie clip on stage that is of height 160)
    I have used System.capabilities.screenResolutionX and
    System.capabilities.screenResolutionY to detect resolutions
    and have made scroll pane and movie clip to render
    accordingly .
    Now my problem is that there is no way i can change the size
    of stage dynamically as height and width of stage is read only
    (correct me if m wrng ) , so if i take my stage size ,according to
    hight resolution ie scroll size(540) + moviecilp size(160) , 700
    and when it is displayed on low resolutions it has white space of
    around 130 pixels and html content which is just below where my SWF
    ends looks far below where it is required .
    and if i do viceversa ie i make stage 410+160 than it
    truncates my SWF on high reolution .
    Is there any workaround for settings stage height and width
    dynamically or something to do with PUBLISH settings .
    Kindly help , my project deadlines are very near .
    Please help
    Thanks in advance

  • ITS webgui transaction width problem

    we are getting no splash screen and the webgui (HTML) launched from portal -
    we have problem when we launch a transaction from portal.
    we see the transaction inside the webgui is shorten (reduced width) but when I click on the transaction directly in webgui - transaction displayed properly
    any ideas

    Hi Weatboy,
    I would like to know the SAP_BASIS package level (SAPKBxxxxx format) and the kernel release/patch level.
    Anyway, you can check if SAP note 1411321 helps.
    Regards,
    Cristiano

  • Urgent : JMenuBar repaint problem

    hello all,
    i'm facing a problem with jmenubar. i have developed an applet which contains a jmenubar, toolbaar & a panel. i'm doing some operation on the panel like rotating it by different angles. these operations are given in the menu. i have given accelerator keys for these menuitems. when i operate with these accelerator keys everything works fine. but when i click on the menuitem then a part of the panel gets panited on the menubar. but when i minimize the window & open it again the extra portion on the menubar disappears. can u suggest me what might be the problem with this. what is happening when we click a menuitem?
    any help is appreciated.
    Thanks in advance

    i solved it by changing repaint() into revalidate() & paintImmediately()
    i didn't get the reason why this works instead of repaint but now the code is working perfectly.
    This was the 1st time i did a cross posting. I had to deliver the solution that day itself that's why i posted it on different forms. i thought some experts will check the forms which they r interested. anyway learned a lesson from this. won't repeat it.

  • Vertical Menubar Displaying Problem

    I have a Spry 2.0 Vertical Menubar that is not working right because it is bigger than the <div> is it sitting in. If it would display over the top of all the other <divs> in the page, I would be a happy camper.  So I put:   overflow:visible;   in pretty much every area of the menubar style sheet and now the <div> to the right which is a rotating picture, moved down the page to fit in the menubar.  And the menu bar isn't working right on top of it (blinking instead of submenus opening).  AAGGHHHH!!!!  Can anyone help me?
    I cannot link to the page on this forum because it is a confidential client site I'm creating that is still in draft mode but I can send an email with the link if you email me first. Thanks in advance for all help!
    Jeannette

    Here is the style sheet, just incase that will help.
    Jeannette
    /* CSS Document */
    @charset "utf-8";
    #container {
    margin-left: auto;
    margin-right: auto;
    html, body, div, span, applet, object, iframe, ul, ol, img, p, a {
    margin: 0 auto;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
        background: url(images/bkgrnd-page.gif) no-repeat;
    body {
    width: 960px;
    margin: 0 auto;
    height: 100%;
    font-family:Verdana, Geneva, sans-serif;
    font-size:12px;
    line-height:20px;
    font-style:normal;
    font-weight: none;
    margin: 0px;
        padding: 0px;
    align: center;
    background: url(bkgrnd-page.gif) no-repeat;
    body a:link{
    font-family:Verdana, Geneva, sans-serif;
    font-style:normal;
    font-weight:normal;
    text-decoration:none;
    text-align:center;
    color:#06F;
    font-variant:normal;
    text-transform:none;
    vertical-align: bottom;
    body a:hover{
    font-family:Verdana, Geneva, sans-serif;
    font-style:normal;
    font-weight:normal;
    text-decoration:none;
    text-align:center;
    color:#06F;
    font-variant:normal;
    font-size:14px;
    body a:active{
    font-family:Verdana, Geneva, sans-serif;
    font-style:normal;
    font-weight:normal;
    text-decoration:none;
    text-align:center;
    color:#6C0;
    font-variant:normal;
    body a:visited{
    font-family:Verdana, Geneva, sans-serif;
    font-style:normal;
    font-weight:normal;
    text-decoration:none;
    text-align:center;
    color:#06F;
    font-variant:normal;
    #top {
    width:960px;
    height:25px;
    #top .left{
    float:left;
    width:330px;
    height:25px;
    font-size:10px;
    font-style:normal;
    text-decoration:none;
    cursor:default;
    color:#000000;
    vertical-align: text-bottom;
    padding-left: 20px;
    #top .right{
    float:right;
    width:610px;
    height:25px;
    font-size:10px;
    font-style:normal;
    text-decoration:none;
    cursor:default;
    color:#000000;
    vertical-align: text-bottom;
    text-align:right;
    #top a {
    color:#000000;
    font-size:10px;
    font-style:normal;
    text-decoration:none;
    vertical-align: baseline;
    #top a:hover {
    color:#09F;
    font-size:10px;
    font-style:normal;
    text-decoration:none;
    vertical-align: baseline;
    #header {
    clear:both;
    width:960;
    max-height: 103px;
    margin-bottom:0px;
    margin-top:0px;
    #header .left{
    float:left;
    width:350px;
    height:103px;
    background: #003;
    padding-left: 20px;
    #header .right{
    float:right;
    width:350px;
    height:103px;
        background:#003;
    text-align: right;
    padding-right:10px;
    #header .center{
    margin-left: 260px;
    margin-right: 351px;
    height: 103px;
    background: #003;
    font-size: 10px;
    color: #FFF;
    text-decoration: none;
    text-align: center;
    #navigation {
    clear:both;
    height: 287px;
    width: 960px;
    #navigation .nav {
    float:left;
    height: 287px;
    width: 383px;
    padding-top:10px;
    padding-left:10px;
    #navigation .rotator {
    float:right;
        height: 287px;
        width: 575px;
    #content {
    clear:both;
    width: 960px;
    height: 600px;
    background: #FFF;
    margin-top: 32px;
    #content .left{
    width: 300px;
    float: left;
    padding-right: 10px;
    padding-left: 10px;
    background: #FFF;
    height:600px;
    border-right-width: 1px;
    border-right-style: solid;
    border-right-color: #000;
    #content .center{
    width:298px;
    float:left;
    padding-right: 10px;
    padding-left: 10px;
    height: 490px;
    border-right-width: 1px;
    border-right-style: solid;
    border-right-color: #000;
    #content .right{
        width: 300px;
        float: left;
    height:496px;
    padding-right: 10px;
    padding-left: 10px;
    #content .pad{
    float:right;
    height: 102px;
    width: 628px;
    text-align: right;
    vertical-align:bottom;
    #footer {
    clear:both;
    height:80px;
    vertical-align: top;
    #footer .logo {
    float:left;
    width:250px;
    height:80px;
    background:#003;
    text-align: center;
    padding-top:0px;
    vertical-align:top;
    #footer .copyright {
    float:right;
    background: #003;
    width:710px;
    height:80px;
    color:#FFF;
    font-size:10px;
    margin:0px;
    text-align: right;
    vertical-align:top;
    .title{
    font-size:20px;
    font-weight:bolder;
    color:#003;
    .address {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 10px;
    font-style: normal;
    line-height: 16px;
    font-weight: normal;
    font-variant: normal;
    color: #FFF;
    text-decoration: none;
    text-align: right;
    .phone {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 20px;
    font-style: normal;
    line-height: 22px;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    color: #6CF;
    visibility: visible;
    text-decoration: none;
    text-align: right;
    .title-red {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: bolder;
    font-variant: normal;
    color: #900;
    text-decoration: none;
    #MenuBar  {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
    font-size: 15pt;
    font-style: normal;
    padding:0;
    border-color: #ffffff #ffffff #ffffff #ffffff;
    border-width:1px;
    border-style: solid solid solid solid;
    .MenuBar br { /* using just a class so it has same specificity as the ".MenuBarFixedCentered br" rule bleow */
    display:none;
    .MenuBarLeftShrink {
    float: left; /* shrink to content, as well as float the MenuBar */
    width: auto;
    .MenuBarRightShrink {
    float: right; /* shrink to content, as well as float the MenuBar */
    width: auto;
    .MenuBarFixedLeft {
    float: left;
    width: 55em;
    .MenuBarFixedCentered {
    float: none;
    width: 55em;
    margin-left:auto;
    margin-right:auto;
    .MenuBarFixedCentered br {
    clear:both;
    display:block;
    .MenuBarFixedCentered .SubMenu br {
    display:none;
    .MenuBarFullwidth {
    float: left;
    width: 100%;
    /* Top level menubar items - these actually apply to all items, and get overridden for 1st or successive level submenus */
    #MenuBar  .MenuItemContainer {
    padding: 0px 0px 0px 0px;
    margin: 0;
    #MenuBar  .MenuItem {
    padding: 0px 0px 0px 0px;
    background-color:#000033;
    border-width:1px;
    border-color: #ffffff #ffffff #ffffff #ffffff;
    border-style: solid solid solid solid;
    #MenuBar  .MenuItemFirst {
    border-style: solid solid solid solid;
    #MenuBar .MenuItemLast {
    border-style: solid solid solid solid;
    #MenuBar  .MenuItem  .MenuItemLabel{
    text-align:left;
    line-height:1.4em;
    color:#FFFFFF;
    background-color:#000033;
    padding: 6px 15px 6px 10px;
    width: 9em;
    .SpryIsIE6 #MenuBar  .MenuItem  .MenuItemLabel{
    width:1em; /* Equivalent to min-width in modern browsers */
    /* First level submenu items */
    #MenuBar .SubMenu  .MenuItem {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
    font-size: 11pt;
    font-style: normal;
    background-color:#000033;
    padding:0px 2px 0px 0px;
    border-width:1px;
    border-color: #cccccc #cccccc #cccccc #cccccc;
    /* Border styles are overriden by first and last items */
    border-style: solid solid none solid;
    overflow:visible;
    #MenuBar  .SubMenu .MenuItemFirst {
    border-style: solid solid none solid;
    overflow:visible;
    #MenuBar  .SubMenu .MenuItemFirst .MenuItemLabel{
    padding-top: 6px;
    overflow:visible;
    #MenuBar .SubMenu .MenuItemLast {
    border-style: solid solid solid solid;
    overflow:visible;
    #MenuBar .SubMenu .MenuItemLast .MenuItemLabel{
    padding-bottom: 6px;
    overflow:visible;
    #MenuBar .SubMenu .MenuItem .MenuItemLabel{
    text-align:left;
    line-height:1em;
    background-color:#000033;
    color:#FFFFFF;
    padding: 6px 0px 6px 7px;
    width: 9em;
    overflow:visible;
    /* Hover states for containers, items and labels */
    #MenuBar .MenuItemHover {
    background-color: #000033;
    border-color: #ffffff #ffffff #ffffff #ffffff;
    overflow:visible;
    #MenuBar .MenuItemWithSubMenu.MenuItemHover .MenuItemLabel{
    background-color: #000033; /* consider exposing this prop separately*/
    color: #9CF;
    overflow:visible;
    #MenuBar .MenuItemHover .MenuItemLabel{
    background-color: #000033;
    color: #9CF;
    overflow:visible;
    #MenuBar .SubMenu .MenuItemHover {
    background-color: #000033;
    border-color: #cccccc #cccccc #cccccc #cccccc;
    overflow:visible;
    #MenuBar .SubMenu .MenuItemHover .MenuItemLabel{
    background-color: #000033;
    color: #9CF;
    overflow:visible;
    /* Submenu properties -- First level of submenus */
    #MenuBar .SubMenuVisible {
    background-color: #000033;
    min-width:0em;  /* This keeps the menu from being skinnier than the parent MenuItemContainer - nice to have but not available on ie6 */
    border-color: #ffffff #ffffff #ffffff #ffffff;
    border-width:1px;
    border-style: solid solid solid solid;
    overflow:visible;
    #MenuBar.MenuBar .SubMenuVisible {/* For Horizontal menubar only */
    top: 100%; /* 100% is at the bottom of parent menuItemContainer */
    left:0px;
    z-index:10;
    overflow:visible;
    #MenuBar.MenuBarVertical .SubMenuVisible {
    top: 0px;
    left:100%;
    min-width:0px; /* Do not neeed to match width to parent MenuItemContainer - items will prevent total collapse */
    overflow:visible;
    /* Submenu properties -- Second level submenu and beyond - these are visible descendents of .MenuLevel1 */
    #MenuBar .MenuLevel1 .SubMenuVisible {
    background-color: #000033;
    min-width:0px; /* Do not neeed to match width to parent MenuItemContainer - items will prevent total collapse*/
    top: 0px;
    .SpryIsIE6 #MenuBar .MenuBarView .MenuItemWithSubMenuHover .MenuItemLabel /* IE6 selector  */{
    background-color: #000033;
    color: #0099ff;
    overflow:visible;
    .SpryIsIE6 #MenuBar .MenuBarView .SubMenu .MenuItemWithSubMenuHover .MenuItemLabel/* IE6 selector  */{
    background-color: #000033; /* consider exposing this prop separately*/
    color: #0099ff;
    overflow:visible;
    .SpryIsIE6 #MenuBar .SubMenu .SubMenu  /* IE6 selector  */{
    margin-left: -0px; /* Compensates for at least part of an IE6 "double padding" version of the "double margin" bug */

  • A4 Character Report Width Problem ??

    Hello
    What's is the maximum width that i can set to generate a landscape report on A4 paper on a Desktop Bubble Jet / Laser Jet Printer ??
    What's the best layout practice for generating chracter based report on A4 paper
    I'm developing report for Oracle 11i Applications.
    Fahad Hameed

    Hi
    i m also face this problem so if u have any Idea plz inform me :
    Printer Used : EPSON LQ 2180 , EPSON LQ 1170
    O/S : Windows 98, Windows NT (Server, Workststation)
    We are facing a problem regarding character report printing. We have tested several options on different printers but the results are quiet strange. We are not sure whether its the problem of printer driver or does our oracle installation require a patch for it.
    We have both Oracle Developer 6i Release 1 and Release 2 as fronted and Oracle 8i (8.1.7) release 3 at backend. The actual problem is , we are printing character based Report of size 11 x 5.5 on Line printer. When we print the pay slip through Windows NT WorkStation environment the report format gets distorted but when we print on Windows 98 it is quiet fine.
    P.S I have noted one thing peculiar, when the printer is attached to Windows NT Workstation to its LPT port and we print from a Windows 98 client using the default PRT of Oracle the printout is fine as expected. We can control the pitch and font from the printer.(17 cpi and Draft Font)
    When using Windows NT client and default PRT of Oracle the printout is not coming the same as desired and there is no control over the pitch and fonts through the printer itself.
    The printer we are using are EPSON LQ 2180 , EPSON LQ 1170 and PRINTRONIX P5005B. One thing more that when we use EPSON LQ 2180 and EPSON LQ 1170 printers the result are quiet different from PRINTRONIX P5005B.
    The Contents of prt file (dflt.prt) is following:
    printer "dflt"
    height 66
    width 132
    before report control(N)
    after page control(L)
    return control(M)
    linefeed control(J)
    We urgently need the solution.
    Regards
    Mansoor Ali

Maybe you are looking for