Adding a frame on a JDialog

Hi, I trying to add a frame with a 3D image on a dialog, but it's not working. The following code shows what I want to do. Does anybody know why is it happening?
button = new JButton(" 3D ");
          button.setToolTipText("3D model");
          button.addActionListener(new ActionListener()
               public void actionPerformed(ActionEvent e)
                    JDialog d = new JDialog();
                    Frame frame = new MainFrame(new Visual3D(editor.returnPoints()), 500, 500);
                    //try
                         d.getContentPane().add(frame, BorderLayout.CENTER);
                    //}catch(Exception ex){}
                    d.setTitle("Modelo 3D");
                    d.setSize(400,400);
                    d.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
                    d.setModal(true);
                    d.setVisible(true);
          toolbar.add(button);

You don't add one top-level window to another. You also shouldn't mix AWT components with Swing components:
http://java.sun.com/products/jfc/tsc/articles/mixing/index.html
What should you do? Well, first when you post, you should always state what your goal is,
what you are trying to do. In this case, my best guess, and it's only a guess since you're being coy,
is that you should look into JDesktop and JInternalFrame for that "MDI look".

Similar Messages

  • Premiere adding repeated frames when overwriting with transitions

    Hi,
    Having a bit of a problem (software bug?). I work with groups of clips on a timeline with 5 clips for each group (Intro / segment1 / segment2 / segment3 / outtro) and each week we replace 1 or 2 of each segment so we don't have to do a complete re-edit each week (for example one week we may replace segnemt 2 in each group for the new week and keep 1 & 3 intact)
    I'm replacing clips on a timeline using an Overwrite Edit while keeping the transitions from the previous clips intact (cross dissolve with center alignment). The new clip is IDENTICAL in length to the previous clip I'm replacing (so "handels" are already there) however Premiere is adding repeated frames to the head of the new clip (so the incoming image freezes up until half way thorugh the transition). One way I found to fix this is using the SLIP tool to drag the new clip to the left and line up the in point of the new clip to where it should be. I'd use this as a fix, however I'm replacing over 300 clips in some instances and it's just not time efficient to slip and tweak each one.
    I hope this makes sense.
    Anyways, has anyone else encountered this? Is it a bug? Any workarounds?
    Thanks,
    Phil

    I hear ya, unfortunately in our case we actually don't have a choice deciding where each scene begins and ends because the first frame of the next clip is the next frame in the animation sequence (we have a tile wall floating with moving images over so the flow between the two clips needs to be seemless.) We use a cross dissolve where the overlapping frames match each other during the transition, so the 5 segments stitched together look like one consistant flow). We do this so we can swap out different content segments each week so we can quickly update rather than spending hours re-building the entire segment each week. If you've ever seen the FirstLook conclusion in the movie theaters before the movie starts, that's what I do   Sounds like Ann's solution will work for us in this case.
    Cheers!
    Phil

  • My Final Cut is adding a frame when I lay to Digibeta

    I am getting really frustrated with my Final Cut as it is adding a frame when I layoff onto Digibeta. My time-line is set correctly, for example at 09:59:30:00 I have a 30sec clock and the video starts at 10:00:00:00 within FC but when I check the digi back the media is comes in at 10:00:00:01.
    When I open up my project on another computer and lay to Digi it's fine and all the settings on my computer appear to be the same as the other computers that don't add the frame. And just to confuse mt futher, when I layoff to Beta SP in the same manner it comes in on time.
    Has anyone else experienced this and managed to solve the problem? I am running FC 5.1.4 on a G5 with Mac OS X 10.4.10

    I've seen with RS-422 connections that you need to calibrate each deck you use to record back to... You can do this by adjusting the device control setting for each machine. If it's consistantly a frame off, just adjust it's device control setting to match. (frame offset parameter).
    Jerry

  • Preview renders adding extra frames exponentially in Premiere Pro CC 2014

    Having this strange anomaly happen when rendering previews. The preview render dialogue box starts adding extra frames and the thing becomes an exponential loop gradually moving to 100% but never reaching it even if the render is only 10 frames long.
    On a Z800 with dual X5570 12GB RAM Intel processors Nvidia and Blackmagic Decklink 2 video cards.
    It most seems to be happening around PPro generated title GFX and with dissolves. The strange thing is I can render small sections by setting discrete in/out render areas, but there is always a small section that won't render. This has just started happening on the latest 2014 update of CC.
    Have been using CC for the previous 12+ months without incident, so it would seem to be something in the latest version. Not killing me, but it is a bit strange and kind of annoying.
    Anyone else having a similar issue?
    cheers Pete.

    This sounds like bug that was fixed in the update released this morning (CC2014.0.1. aka, 8.0.1). Please let us know if the update does not resolve your exact issue.

  • Media Encoder adding flash frame

    Using Media Encoder to create a .m2v for use in DVD Authoring.  I import a QT, and in the encode, it is adding a random image that occurs about 32 minutes into the program at the 35 minute mark.  I reran, with the same result.  I have checked the original QT frame by frame and there is no such flash frame in it.  Settings are 2-pass VBR, Target Bit Rate 4.2 for a file that is 1hr 43min long.  Could Encoder be glitching, and are there any settings I can adjust to avoid it?

    I, too, am experiencing Media Encoder throwing in a random flash frame occasionally on an output file.  Output specs are typically Pro Res HQ 1920X1080 23.98P with 2 to 8 mono audio channels  at 48k and 24bit. These are files for delivery to a client.  It seems to be going to some random location within the episode and grabbing a frame and popping it in. Anybody have any ideas as to why this is happening?
    We're also realizing this is a random occurrence. Output settings don't seem to matter, and redoing the export with identical settings will yield a file with no flash frame.  Sometimes it's there, and sometimes it's not...

  • Compressor adding white frames at the head of the movie converted

    i used compressor to convert footage from mp4 to Apple prores 1024x576 16x9 and also change different frame rates to 25 fps
    I resized all the big videos to 1024x576 and maintained the smaller videos like 640x360 in its original size as i will composite them together to maintain quality.
    everything went well as compressor makes a very good job in resizing and frame rate coversion.
    i noticed that compressor added at the head of the movies a white frame on most of the converted movies
    and after importing the movies to fcp 6  i found that every time i use a movie with a white frame in the head Fcp crashes.
    is it because of the frame rate as i noticed that the white frames are in the movies with for example 23.98 that were conformed to 25.
    i cannot edit because of fcp quits.

    What do you have the most of? 1920, 1280, SD?
    What is the final deliveable? web, broadcast, blu-ray, SD DVD?
    Maintaining the aspect ratio can be done in your sequence settings whether your sequence is HD or SD.
    640x360 will still only fill about 1/2 of the 1280x720 screen at 100%.
    You can scale it to fill the screen but you will take a quality hit.
    In most cases putting 1920 in a 1280 sequence isn't going to make the baby jesus of quality cry.
    In my experience upscaling SD outside of FC in another program doesn't usually help with quality.
    I do the scaling in FC and know that I will have to render. I would still use Compressor for the frame rate codec conversion but do not change the source size unless you are converting to a more friendly broadcast size.
    You may want to consider that SD footage doesn't have to fill the entire screen.
    You can do other treatments to the footage so that you still fill the entire screen but the actual footage isn't being scaled to fill the entire screen. Blurred footage, stills, etc for a background can help with this.

  • FCP Adding two frames to Starting Timecode change in Sequence Settings

    Hi I am trying to change my starting timecode in my sequence to 09:58:00;00 but FCP keeps adding an extra two frames to make it start at 09:58:00;02 - my sequence is in DF. I am changing this by going into Sequence Settings > Timline Options > Starting Timecode. Anyone else have this problem? It's awfully frustrating - perhaps a glitch?

    IF you ripped to DV NTSC, it should have come in as DF.
    What are the specs of the Digibeta material?
    Are you delivering on Digibeta or as a QT file?
    Is your client asking for a master beginning with 09:58:00:00 DF starting timecode? You could set the starting timecode for 09:57:29:00, then add an additional second of black at the head of the timeline. The client is most likely needing DF timecode for 'show timing' purposes...is this to go to broadcast?

  • Premiere adding 15 frames to the end of every clip in export/sequence

    Last night I exported an AVCHD 1080p Square Pixel sequence to a H.264 video file. When I checked on it this morning, the export had 15 frames added to the end of every clip in my video. I checked my project in Adobe Premiere Pro CC, and noticed that those extra frames were also added to my sequence. Any clue as to what would cause this?

    Can you post a screenshot of your timeline.
    Also one zoomed in on a problem area.
    Are you using crossdissolves in a 30 fps sequence?

  • FCP adding random frames to my exports

    so here's my problem
    i exported my sequence using "export with current settings"
    but when i do i look at the export and there are suddenly random frames thrown into the cut
    i thought, 'man i must have not watched the cut before i exported'
    so i went back and looked at it, it looked fine, those frames are NOT in my sequence
    to absolutly make sure i went to the same part in the sequence where the added frame was on my export and went frame by frame to make sure
    there aren't any random frames in the sequence only the export
    i have tried exporting through QT conversion too and it still added those random frames
    why can't i export without those frames?
    i'm working in FCP 6.0
    Message was edited by: dreadheadhb

    alright what the heck is going on???
    i'm really starting to hate FCP 6 !!!!!!!
    so i opened my original scratch media in QT and exported then deleted the old file that was giving me trouble
    then when i open my project, fcp is asking me to reconnect
    so i choose the new file and it won't let me connect!!!!!!!!
    http://img2.freeimagehosting.net/uploads/f1d9dbc665.png
    it won't let me connect!!!
    Message was edited by: dreadheadhb
    Message was edited by: dreadheadhb

  • Adding One Frame onto the other Frame

    Hi All,
    How to embed one frame onto the other..???
    Forgive me if this is not the right way of asking the question but i want to get an idea of some things..so providing out the posts continuously.
    regards,
    Viswanadh

    Ya Thanks Darryl and one more doubt to be clarified..i have posted one thread asking for adding a JButton or JScrollPane onto the rectangle..Answer which i got was its not possible..From ur complete awareness if there is any chance can you give me a clue for doing so.
    regards,
    Viswanadh

  • InDesign Exporting to ePub adding extra frames

    When I export my InDesign file to ePub I keep getting extra frames (gray rectangles) in the ePub.  I tried different export settings but keep getting the same result. What am I doing wrong? Here is link to ePub.  please help!

    Okay, I figured out what was wrong.  I had two frames on top of each other in my indesign file. I was anchoring the top frame and using it to create Articles in the Artciles pane.  The extra frame behind my images was used to create a shadow effect.  Next time, I'll just use shadow effect.

  • Adding jumbo frame support into an existing Ethernet network

    I have a remote site with 40 users that connect back to our main site via two point to point T-1’s. These users connect to an Exchange server (DMZ), Sybase databases on Sun servers (Internal network), and access the Internet via the main site.
    I have installed a new WS-2970G-24TS-E switch into the network at this remote site. I have connected all of the designers (total of 10) Apple G5 workstations and two Apple Xserve’s to this switch. I have also configured the “system jumbo MTU” to 9000 bytes on the 2970. I have not yet enabled jumbo frames on the Xserve’s or the G5’s since I am unsure of what the effect on the network might be. I imagine it could range from dropped packets to crashing the router.
    I would like to enable jumbo frame support on these devices since they transfer hundreds of gigabytes of data on their local network. But if I do this, what will be the affect when they attempt to visit web sites or connect to the Exchange server?
    How have you guys worked with this type of scenario?
    The address space for this site is a /25 of one of our class C’s.
    Please see the attached Visio diagram that outlines the connection points throughout the network.
    Thank you

    Best practice here is to segment your Jumbo Frame servers on their own VLANs for Jumbo supported systems only.
    As a post here has already mentioned, Path MTU discovery will tell the systems on the Jumbo VLANs to keep the frames under 1500 when talking to a non-Jumbo VLAN.
    http://www.cisco.com/univercd/cc/td/doc/product/lan/cat2970/12225see/scg/swint.htm#wp1154596
    Please rate all helpful posts.
    Brad

  • Old version of Labview: Adding a frame to sequence

    I need to add a frame to a sequence in an old (Labview 3.0 for a Mac) version of Labview. I have no documentation for this version of labview. There is no sort of border pop-up menu with an "add frame after" feature.
    Any help is appreciated.
    Thanks,
    Jim

    > I need to add a frame to a sequence in an old (Labview 3.0 for a Mac)
    > version of Labview. I have no documentation for this version of
    > labview. There is no sort of border pop-up menu with an "add frame
    > after" feature.
    >
    The border popup is definitely how it is done. It should have an Add
    Before and a Add after. These may be obvious, but make sure that you
    are using the Command-Click to get the menu, and also check to see if
    the VI is locked. Unlock it using VI Info by popping up on the VI icon.
    Greg McKaskle

  • Adding a frame border to rounded corners photo

    New to PS..running current ver of 11.x... I found the rounded corners tutorial and that helps alot...but I have a number of photos on a website that I would like to also add a "border" to.
    sample image corner here:  http://members.cox.net/trinaz/roundercorner.gif
    This is a clip up the upper right corner.  The tutorial will let me round my photo corners as needed...but is there another function that will give the rounded photos a thin "chrome-like" border like in the gif link ?
    Thanks, Tim

    Just add a stroke using Layer Styles. Select the layer containing the frame border, go to the fx icon at the bottom of the Layers panel and choose Stroke. After that, select Bevel & Emboss from the same dialog and select Stroke Emboss from the Style dropdown

  • Flex,rtmp & adding one frame on display - protection from stolen content - please help.

    Hello
    First of all I must say that I only owner not creator but I need help to give some hints for person who do all webdesing stuff for me becouse he is out of ideas now.
    Problem:
    I have website with movies displayed in flex and rtmp. Movies are not posible to download how ever people can still use simple screen recorder to catch them and then upload over web for free. Site is members acces to I lsot this way lots of posible memebers.
    My idea to prevent this is to add on movie til for example each 30second one frame on center of screen with actually displayed username and date (all users have their auername:password on my server). This way I can check this user in base found his mail and personally tell him that if any movie will be stolen again he meet my lawyer in reason of copyrights.
    Anyway we have no idea how to add this frame? Please provide me any hints or ideas to my programist found solution.
    Thank You

    One approach would be to create a third class which instantiates the password class and calls the appropriate methods, and then, if a valid password has been entered it would instantiate the chooser

Maybe you are looking for