JFrame content displayed only after changing frame size

Hello everybody,
could someone explain to me why the content in this frame:
public class PHPTableReport extends JFrame {
     public PHPTableReport() {
          getContentPane().setLayout(null);
          final JLabel newAppletLabel = new JLabel();
          newFrameLabel.setBorder(new BevelBorder(BevelBorder.LOWERED));
          newFrameLabel.setBackground(Color.BLUE);
          newFrameLabel.setText("New Frame");
          newFrameLabel.setBounds(10, 10, 50, 58);
          getContentPane().add(newAppletLabel);
     }when invoked like this (in a JApplet):
PHPTableReport pHPTFrame =  new PHPTableReport();
pHPTFrame.setVisible (true);
pHPTFrame.setBounds(300, 300, 800, 600);only displays after dragging the window/frame bigger or smaller?
Thanks in advance again
Jan

Change this :
pHPTFrame.setVisible (true);
pHPTFrame.setBounds(300, 300, 800, 600);To:
pHPTFrame.setBounds(300, 300, 800, 600);
pHPTFrame.setVisible (true);

Similar Messages

  • Warp Stabilising footage after changing the size of the video frame size

    Hi everyone. I was wondering if anyone could resolve a problem I'm having with Warp Stabiliser in Adobe Premiere Pro CC. So I'm editing a video for a client and unfortunately a few scenes feature some camera shake, which don't look that aesthetically pleasing so I'm trying my best to get rid of the shake using Warp Stabiliser. I altered the frame size of the video from 1920x1080 to 1920x800 so I can have the 12:5 anamorphic look, however when I try to use Warp Stabiliser now a message pops up saying that it requires clip dimensions to match sequence and that I can fix it by nesting. I'm confused by this, I was wondering if anyone could help me by letting me know how to get round this, cause I would hate to have to do the entire video agin just because I altered the frame size. Thanks a lot.

    For the warp to do its thing the clip needs to be the same as the sequence settings.
    If not you get a warning like you have experienced. The only way to solve this is to nest the clip and then apply the warp to that nest.
    On a side note i would edit everything in 1820x1080 and on export make it 1920x800.
    For reference in your edit you can make a pillerbox matte in the titler.

  • Help! Trying to change frame size of project/sequence

    I have tried everything I can to change my project's frame size to 320 x 240 from 720 x 480--modifying sequence settings (nowhere to change size, just "timeline options" and "render control" tabs), clicking on the sequence's frame size in the browser (even with option and command), going into user preferences, system preferences, item properties, project properties without any dialog box that will help me make the change. I checked off "Prompt for seeings on New Project/Sequence" in User Preferences, but it only gives me a pop-up menu with the Easy Setup options. What's happening? This is taking me forever to figure this out. Any help would be greatly appreciated. Thanks.

    Hi Bob,
    Why do you want a project at 640 X 480 ? You will not be able to print it to your camcorder.
    Just put those values in quicktime conversion box, and your exported movie will has this frame size.
    May be the confusion become from the aspect ratio of pixel...
    DV pixel are displayed "as square pixels" in Final Cut Express, if you uncheck this option in viewer, you will get a horizontal squashed image.
    That's because TV set do not handle pixel like computer monitor and your camcorder record it with this aspect.
    So don't be concern with the 720 or 640 question: just export your movie using quicktime conversion set to 640X480 for viewing on computer (like I suggest earlier) or simply "print to tape" from FCE to your camcorder (with stretched pixel for TV monitoring).
    Michel B.

  • ICloud status not displayed correctly after changing tags

    Hi everybody,
    I have just below 25 000 songs in the iTunes library that I use for iTunes Match (my complete library is actually much larger but I created a separate library to stay below the 25 000 songs limit).
    After changing some tags in iTunes (I had some artists listed twice, once in the format "<last name>, <first name>" and once "<first name> <last name>" and wanted to harmonize this) the iCloud status of most of my songs is no longer displayed correctly. If I create a smart playlist containing all "matched" songs it finds only about 1000 songs, a playlist for "uploaded" songs contains only about 250 songs, the vast majority of my songs simply have NO iCloud status whatsoever (not even "waiting").
    Trying to fix this, I selected all of my songs, option clicked and chose "Add it iCloud". After waiting some time, nothing changed. The funny thing is: iTunes match reports that 24 669 songs (the correct number) are available in iCloud.
    So basically everything works and I am also able to download all of my songs on my iPhone. Still, it's a little bit annoying that the iCloud status is not displayed correctly and smart playlists filtering for iCloud status don't work. Does anybody know a way to fix this?
    Thanks for any help,
    Andreas

    The reason why the C3850 switch stack is showing as standalone in LMS CiscoView is because
    it's returning sysObjectID as standalone.
    It should return as 1.3.6.1.4.1.9.1.1745 --cat38xxstack
    While, if you poll it for sysObjectID, the Catalyst 3850 stack switches will be returning OID 1.3.6.1.4.1.9.1.1641.
    This is an IOS bug "CSCul00003 - Incorrect Sys OID for Cat3850 Stack device".
    Unless this bug is fixed, LMS will not be able to show it as stack device.
    You can try to check if you can manually change the device identity to cat38xxstack from Inventory > add/edit device > edit identity.
    Else we need to wait for the fix of this bug.
    -Thanks
    Vinod

  • Successfully changing frame size of footage shot portrait on iphone4

    ive been fighting the iphone embedded orientation lock for shot footage.
    i have a clip i hit record at the beginnin gthe the phone didn't realize i was recording it widescreen (landscape).
    i tried rotating in final cut, but since the frame size is 720x1080 and not 1080x720 after the footage has been rotated the original size of the frame is naturally cropped it.
    i transcoded the orig clip in compressor to the correct frame size, but it's now squeezed.
    how can i get this clip to be 1080x720 non anamorphic?

    You can't add what's not there...
    You will have to scale up the video to the width of your canvas... being that the original source is not really a decent camera (and you wouldn't want to do this with a decent camera either), your resulting video will look fuzzy and/or pixelated...
    Or you can also change your sequence settings to SD (720 x 486)... but it all depends what is the end use of this video...

  • How do I change frame sizes to user-defined frame sizes

    Hi,
    I hope someone can help me. I dont know how to change my project frame size to a user-defined frame size.
    ( like from 1920x1080p to 575x900p ) Ive found nowhere a answer to this question.

    You can try this workaround:
    http://library.creativecow.net/payton_t/FCPX_Custom-Resolution-Timelines/1

  • Changing Frame Size in MPEG2

    I'm using compressor to change less than stellar VHS video to MPEG2. I see that compressor has an option for frame size, but its ghosted out for MPEG2, can this be overridden in any manner? MPEG2 can be resized to LoRes MPEG2, with other programs, to 352x240 which is VHS quality and would make the video look generally better on a TV.

    MPEG-2 (or MPEG-1) output file frame size can't be altered in Compressor. Sorry.

  • Changing frame size in avi

    I'm editing a number of clips (different sizes) and I to save all of them in the same size. When importing I could only convert all their sizes to the projects size (which I couldn't change). When exporting, the feature enabling saving in a different size was disabled.
    I used the scaling option, but then the movies are saved in the same size, only with a black background. Is there any way to actually set the movies to the size I want?
    The clips are AVIs (could it be a codec issue?)
    The operating system is windows XP
    I'm using Adobe Premiere CS3
    If it is not possible to save the movie with smaller dimensions - is there at least a way to determine the background color?
    Thanks,
    Aya

    Thanks! The GSpot looks like a good program to have
    The codec is MP42 (S-Mpeg 4 version 2)
    And the initial settings are the default ones - DV-PAL 48kHz
    What I would really like to do is to crop (and resize) the videos, then save them all in the same size (smaller than the default 720x576), without a black background. Is it possible?
    Thanks!

  • How to Change Frame Size in FCE 2

    Hi,
    I'm very new to this video stuff. Is there a way to change the frame size in FCE 2? When creating a new project there are different options for the type of video but there does not appear to be a way to change the frame size from 720 x 480. I would like to use a different frame size.
    Thanks!!
    john

    Tom Wolsky wrote:
    FCP can. What size is the material and where is it coming from?
    The material is 360 x 243, it is a .mov file from a SVHS transfer. Is 360 x 243 a standard size for an SVHS transfer? I expected the frame to be 640x480.

  • Excel 2010 bug -- cannot place controls on chart properly after changing paper size

    I have encountered unexpected behavior in Excel 2010 when placing controls on a chart that is a separate sheet. The issue is that the controls (e.g. spinner, scroll bar, etc.) cannot be placed or moved to the right side or the bottom.
    Steps to reproduce:
    1) create a chart as a separate sheet
    2) change the paper size to, for example, A6 (4.13" x 5.83")
    3) change paper size back to Letter (8.5" x 11")
    4) controls cannot be placed on right side or bottom of chart.
    It appears that instead of using the current dimensions of the chart paper size to determine where controls may be placed, the smallest dimensions that have ever been applied to the chart are used.
    I am looking for a workaround for this issue since I would like to use a paper size large than 8.5" x 11", but I cannot place controls on such a chart properly at this time.
    Any ideas?

    I have found a workaround for this issue:
    1) change paper size in your default printer's preferences to the paper size you want in Excel.
    2) afterwards insert or create the chart. It is automatically the correct paper size, and controls can be placed or moved properly.
    3) change default printer paper size back.
    In case your chart has already been created, simply copy the existing chart in step 2 instead of inserting/creating.
    Aidan
    Edit: credit to http://webdesignerpark.blogspot.com/2013/02/paper-size-to-set-your-default-paper.htmlfor the idea on changing default paper size.

  • Audio out of sync after changing frame rate

    Hello
    I just changed frame rate from 23.976fps to 24fps inside sequence setting, and the audio is out of sync in timeline.  I can certainly manually right click mouse and choose slip into sync, but it's a tedious job.  Anyone knows why and quick solution?
    Thanks
    Richard
    ps I use 2014.2 latest version

    >Frame rate mode                  : Variable
    No version of Premiere does "well" with Variable Frame Rate
    Below is about iphone, but may help
    Some people find that Iphone won't edit easily because it uses a variable frame rate
    - A possible fix in message #22 http://forums.adobe.com/thread/934466

  • How to? change to different paragraph style only after column/frame break

    I'm all over paragraph styles and next styles option, all good, sweet. Love em but...
    But when I'm flowing in a long document with multiple text frames on different pages I would like the first paragraph in each of those text frames to be paragraphy style A, then using next styles let it follow on through B, C, etc, till then next time it see's a column/page/frame break character then go back to heading style A.
    I can't find a way to do this for love nor money.
    I've used objecy styles with paragraphy styles and next style turned on but this only seams to work on the first text box not the remaining text boxes that have flowed on text.
    HELP!!!!

    Eugene Tyson wrote:
    For Paragraph Style A go to the Keep Options in the style, and select to Start on Next Page or Next Column or Next Frame - whichever suits.
    Then it automagically does it
    If the content being flowed-in is correctly tagged with style names, then this would work.
    However, I believe the OP wants any paragraph that follows a flow break to be tagged with a specific style. If this is correct, either a script or a plug-in is probably necessary. in-tools.com has some terrific commercial composition tool products; perhaps one can do at least the first step - assigning a style to a paragraph that follows a break.
    In InDesign, assigning specific styles to the subsequent paragraphs based on the Next Style property, requires selecting the paragraphs to be assigned. I'm not sure if there's a plug-in or script that can use the break to trigger the Apply Next Style feature.
    Then, of course, is the question of how should this automation work if editing causes text to reflow across breaks. It's possible this could become the "yo-yo" effect that happens when more consecutive paragraphs than can fit in a text container are tagged with the keep options next and previous.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices
    Message was edited by: peter at knowhowpro

  • JFrame: How to detect a change in size?

    Hello everyone,
    I have a question related to the size of a JFrame or JPanel. I add a few JPanels to a JFrame and I wanted to detect when the size of the JFrame window or the JPanel itself had changed (if the user pressed the "Maximize icon" or simply dragged the window size from the one of the corner of the window). I am not sure if I need a listener added to the Frame, and what kind of listener that would be (if any exists, I am not sure).
    I have another question regarding the class Dimension. I add JPanel's to my JFrame and I use the class Dimension to get the size of the panel with the getSize() method. I wanted to know when is the sooner that I could call this method to get the right size. For example, I use it in a few methods like the paintComponent, the mouseReleased and mouseDragged method, but I wished to get the correct size as soon as possible and only compute it once (or update it if the JPanel sized change). I am wondering why the size is 0 while I call this method inside the constructor and if there is any method where I can call it before actually doing anything to the JFrame please.
    I hope my questions are somewhat clear.
    Thanks for all your help, it is very much appreciated.

    I am having one more issue.
    I have implemented the ComponentListener for each of my JPanel and used the componentResized and componentShown to calculate the size of my panel.
    This works great when I resize the JFrame using one of the corners, but not when the "maximize button" (in the title bar next to the corss) is pressed.
    Is there any way please to fix this? Thank you.

  • In an iFrame, content loads only after a refresh

    I have this website
    www.paidly.co
    In it, there is an iFrame. Now this loads perfectly fine in Chrome, and IE but in Firefox only the html content is shown, without any CSS or JS applied. On reloading the frame, I randomly get the entire loaded document sometimes and at other times it is not so. The code for the iframe looks like this:<br />
    <pre><nowiki><iframe class="iphone-content" src="Mobile/main.html"> </iframe></nowiki></pre>
    The page that is being called is this:
    <pre><nowiki><!doctype html>
    <html>
    <head>
    <title>Paidly</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css">
    <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
    </head>
    <body> ... </body>
    </html></nowiki></pre>

    I need to right-click in the frame and choose Reload Frame to make the frame display properly.<br />
    Maybe it is because the frame is hidden that Firefox isn't loading the CSS and JS files.

  • JComboBox fires an event only after changed selection?!

    I have added a JComboBox to my application, combined with an ActionListener which is added to the combobox just after initialization. It works fine, but there is one problem left:
    Generally, an event for the ActionListener is initially only fired by a combobox, if the user selects a different item than the last selected one. But I need an event that is fired by the combobox each time an item will be selected, even if it is the same item as the last selected one.
    I tried to use an ItemChangeListener, but it gave no success (and sense), it fires an event each time the user wants to select an item from the combobox' item list, that is no solution.
    Best way to solve this problem? I thought about a adding a MouseListener, but that might be the longest way. There seems to be no special method in JComboBox class to set this desired property?
    Any suggestions?

    Hello,
    thank you for your answer so far. Well, here is a trivial source code with the problem that still exists (see also my text at the end of this post). This one has been tested using Java 2 SDK V1.4, even using the newest SDK version did not change anything on the behaviour:
    import javax.swing.*;
    import java.awt.Container;
    import java.awt.FlowLayout;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    * JComboBox-Test: using Java 2 SDK V1.4, ActionEvent is only fired by combobox, if
    * a different item than the previous one is selected from combobox;
    public class Forum3 extends JFrame implements ActionListener {
        String[] CB_ITEMS = {
            "item 1",
            "item 2",
            "item 3",
        public Forum3 () {
            super();
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            setLayout(new FlowLayout());
            JComboBox cb = new JComboBox(CB_ITEMS);
            cb.addActionListener(this);
            getContentPane().add(cb);
        public void actionPerformed (ActionEvent e) {
            System.out.println("action!");
        public static void main (String[] argv) {
            Forum3 test = new Forum3();
            test.setSize(300,200);
            test.setVisible(true);
    }If you start this program (I am also using Windows XP), you see the JFrame window including the JComboBox. "item 1" is selected by default. If you click again on "item 1", no event will be fired. An event will be fired only, if you choose "item 2" or "item 3". You can try this with any other of the given items. An event will be only fired, if you choose a different item than the last one.
    What I need, is a routine that fires an event each time any item is selected!
    I would be grateful for a helpful hint, how to solve this in a "clean" way :-)

Maybe you are looking for