JFrame sizing issues

I'm building a swing application (primarily for windows users) that has set JFrame window sizes. The problem I'm having is that when users have their Windows font size set to "Large Fonts" or "Extra Large Fonts" that the title bar for the JFrame window grows and forces buttons, images, text, etc to overlap in the window. Is there any way to tell what OS font size the user has selected so I can take this into account when determining what size my JFrame should be? Thanks.
--Ioeth                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

I can't seem to locate the pack() method that you mentioned. Also, the problem that I'm having is determining window size, not component placement within the window. I use a few different layout managers within the various windows of my application, and they all get pushed around by the title bar.
--Ioeth                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • How do I avoid sizing issues with a Bevel?

    I am designing a logo for a startup business, and a beveled filter really looks nice for this particular company. The client really likes what I came up with. The problem is the filter seems to cause sizing issues. Enlarging it is creating ugly pixelation. Is there a method for avoiding this, or can I simply not use a bevel?
    Thanks.

    In the preferences check scale strokes and effects

  • Sizing Issue

    I'm doing a project for school and having some sizing issues
    with my pages. earlier in the project my partner and I had some
    major issues with style sheets and banner headings, but now
    whenever we preview a page it changes size. We have about 10 pages
    and when you change from page to page the main text area either
    becomes really big, shrinking the other text areas, or becomes
    extremely small letting the other text areas take over. Can anyone
    tell me what we are doing wrong and how to dix this problem?

    Can you post a link to these pages, please?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "luv4dirish" <[email protected]> wrote in
    message
    news:ekhd19$abb$[email protected]..
    > I'm doing a project for school and having some sizing
    issues with my
    > pages.
    > earlier in the project my partner and I had some major
    issues with style
    > sheets
    > and banner headings, but now whenever we preview a page
    it changes size.
    > We
    > have about 10 pages and when you change from page to
    page the main text
    > area
    > either becomes really big, shrinking the other text
    areas, or becomes
    > extremely
    > small letting the other text areas take over. Can anyone
    tell me what we
    > are
    > doing wrong and how to dix this problem?
    >

  • [svn:fx-trunk] 5367: The changes here are mostly fixing some sizing issues.

    Revision: 5367
    Author: [email protected]
    Date: 2009-03-17 15:26:35 -0700 (Tue, 17 Mar 2009)
    Log Message:
    The changes here are mostly fixing some sizing issues.
    For the FlashContainerPlaceholder, the first child is now MyFlexContentHolder, which extends mx.flash.FlexContentHolder but meets the invariant that it has 1 child and that child is FlexContentHolderThumbnail, which I?\226?\128?\153ve added as a swc to the project. I changed this by accident last time to refer to mx.flash.FlexContentHolder, when it should've referred to a concrete instance created by Flash from a swc. I also added a chrome of 151x151 to match the FlexContentHolderThumbnail since otherwise the container itself would have no chrome at all, and this let?\226?\128?\153s it size correctly.
    Also, for sizing, in a container, rather than sizing to the size of the chrome, I now size to the size of the FlexContentHolder thumbnail that all FlexContentHolder?\226?\128?\153s have. This means in ContainerMovieClip, I don?\226?\128?\153t need to override bounds anymore.
    ContainerMovieClip now implements IVisualElementContainer.
    Also, I fixed a resizing event bug in UIMovieClip where the resize event was getting dispatched more than once.
    QE Notes: -
    Doc Notes: -
    Bugs: SDK-19271, SDK-19788, SDK-19789
    Reviewer: Glenn
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-19271
    http://bugs.adobe.com/jira/browse/SDK-19788
    http://bugs.adobe.com/jira/browse/SDK-19789
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as
    flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as
    flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
    flex/sdk/trunk/frameworks/projects/utilities/build.xml
    flex/sdk/trunk/frameworks/projects/utilities/src/FlashComponentPlaceholder.as
    flex/sdk/trunk/frameworks/projects/utilities/src/FlashContainerPlaceholder.as
    Added Paths:
    flex/sdk/trunk/frameworks/projects/utilities/libs/
    flex/sdk/trunk/frameworks/projects/utilities/libs/FlexContentHolderThumbnail.swc
    flex/sdk/trunk/frameworks/projects/utilities/src/MyFlexContentHolder.as

    Hello Everyone,
    We request you all to try your applications with http://labs.adobe.com/technologies/flashplatformruntimes/air3-5/
    Release Notes - http://labsdownload.adobe.com/pub/labs/flashplatformruntimes/shared/air3-5_flashplayer11-5 _releasenotes.pdf
    Please let us know how it goes.
    -Thanks
    Pahup

  • Croping and sizing issues

    I have been using lightroom 4 for about 5 months.  But I am having issues with croping and sizing of pictures.  When I use the crop tool it does not always draw the picture in closer. I do shoot in RAW and not in JPEG.    I was wodering if there is a setting that I am not using or its not avaiable.  Also when I export out of lightroom4 and convert them from RAW to JPEG I have sizing issues depending on what size the customer orders.  I have tried to export them out at certain sizes but its still not correct.  The only way I have found to do it is going into photoshop and sizing them correctly but its very time consumeing .  Any help would be great!!

    You didn't tell us the desired output. All you said "...but its still not correct". What output are you trying to obtain?
    Also, what do you mean "When I use the crop tool it does not always draw the picture in closer"? Normally, you drag a corner (or corners) of the crop rectangle to crop tighter. Are you doing this? Is it not working? Explain.

  • [svn] 2913: Fix SWFLoader sizing issue (SDK-16497) Refactor some classes to try to fix ASDoc build.

    Revision: 2913
    Author: [email protected]
    Date: 2008-08-19 21:55:11 -0700 (Tue, 19 Aug 2008)
    Log Message:
    Fix SWFLoader sizing issue (SDK-16497) Refactor some classes to try to fix ASDoc build.
    Review: DJL
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-16497
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/projects/airframework/src/mx/managers/WindowedSystemMa nager.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/SWFLoader.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/ISystemManager.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/SystemManager.as

    Thanks for sharing.

  • WebView sizing issue

    Hi,
    I'm embedding a WebView through a JFXPanel in a existing Swing app and running into some issues regarding to sizing.
    My issue is that sometimes the height/width reported in JavaScript inside the WebView is 800*600, while most of the time it is reported to be equal to the dimensions of the WebView/Scene/JFXPanel. As the content I'm showing is a chart that renders itself to a size according to the dimensions of a parent DOM node, which is in this case the document.body, you can imagine that the results are wrong when the values reported in JavaScript for width and height are wrong.
    Ideally what I want is that the size of the body of the HTML document automatically follows the dimensions of the JFXPanel, meaning that is the JFXPanel gets resized, the dimensions of the scene/WebView follow suit. As this is not possible AFAIK, I've now setup a ComponentListener on the JFXPanel to update the dimensions of the WebView through the componentResized method of the ComponentListener. However, this still gives me the mixed results.
    I've setup a log of logging and I see that when the JavaScript layer reports the 800*600 dimensions, the dimensions of the WebView, Scene and JFXPanel are NOT reported as 800*600, but all report the actual size.
    My setup is as follows:
    - JFXPanel containing a Scene containing a WebView.
    - The scene is constructed without specifying a width/height
    - The JFXPanel is dimensioned by a special Swing layout manager
    - The WebView is loaded with custom HTML through loadContent() of the WebEngine
    - The body of the HTML document is sized 100%*100% through CSS
    - Dimensions in JavaScript are retrieved through document.body.getWidth/Height
    - In the custom HTML a chart is instantiated with the dimensions of the
    - Using Java 1.7 update 25 64bit on Windows with the bundled JavaFX
    Any thoughts appreciated.
    P.

    Please a correction i have seen that this error is produced on every scheduled report. The problem i am facing is that the campaign consolidated daily report is not imported in the specified folder.
    Help!

  • Panel sizing issues! IT'S TOO BIG FOR IT'S BOOTS!!!!!

    Hi there,
    I have a Panel which I make the client of a ScrollPane. The ScrollPane is added onto a container. This is all fine. My challenge is that I have about eighteen components (labels - containing pictures, text areas, etc) on the one panel. The panel is set to BoxLayout (up and down style) which results in all the components being stacked one on top of the next. When the program runs the scrollPane is fine, and it has bars both horizontally and vertically. Ideally however I only want to have vertical scrollbars and no horizontal scrollbars because I want my content to be the width of the onscreen window. If I force the scrollPane's horizontal bar off then I can only see some of the content on the Panel because the Panel still takes up heaps of room. I have learned from this that it is not possible to control the size of the component that is the client of the scrollPane by playing with the scroll bars.
    I figured the only logical way to get around my challenge is to control the size of the panel before it is made the client of the scrollPane. I set the size of the Panel explicitly with setSize(value1, value2) however the Panel still takes up a huge screen area.
    Basically trying to explicitly set the Panel failed, the code compiled but there was no desirable outcomes. I really want to work out how to force the Panel to be a given size and then use only one scroll bar on the scrollPane. I figure that this is an issue related to BoxLayout, but I may be well of track with that hypothesis. My code is provided below if anybody can offer any clues they will be greatly appreciated.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class HelpGUI extends JFrame implements ActionListener
      HelpGUI()
        Toolkit tk = Toolkit.getDefaultToolkit();
        Dimension sSize = tk.getScreenSize();
        /* Fonts created here. */
        Font mainhead = new Font("Tahoma",Font.BOLD,22);
        Font subhead = new Font("Arial Black",Font.PLAIN,16);
        /* Images and there associated accomodations (labels) */
        ImageIcon pic1 = new ImageIcon("Images/launch1a.jpg");
        ImageIcon pic2 = new ImageIcon("Images/launch1b.jpg");
        ImageIcon pic3 = new ImageIcon("Images/launch1c.jpg");
        ImageIcon pic5 = new ImageIcon("Images/launch1e.jpg");
        ImageIcon pic6 = new ImageIcon("Images/launch1f.jpg");
        ImageIcon pic7 = new ImageIcon("Images/launch1g.jpg");
        ImageIcon pic8 = new ImageIcon("Images/launch1h.jpg");
        ImageIcon pic9 = new ImageIcon("Images/launch1i.jpg");
        ImageIcon pic10 = new ImageIcon("Images/launch1j.jpg");
        ImageIcon pic11 = new ImageIcon("Images/launch1k.jpg");
        ImageIcon pic12 = new ImageIcon("Images/launch1l.jpg");
        ImageIcon pic13 = new ImageIcon("Images/launch1m.jpg");
        JLabel icon1 = new JLabel("",pic1,JLabel.LEFT);
        JLabel icon2 = new JLabel("",pic2,JLabel.LEFT);
        JLabel icon3 = new JLabel("",pic3,JLabel.LEFT);
        JLabel icon5 = new JLabel("",pic5,JLabel.LEFT);
        JLabel icon6 = new JLabel("",pic6,JLabel.LEFT);
        JLabel icon7 = new JLabel("",pic7,JLabel.LEFT);
        JLabel icon8 = new JLabel("",pic8,JLabel.LEFT);
        JLabel icon9 = new JLabel("",pic9,JLabel.LEFT);
        JLabel icon10 = new JLabel("",pic10,JLabel.LEFT);
        JLabel icon11 = new JLabel("",pic11,JLabel.LEFT);
        JLabel icon12 = new JLabel("",pic12,JLabel.LEFT);
        //Labels containing strings.
        JLabel heading = new JLabel("INSTRUCTIONS",JLabel.LEFT);
        heading.setFont(mainhead);
        JLabel addhead = new JLabel("Adding a shortcut to the toolbar.");
        addhead.setFont(subhead);
        JLabel delhead = new JLabel("Deleting a shortcut from the toolbar.");
        addhead.setFont(subhead);
        /* Text blocks describing program operation, used in conjunction with the
        labels and images instantiated above. */
        JTextArea intro = new JTextArea(
          "This toolbar contains two established shortcut buttons. It also contains "+
          "three empty shortcut buttons. The toolbar can be customised to your exact "+
          "requirements. Please follow the instructions below if you are uncertain of "+
          "how to enter a shortcut. Alternatively you can delete shortcuts from this "+
          "toolbar by following instructions provided further down this page.");
        intro.setLineWrap(true);
        intro.setWrapStyleWord(true);
        intro.setEditable(false);
        //intro.setBackground(this.getBackground());
        JTextArea inst1 = new JTextArea(
          "1). On the File menu click New.");
        inst1.setLineWrap(true);
        inst1.setWrapStyleWord(true);
        inst1.setEditable(false);
        //intro.setBackground(this.getBackground());
        JTextArea inst2 = new JTextArea(
          "2). In the Please Enter Shortcut Details window enter a Shortcut Name "+
          "for the new shortcut.");
        inst2.setLineWrap(true);
        inst2.setWrapStyleWord(true);
        inst2.setEditable(false);
        //inst2.setBackground(this.getBackground());
        JTextArea inst3 = new JTextArea(
          "3). Click on the Open button. This presents the file browser."+
          "4). Select a relevant subdirectory and click the Open button.");
        inst3.setLineWrap(true);
        inst3.setWrapStyleWord(true);
        inst3.setEditable(false);
        //inst3.setBackground(this.getBackground());
        JTextArea inst5 = new JTextArea(
          "5). Repeat step 4 if necessary.");
        inst5.setLineWrap(true);
        inst5.setWrapStyleWord(true);
        inst5.setEditable(false);
        //inst5.setBackground(this.getBackground());
        JTextArea inst6 = new JTextArea(
          "6). Repeat step 4 if necessary.");
        inst6.setLineWrap(true);
        inst6.setWrapStyleWord(true);
        inst6.setEditable(false);
        //inst6.setBackground(this.getBackground());
        JTextArea inst7 = new JTextArea(
          "7). Select the required executable file and press the Open button.");
        inst7.setLineWrap(true);
        inst7.setWrapStyleWord(true);
        inst7.setEditable(false);
        //inst7.setBackground(this.getBackground());
        JTextArea inst8 = new JTextArea(
          "8). Press the Ok button.");
        inst8.setLineWrap(true);
        inst8.setWrapStyleWord(true);
        inst8.setEditable(false);
        //inst8.setBackground(this.getBackground());
        JButton exitbtn = new JButton("Exit");
        JPanel panel = new JPanel();
        panel.setLayout(new BoxLayout(panel,BoxLayout.Y_AXIS));
        //panel.setSize(sSize.width*14/17,sSize.height*9/10);
        panel.setBackground(Color.CYAN);
        panel.add(heading);          //"INSTRUCTIONS" heading.
        panel.add(icon1);            //First picture of toolbar.
        panel.add(intro);            //First text block.
        panel.add(addhead);          //"Adding a shortcut ..." heading.
        panel.add(inst1);            //First instruction 1).
        panel.add(icon2);            //Picture for 1).
        panel.add(inst2);            //Second instruction 2).
        panel.add(icon5);            //Picture of 2).
        panel.add(inst3);            //3). and 4).
        panel.add(icon6);            //Picture for 3 and 4.
        panel.add(inst5);            //5).
        panel.add(icon7);            //Picture for instruction 5).
        panel.add(inst6);            //6).
        panel.add(icon8);            //Picture for instruction 6).
        panel.add(inst7);            //7).
        panel.add(icon9);            //Pic 7).
        panel.add(inst8);            //8).
        panel.add(icon10);           //Pic 8).
        Container c = getContentPane();
        JScrollPane scrollPane = new JScrollPane(panel);
        scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
        //scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
        c.add(scrollPane);
        setLocation(sSize.width*18/100,sSize.height*1/20);
        setSize(sSize.width*14/17,sSize.height*9/10);
        setTitle("Java QuickLaunch Toolbar");
        setVisible(true);
      public void actionPerformed(ActionEvent e)
    }Thanks heaps

    Interestingly enough, the preferredLayoutSize method of the layout manager attached to the JScrollPane never gets called when the scroll pane is resized horizontally, only vertically. I found this out by subclassing BoxLayout so that it printed a string when certain methods were called. I did that after noticing that I can resize your help window vertically with no problem, but horizontally is a different story -- when I increase the horizontal size, the JPanel grows to fit, but when I decrease the horizontal size, the JPanel stays the same size. Returning smaller Dimensions in preferredLayoutSize of my overrided BoxLayout class didn't help.
    I investigated further and subclassed JPanel to print a message when setSize or setBounds was called. When I vertically resized the help window, JPanel.setBounds was called to resize the JPanel. I was expecting that. However, when I horizontally resized the help window, the JPanel size wasn't updated... at least not in the way I expected it to be. When I increased the horizontal size past the maximum horizontal size so far, the JPanel's horizontal size was increased to match. However, when I decreased the horizontal size, the JPanels horizontal size was not decreased to match.
    So, here's what I found:
    1) JScrollPane vertical size increased: Scrolled component vertical size increases to match.
    2) JScrollPane vertical size decreased: Scrolled component vertical size decreases to match.
    3) JScrollPane horizontal size increased: Scrolled component horizontal size increases to match.
    4) JScrollPane horizontal size decreased: Scrolled component horizontal does not change.
    So the scrolled component horizontal size gets increased, but never decreased. This is odd... perhaps it is a JScrollPane bug? I'll see if I can't figure out a way around it. Overriding the scroll pane's setBounds and setSize methods didn't work, perhaps I'll target the JViewport next.
    Sorry I couldn't help right away, though. Lemme know if you figure it out.

  • Muse sizing issue

    Hello!
    I am having a problem with the sizing of my website. When i view on a large screen (iMac) everyone looks spaced fine, but then when i test the same design on a Macbook laptop the design is no longer centered.
    Does anyone know how to fix this issue?
    Thanks!
    Eric

    Hi Aish,
    what should you do if you can't reduce the length of your muse site page? I've changed the page property settings and switched off the Sticky Footer but I'm still unable to make my page shorter as (annoyingly) the properties seem to revert back to their original settings. Is this a bug?

  • Odd character sizing issue

    I'm having an issue with some odd character sizing (ID cs6). The font I'm using is Avenir Next Condensed Demi Bold (although this issue is happening with other font weights within the same family). The image below shows the problem, the u is slighly larger than the other characters. Sometimes this goes away on-screen depending on how close I zoom in, but the real problem is that it's printing slightly larger too. It's the same paragraph style, and I don't have any character styles applied... any ideas on what is going on here, and more crucially, how to fix this?  Thanks kindly in advance for any help with this.

    Does this happen in other applications? How about AI, Word, LibreOffice, that sort of thing. Do you have another computer with Avenir installed you can test the font on?
    Mike

  • JFrame Resize issue

    Allo all.
    I have a GUI that uses one JFrame and contains a Box layout of GridLayout and BoxLayout JPanels.
    I have set Max, Min and Pref sizes for all the JPanels, which works perfectly, the Frame wont get smaller than the minimum size, and it loads at the preffered size.
    However, expanding past the Max sizes leaves the components stranded top and center of the frame, with plenty of unwanted empty space.
    Setting the JFrames max, min and pref sizes completely ruins all the others, allowing resizing to 0,0 size and full screen.
    Any ideas? A quick look showed that I'd be able to extend JTable and do it that way some how, but I wasn't sure on the exact things I'd have to override.
    Java 1.5 , and I know a fair bit about Java.

    Extending the JTable class in order to solve layout problems is NOT THE WAY!!
    You'd be asking for more trouble than you already have. Instead, consider using a combination of a GridBagLayout and some RigidArea
    Box.createRigidArea(Dimension d] ,and perhaps some Glue- or Strut-components:
    Box.createHorizontalGlue()
    Box.createStrut(int width)
    [ /code]
    That should solve many layout issues....
    dealing with GUI's ==  puzzeling around with layoutmanagers and components                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Sizing issues JButton and JTextField

    Hi,
    I am new to swing and could use a little guidance on the placement of JButtons and JTextFields on a component. I have tried the setSize method and it doesn't work so I think it has to do with the layout possibly. I need to know how I can resize the testMe button and enlarge the JTextFields. Here is my code.
    I would appreciate any other suggestions as well.
    Thanks,
    Steve
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class TestButton {
        public static void main(String[] arguments) {
            JFrame frame = new Interface();
            frame.show();
    class Interface extends JFrame {
         private dataPanel screenvar;
         private JTextArea msgout;
         Interface () {
              super("This is a JFrame");
            setSize(600, 200);  // width, height
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JPanel pane = new JPanel();
              // create empty space
              pane.setBorder(BorderFactory.createEmptyBorder(30, 30, 10, 30)); //top, left, bottom, right
              // declare components
              msgout = new JTextArea( 8, 40 );
              dataPanel screenvar = new dataPanel();
              buttonPanel testMe = new buttonPanel(screenvar, msgout);
              // end declare components
            GridLayout grid = new GridLayout(1, 4, 5, 15); // row, col, hgap, vgap
            pane.setLayout(grid);
              pane.add(testMe);
              pane.add(msgout);
                 pane.add( new JScrollPane(msgout));
              pane.add(screenvar);
              msgout.append("Successful");
              setContentPane(pane);
    //          pack();
              setVisible(true);
    class databaseConnection {
    class updateDataFields implements ActionListener {     // 400
         private dataPanel abc;
         private JTextArea msg;
         public updateDataFields(dataPanel xyz, JTextArea msgout) {     // 100
              abc = xyz;
              msg = msgout;
         }     // 100
         public void actionPerformed(ActionEvent evt) {     // 200
              String command = evt.getActionCommand();
                   if (command.equals("TestMe")){     // 300
                        msg.append("\nSuccessful");
                        abc.right01.setText("1000");
                        abc.left02.setText("Hi!");
                        abc.right03.setText("123456");
                   }     // 300
         }     // 200
    }     // 400
    class dataPanel extends JPanel {     // Similar to DataPanel in Duke's Bakery
         JLabel left1, left2, left3, right1, right2, right3;
         JTextField left01, left02, left03, right01, right02, right03;
        public dataPanel () {     // 1
              GridLayout grid = new GridLayout(3, 2, 5, 15); // row, col, hgap, vgap
              setLayout(grid);                    // different than panex.setLayout(xgrid);
              left1 = new JLabel("Left1");
              add(left1);
              left01 = new JTextField(0);
              add(left01);
              right1 = new JLabel("Right1");
              add(right1);
              right01 = new JTextField(0);
              add(right01);
              left2 = new JLabel("Left2");
              add(left2);
              left02 = new JTextField(0);
              add(left02);
              right2 = new JLabel("Right2");
              add(right2);
              right02 = new JTextField(0);
              add(right02);
              left3 = new JLabel("Left3");
              add(left3);
              left03 = new JTextField(0);
              add(left03);
              right3 = new JLabel("Right3");
              add(right3);
              right03 = new JTextField(0);
              add(right03);
    class buttonPanel extends JPanel {     // 200   Similar to ButtonPanel in Duke's Bakery
         public buttonPanel(dataPanel xyz, JTextArea msgout) {     // 100
              GridLayout actionGrid = new GridLayout(1, 1, 5, 15); // row, col, hgap, vgap
              setLayout(actionGrid);                    // different than panex.setLayout(xgrid);
              JButton buttonTest = new JButton("TestMe");
              buttonTest.setSize(5,5);
              buttonTest.addActionListener( new updateDataFields( xyz, msgout ));
              add(buttonTest);
         }     // 100
    }     // 200

    Nope, doesn't work. Does the fact that the JButton is part of GridLayout have any affect on this resizing issue?
    Thanks for your help, I appreciate it.
    Steve

  • Application sizing issue

    It seems like Flex apps don't size properly in Mozilla Firefox.
    Do demonstrate, I made this sample application:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Canvas left="10" top="10" right="10" bottom="10" backgroundColor="#CA2020"> (don't worry about the color value...not accurate)
    </mx:Canvas>
    </mx:Application>
    When deployed to the server (it works fine when launching the app throught the Flex Builder). Here's how it should look (in IE, Chrome and Safari):
    And here's how it looks when viewed in mozilla FF:
    Does anyone have ANY idea why is this happeneing and how to work around it.
    In my current project I've asked the company to not list Mozilla FF in the "supported browsers" list, which is pretty embarrassing considering that a lots of people (including me) use Mozilla FF as our default browser.
    Any help will be appreciated.
    Best Regards..........

    Hey Ryan,
    Thanks for the input, but the situation stays the same.
    The sizing of the wrapper has always been a choice, but I cannot do that, I want the flex app to resize itself with the browser size, rather than have the user resize the browser to get the full view of the app.
    The height:100% solution did seem to be promising but alas!. Although, the width:100% works perfect.
    I'm still looking for an alternative, if you have any other suggesstion, please do care to write.
    Thanks and Regards.......

  • JFrame Update issues

    hi all
    I have a JFrame with a JList and a JButton in it.
    What I want is that when the button is pressed the JList gets new content from a specified file.
    The problem is that I can't figure out a way to show any changes to JFrame after it has been started.
    Since JList only seem to take data when it is created I've tried to replace the old Jlist with a new one where I have the new data. But I can't make JFrame update its view.
    I've tried update and validate and repaint in order to show the new content in JList but nothing happens.
    I've been at this for quite some time now so if you have any ideas I'll be really greatfull.

    In addition to above suggestion see the URL below
    http://java.sun.com/docs/books/tutorial/uiswing/events/listdatalistener.html
    Edited by: SuchittoPalit on Mar 13, 2009 4:27 PM

  • CompositionElement sizing issue needs to be addressed.

    Ok, so it's not just the PosterFrame and VideoElement inside a SerialElement that's sizing wrong.  It's anything inside a Parallel or Serial Element that includes an element with a temporal trait, and a static element such as RTMPPosterFrameElement, PosterFrameElement, or ImageElement.
    I just tried to use ScaleMode.LETTERBOX with a ParallelElement that included a progressive AudioElement, and ImageElement.  The ImageElement does not size properly, and can be replicated in your ExamplePlayer flex project.
    Just add the MediaPlayerWrapper to a container with a smaller fixed size (like a canvas container at 320x240 ).  You will notice that no Serial or Parallel Element with a static element will scale properly.
    This needs to be addressed.  The direction for this functionality is great!  Having a Posterframe for Audio and Video is a must ... but it currently does not size properly.  The only acceptable ScaleMode is NONE.

    The Layout system was created after our UI components, and a separate UIComponent was created to work with the Layout system.  We have a backlog item to fix this in the current sprint, starting today.  I have a work around below which demonstrates how to use this little know component call a RegionGateway.   Cheers!
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute"
    creationComplete="init()"
    xmlns:players="com.adobe.strobe.players.*">
    <mx:Script>
    <![CDATA[
    import org.osmf.media.MediaPlayer;
    import org.osmf.metadata.Metadata;
    import org.osmf.gateways.RegionGateway;
    import org.osmf.layout.RegistrationPoint;
    import org.osmf.display.ScaleMode;
    import org.osmf.layout.LayoutUtils;
    import org.osmf.proxies.TemporalProxyElement;
    import org.osmf.utils.URL;
    import org.osmf.media.URLResource;
    import org.osmf.image.ImageLoader;
    import org.osmf.image.ImageElement;
    import org.osmf.composition.SerialElement;
    private static const REMOTE_IMAGE:String = "http://mediapm.edgesuite.net/osmf/image/adobe-lq.png";
    private static const REMOTE_IMAGE2:String = "http://mediapm.edgesuite.net/strobe/content/test/train.jpg";
    private var region:RegionGateway;
    private var serial:SerialElement;
    private function init():void
    serial = new SerialElement();
    serial.addChild(new TemporalProxyElement(5, new ImageElement(new ImageLoader(), new URLResource(new URL(REMOTE_IMAGE)))));
    serial.addChild(new TemporalProxyElement(5, new ImageElement(new ImageLoader(), new URLResource(new URL(REMOTE_IMAGE2)))));
    serial.addChild(new TemporalProxyElement(5, new ImageElement(new ImageLoader(), new URLResource(new URL(REMOTE_IMAGE)))));
    serial.addChild(new TemporalProxyElement(5, new ImageElement(new ImageLoader(), new URLResource(new URL(REMOTE_IMAGE2)))));
    for( var itr:Number = 0; itr < serial.numChildren; ++itr)
    LayoutUtils.setLayoutAttributes(serial.getChildAt(itr).metadata, ScaleMode.LETTERBOX, RegistrationPoint.CENTER);
    LayoutUtils.setRelativeLayout(serial.getChildAt(itr).metadata, 100, 100, 0, 0);
    region = new RegionGateway(serial.metadata);
    wrapper.addChild(region);
    serial.gateway = region;
    var mediaPlayer:MediaPlayer = new MediaPlayer(serial);
    invalidateDisplayList();
    protected override function updateDisplayList(w:Number, h:Number):void
    super.updateDisplayList(w,h);
    if (region)
    LayoutUtils.setAbsoluteLayout(region.metadata, stage.stageWidth, stage.stageHeight);
    ]]>
    </mx:Script>
    <mx:UIComponent
    id="wrapper"
    width="100%"
    height="100%"
    />
    </mx:Application>

Maybe you are looking for

  • Copying data from one table to another, but not duplicate

    Good afternoon! I am new to Oracle SQL, I have a difficulty. I have a script that copies or add another table with data from another table. If the table already has 01 "Registry 01" when you make a copy of the data in table 02, can not duplicate the

  • HP AIO 8500 A909n premier wireless printer - phantom paper jam

    My 3 year old printer won't work, it keeps telling me there is a paper jam and the local repair guy says it is a motherboard issue.  Is there any other place to send it to for repair?  I'm willing to do that if anyone can do it for under 200!

  • BAPI_PO_CREATE1 Contract limits are not populated

    Hi I am trying to create a PO with reference to a p.requisition that has service limits (with the sum of 140.00 EUR) and to a purchase Contract in the the Contract Limits . I populated the following segments in the Bapi : POHEADER POHEADERX POITEM:  

  • How to make spatial computations use more/all CPU power?

    Hi, In an service I'm calculating spatial data (using Microsoft.SqlServer.Types) in memory. These calculations often take 4-5 minutes but they are never, ever, using more than 50% CPU. I have tried this on a single core too (Azure) and still, CPU won

  • 928 Camera - Yellowish Tint When Using Flash

    I find that when I take pictues in lower light situations and use the flash there is a distinct yellowish tint to the picture. I have had better results not using the flash at all. Kind of defeats the purpose of the flash. The pictures were taken usi