Adding a canvas and label to a frame

Actually the problem is that we have created a frame.
And in that frame we are adding a canvas and drawing image on canvas.
Now if we add a label to that frame after adding the canvas then the image is not drawn and if we add canvas after adding label to frame then the label is not shown, only image is shown.
/****CASE 1***************/
Create a frame
Add canvas
Add label
frame.setvisible(true)
After this, paint function is called and
in the paint function, we are calling a native function which is taking canvas as argument and drawing some images
Result: Only label is displayed
/****CASE 2***************/
Create a frame
Add label
Add canvas
frame.setvisible(true)
After this, paint function is called and
in the paint function, we are calling a native function which is taking canvas as argument and drawing some images
Result: Only image is displayed
Thanks
Arun

Hey!!
Even I am also facing some similar sort of a problem.
I was trying write a program using JOGL , in that if I draw a rectangle and I click anywhere on the rectangle in the frame ,it should show me the x,y coordinates. Since I am not using applet,so I need to place both the things on the same frame. Can Anybody help....

Similar Messages

  • How to create and export a still frame from a movie in iMovie 09

    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in the topic below. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information below at your own discretion.
    Are you working in iMovie and realize that certain frames in the movie would be perfect as photographs? Here is how to extract them...
    *To get a still frame from an Event*, right-click on the frame and select "Add Still Frame to Project". The still will be added to the end of the current project. Right click on the still frame in the project and select "Reveal in Finder". You will see a jpeg file that is highlighted. Drag this jpeg file in the finder to the iPhoto icon on your dock.
    *If you want a still from a project*, rather than an event, the process is similar, except you right-click on the frame and select "Add Freeze Frame", and it adds the freeze frame at the end of the clip rather than at the end of the project. Right-click/reveal in Finder, drag JPEG to iPhoto icon in dock.
    *If you are not using iPhoto*, and just want to save to your desktop, click Reveal in Finder as above, then COPY, then PASTE to desktop.
    Hint: If you do not want to clutter up your iMovie Project with stills at the end that you would have to go back and delete, then create a separate iMovie Project just for your stills, and follow the instructions for capturing stills from an Event.
    Note: If you do not have a right mouse button, then control-click will work instead of right-click.
    This is the 1st version of this tip. It was submitted on Dec 5, 2009 by AppleMan1958.
    Do you want to provide feedback on this User Contributed Tip or contribute your own? If you have achieved Level 2 status, visit the User Tips Library Contributions forum for more information.

    First, click iMovie/About and see which version you have.
    Versoon 9.0.2 would be iMovie 11.
    Follow the instructions [in this post|http://discussions.apple.com/message.jspa?messageID=13065602#13065602]
    If you have Version 8.0.6, that is iMovie 09 and you should see the Reveal In Finder option.

  • Best Practices for image layout and positioning using anchored frames in Framemaker 10

    Hi,
    I'm looking for the best practices in how to layout my images in Framemaker 10 so that they translate correctly to Robohelp 9. I currently have images inside of Anchored frames that "Run into" the right side of my text. I've adjusted the size of the anchored frame so that my text flows correctly around the image. Everything looks good in Framemaker! Yeah! The problem is that when I link my Framemaker document to Robohelp, the text does not flow around my image in the same manner. On a couple of Robohelp screens the image is running into the footer. I'm wondering if I should be using tables in Framemaker in order to get the page layout that I'm looking for. Also, I went back and forth...is this a Framemaker question or is this a Robohelp question. Any assistance would be greatly appreciated.

    I wish I could offer some advice, rather than simply adding to your question. I think there is something odd that happens with anchored frames.
    I have been going through fits trying to figure out why the placement of my graphics shifts when I run them through Frame 10-to-RoboHelp 9 conversion. The placement in our books is flush left to the body text area. However, when they convert, some are flush left, some are centered, and a very few are flush right. My boss is very unhappy with me, as I have been unable to figure out why this is happening. I didn't create these files, so I don't know if it's something that goes back to how the graphics were initially imported. But I can't figure out why everything looks right in Framemaker, with the frame attached to an anchor tag, etc. but the placement goes hinky when they convert.
    Any insights are appreciated. I'm wondering if it's going to come down to deleting them and recreating the graphic frame.

  • What's the difference between tags and labels?

    What's the difference between message tags and labels?
    Solved!
    Go to Solution.

    Indeed tags are freeform and can be added and created by anyone. Labels follow a stricter hierarchy and are usually defined on the individual community level (e.g. per ideation section, or specific to a discussion board).
    Labels are used as a filter by the community team to more easily look at specific sub-sections of content.
    Follow the latest Skype Community News
    ↓ Did my reply answer your question? Accept it as a solution to help others, Thanks. ↓

  • Canvas and viewer won't display video correctly

    I have just reinstalled and then reinstalled 5.1.4. Picture plays on external video monitor but will not play in either canvas or viewer. RGB is set. Mirror on playback is set. Audio will play. Viewer will play on external monitor. Usually a still will be on viewer of canvas screen or just a jumbled mess. Sometimes with parts of display frame included in mess. Thanks for any help.

    Thanks for posting helpful info re my problem. Issue finally resolved. FYI in case you should encounter a similar problem. I failed to mention in my post I was running two video displays. The video card I was running on when I developed the problem had been my auxilary display and was too underpowered to run the canvas and viewer. I inadvertaintly switched final cut pro to that card and monitor when my previous main monitor quit. I simultaneously had a drive boot problem. All is well that ends well, I suppose. Only took 4 days to sort it out and could find no info in tech manual that would have led me to this.

  • Can an InCopy editor add, remove and edit a text frame placed inside the main story text frame?

    I think I already know the answer to this which is - no. I'll explain why I am asking the question in a second, but the reason I think the simple answer is no is because - text frames are controlled by a designer in the layout file, an editor using incopy can only edit the text and images placed inside text frames, and so cannot resize them, add or delete them.
    Ok, so the reason I have asked this.
    Is there a way around this so that editors in incopy can edit certain types of text frame that are contained within the main text frame? I'm using these text frames to contain specific paragraph styles, giving them a boxed look and also with an anchored icon in the top left of the text frame depending on the type of paragraph it is. See screenshot as an example of a green text frame that I am using to contain paragraphs of type "tip".
    If it is not possible for editors in incopy to add, edit or resize these text frames (green tip frame in the example above), then how else can I style these paragraphs to give the same visual appearance, but without the use of wrapping them in a text frame?
    One (not so good) way around this is for the designer to add the text frames in the layout file after he gets the content back from the editor, then moving the "tip" paragraphs into these newly created text frames. However when the editor updates the content in incopy and gets these new text frames in their copy, they can not then delete them if they wish to, or if they add or reduce content inside of these green text frames then the frames dont grow to fit their edited content. So I dont think its a solution for the designer to control the adding, removing and resizing of these frames.
    UPDATE: I have just discovered that once a text frame has been placed into the document by the designer and the editor updates their copy in incopy-  they can then use the "Position Tool" to select that text frame - allowing them to resize it, or delete it! Fantastic. But would the editor be able to add these frames in themselves to begin with? Maybe have a document containing all of the objects available to them, copy and paste one of them into the main document and edit its content? Does anyone have any advice on how to go about this? Essentially I would like the editor to control the insertion, editing and removal of these inline text frames.

    True. But when all I am trying to achieve is a border around a paragraph, use of a table seems overkill to me. But if thats the only solution I have so far then I will have to go down that route.
    It would be useful to have an object libraries panel in InCopy so that editors can drag across predefined text frames into their doc via InCopy, but I cant see that option in InCopy. is there one? I have also thought about exporting the frames as seperate InDesign Snippets and saving them to an objects folder, then when an editor needs to insert one into their doc they simply use File > Place > "Choose required text frame snippet". However I have found that InCopy can't place InDesign snippets so that theory was a failure. Is there another format I could use to save the objects and bring them into InCopy? List below shows my findings so far for trying to save/export a text frame from InDesign and then import into InCopy:
    InDesign Snippet (.idms) - can't import into InCopy
    InDesign Document (.indd) - imports content as an image - only editable in InDesign
    InDesign Template (.indt) - imports content as an image - only editable in InDesign
    InDesign Library (.indl) - can't import into InCopy - no panel available in InCopy for object libraries (that I can see...)
    InCopy Markup (.icml) - only imports the text, loses the text frame

  • FCP 7, viewer clear, but canvas and export blurry

    Started with screen recordings provided to me that made using quicktime 10
    took quicktime 10 screen recordings and converted them to prores422 HQ in compressor (settings from compressor below)
    imported into FCP 7.
    They look great in viewer, reasonably sharp and crisp, but them very blurry in canvas and when I export to quicktime movie (not using quicktime conversion). Been using FCP 7 a couple years but my knowledge in many aspects is sub professional.
    Tried creating a new sequence to get the sequence to match the settings of the quicktime prores422 screen capture movies but to no avail. The settings of the sequence are not the same as the screen capture movies...I even tried to change the sequence settings but no luck (then exited FCP without saving so as not to screw anything up).
    Im probably breaking basic rules here...any help is greatly appreciated.
    Thank you!!!
    Compressor settings for file conversion above:
    Name: Apple ProRes 422 for Interlaced material (High Quality)
    Description: Apple ProRes 422 10-bit video with audio pass-through. Settings based off the source resolution and frame-rate.
    File Extension: mov
    Estimated size: 412.09 MB
    Audio: multi-track passthrough
    Video Encoder
    Format: QT
    Width: (100% of source)
    Height: (100% of source)
    Selected: 1440 x 900
    Pixel aspect ratio: Square
    Crop: None
    Padding: None
    Frame rate: (100% of source)
    Selected: 15.002
    Frame Controls: Automatically selected: Off
    Codec Type: Apple ProRes 422 (HQ)
    Multi-pass: Off, frame reorder: Off
    Automatic gamma correction
    Progressive
    Pixel depth: 24
    Spatial quality: 50
    Min. Spatial quality: 0
    Temporal quality: 0
    Min. temporal quality: 0

    Here is additional information on the problem.
    My sequence includes mostly screen captures, but also some other video (settings below) and some JPEGs.  The other video and the JPEGs look fine...both in canvas and when I export sequence to quicktime.  The screen captures look terrible...text is very blurry.  Same screen captures look fine in my viewer, just goes awry when in canvas and export.
    Format of screen capture clips (quicktime 10 screen capture > compressor prores 422 HQ):
    1440x900, apprle prores 422 HQ, data rate 5.6 MB/S, pixel aspect square, field dominance none, composite normal.  Started with 4 files of the screen capture from compressor, then edited them into many little pieces in FCP...the size of those files post compressor are around 2GB each.
    The sequence (by default) had settings of:
    frame size: 720x480 NTSC DV 3:2
    pixel aspect ratio: NTSC - CCIR 601 / DV 720x480
    field dominance lower(even)
    quicktime compressor settings: apple prores 422 LT
    Vast majority of clips are the same as screen capture clips.  But just in case its part of the problem, I have also have a couple video clips of that have settings:
    frame size:  720x480
    compressor:  DV/DVCPRO - NTSC
    data rate 3.6mb/s
    pixel aspect: NTSC - CCIR 601
    field dominance: Lower/even
    also have a couple JPEGs, their settings are:
    frame size 2500x2084
    compressor: photo-jpeg
    field dominance: none
    Thank you!!!  I've been using final cut a while, but don't think I would have gotten anywhere without the help and generosity of people that are way beyond my knowledge and skills.  I am happy to provide any more info.  I really appreciate it.

  • Contrast / Gamma Different in Canvas and Desktop Preview

    *The Confusion:*
    The contrast of my video differs between the Canvas Window and Desktop Preview.
    I assume the two are using different gamma settings. But I can't figure out what's going on, to know what those settings are and how to assess the final display picture.
    *Screen Grabs:*
    Here's a screen grab of the canvas, with the image at 100%. The screen grab does not show the full frame.
    - - - http://epokhecutmedia.com/images/gamma-ts-canvas.png
    Here's a full screen grab of image in Desktop Preview.
    - - - http://epokhecutmedia.com/images/gamma-ts-preview.png
    *What I've done:*
    I've gone through every gamma setting I know of and can't match the Canvas and Desktop Preview or make sense of the difference.
    Also, If I toggle between Display calibrations of 1.8 and 2.2 using the Display preferences in System Preferences, values in both the Canvas and Desktop Preview shift and still do not match.
    *Another seemingly related thing:*
    My Canvas window display jumps between different contrasts (possibly gamma values) automatically while I'm working.
    For example,
    - - - I'll have video frozen. I'll play it and the image with brighten across the mids with playback. However, after freezing it again it keeps the brighter value.
    - - - When I'm using filter, such as the 3-Way Color Corrector, when I click to drag a slider, the image with darken across the mids. Sometimes, as I drag, the canvas will erratically jump back and forth between the two values.
    *Why this is a problem:*
    I can't do basic exposure correction, because I don't know which is the accurate value to work with.
    edit by: FordPrefectRevisited, Screen Grabs added

    If I may re-open this thread, let me ask the question FordPrefect only alluded to:
    Given that I should be using a pro-level HD broadcast monitor to view everything, given that every piece of footage is different in the particulars, and given that the Canvas Window image is almost always different than any other playback system (Finder, QT, VLC Players, etc.), are there general exposure/gamma changes y'all make to account for the visual difference between the Canvas Window and other playback systems? If you're anything like me, you don't start from SCRATCH on every single edit... You have a few go-to filters with a few go-to settings, and then make minor adjustments according to the needs of the footage.
    For instance, in order to get the exported image close in exposure to the ideal Canvas Window image, I usually go: Effects - Video Filters - Quicktime - Brightness and Contrast - and then adjust the Brightness to 0.85 and it seems to get close.
    You guys have anything like that? Thanks for any help!

  • Hi, I've just downloaded the latest release 10.1.1 and now I do not see any more correctly my clips either in the canvas and in the timeline. Playing clips, they now appears with garbled images, completely unstables: I can not editing in these conditions!

    Hi, I've just downloaded the latest release 10.1.1 and now I do not see any more correctly my clips either in the canvas and in the timeline. Playing clips, they now appears with garbled images, completely unstables: I can not editing in these conditions!
    Anyone can help me?
    Thank you, Claudio

    Hi Russ, Thank you for your reply!
    System Spec:
    2x2.26 Ghz QUAD-CORE
    12 GB RAM 1066 MHz DDR3
    I've stored the library in HARD DISK which is installed inside my computer (1 TB capacity) and different from my hard disk in which I've installed all my applications (600 GB capacity).
    I've installed FCP since 2001, bought FCP X in 2012: never had a problem. Yesterday I was editing my video of my last vacations (in California!) and I have updated FCP X, downloading FCP X 10.1.1: then the problem!
    Strange is the fact that I've just tried to export a short project, I can see the final product quite well.
    What is impossible is playing the clips within Final Cut: they are jumpimg, moving, presenting some frame in green or red ...
    Everything all right in iMovie.
    I've just checked the RAM: 9GB out of 12 GB is busy, could this be the problem?
    Motion is very slow: for 20 sec of project, it takes minutes to play. And once again, if you finalize the projet and export it in Quicktime, you can see it correctly.
    I do hope you may suggest something, I'm getting crazy!
    Thank you in adavance
    Claudio

  • Is there video capture software which will capture only the canvas and not my cursor or the way I move the canvas?

    Hi,
    Does anybody know of a video capture software which only captures the canvas and not my cursor or the way I move the canvas?
    I want to simulate a painting being created brush stroke by brush stroke. It would also be good if I could select the layer that it is meant to be recording.
    I guess this would have to be a plugin of some sort.
    If not - do you have any good suggestions of the best workflow of creating this from Photoshop to After Effects (I don't want to use revealing paths etc...)
    Thanks for any help,
    Luke

    It would also be good if I could select the layer that it is meant to be recording.
    That won't work. Screen cap tools by their nature always capture the display buffer of the whole active window. At best, they respect GDI "drawing layers" and regions like Camtasia does, meaning they differntiate between mouse cursors, window frames and the actual content to get more efficient compression. For the rest - see the previous answer.
    Mylenium

  • Feature Request: Linked flags, ratings, and labels in a stack

    I use stacks to group the original image with derivatives of that image, but the way Flags, Ratings, and Labels work on stacked images isn't well implemented for that.
    Often, I will create derivatives of the original by flagging a bunch of images as Picks, then using export to create the new files.  When I do this, the rating and status of the original are automatically added to the new files.  Unfortunately, the Flag status is not, so I cannot, for example, just set a filter for Flag = Pick and continue working with the same set of images.  Likewise, since stacks aren't fully implemented in collections, I can't just create a collection first and then continue working there the way I'd like to.
    What I'd like is to have a checkbox in the export dialogue, when I am stacking with the original, that will allow me to copy the Flag status to the new files.  That way, my Flag=Pick filter will allow me to keep on working with the same set of photos.
    Even once the photos are stacked, I can't really work with them as a set because, now, a Flag, Rating, or Label change to one image in the stack doesn't affect the others.  For me, since these are all derivative of the master image, I generally want such changes to apply to the entire stack.  I know this probably isn't true for others, so what I envision is an intuitive icon on a stack to quickly link or unlink, or select or unselect, all images in the stack.  When all are linked or selected, any changes would affect all the images in the stack, otherwise, changes would only apply to the currently selected or visible image in the stack.
    Paul Wasserman

    Thanks Carolyn.
    I'll follow your link.
    I'd also like to know others input. Sometimes I think I'm the only ones who is used to shortcuts, or I have to wait until forum residents quit writing (others might think I'm taken care of and not replying) so people who actually uses the Mac to work can opine.
    Anyway, here's how I use the browser when working. I think it's very common, or at least enough for an "option".
    https://discussions.apple.com/message/18776345?ac_cid=op123456#18776345
    (I didn't want to post it here too)

  • Canvas and JScrollPane

    Hi,
    I have a GUI which has textboxes and buttons on one side and a canvas on the other. I have implemented a scrollpane onto the canvas, so I can scroll graphics. I have added the canvas to the scrollpane but when I compile, the screen only shows the scrolling canvas, the buttons etc have disappeared. The canvas is set in an XYLayout, is their a setpreferredlocation so the canvas is drawn in the write place once added to the scrollpane.
    can anyone help.
    thanks

    One question, you're posting in Project swing, but reading your post, it seems your not using swing at all. Did you use swing? if no, well you should have a look at classes such as javax.swing.JScrollPane. If yes, well, why do you make your own JScrollPane-like class since it already exist. If your using awt, you should have posted this message in another forum, but then again, you could have used java.awt.ScrollPane.
    So I will rather answer by another question: Why do you implement your own scrollpane?
    Note: maybe I should have read "I use a scrollpane" instead of "I have implemented a scrollpane".

  • Canvas and image sizes

    When placing a frame onto a photo the canvas increases in size. The canvas area outside of the frame/ photo area is checkered and I have read on the forum that this means it is transparent, right? Is yes, then how do I get Photoshop to stop printing it out as a gray border?
    In the meantime I have been using the canvas resizing feature to reduce the canvas size. I use pixel mode so I can change it in fine increments. Is there a way of quickly making the canvas size the same as the image size? I see where the canvas size information is the same as the image but there is a checkered border around the image.
    Thanks for your help.
    Pete

    Marquee tool, then Image>Crop would be better.
    >how do I get Photoshop to stop printing it out as a gray border?
    Save as TIFF, PSD, PNG-24, or PDF, since those formats allow transparency. JPEG does not.

  • Canvas and BufferedImage display different.

    I use the same method to paint the Canvas and the BufferedImage. But the Graphics2D drawString method
    shows up correctly on the Canvas but not on the BufferedImage (JPEG). Why is there a difference?
    I use the Graphics2D to rotate the text 90 degrees.
    I can't think of any reason why the display comes out different.
    Any suggestions???
    Thanks.

    Here is the code for putting the Canvas graphics onto the BufferedImage (JPEG).
    public void save(HCanvas comp) {
         int w = comp.getWidth();
         int h = comp.getHeight();
         Frame frame = new Frame();
         BufferedImage im = new BufferedImage(w,h,BufferedImage.TYPE_INT_RGB);
         Graphics2D g2 = im.createGraphics();
         g2.setPaint(Color.white);
         g2.fillRect(0,0,w,h);
         g2.setPaint(Color.black);          // back to default color
         comp.paint(g2);                              // Graphics argument
         g2.dispose();
         FileDialog fd = new FileDialog(frame,"Save As JPEG",FileDialog.SAVE);
         fd.show();
         try {
              String dum;
              dum = fd.getDirectory() + fd.getFile();
              OutputStream out = new FileOutputStream(dum);
              JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
              encoder.encode(im);
              out.flush();
              out.close();
              im.flush();
         } catch (Exception FileNotFoundException) {
              String errormsg = "File Not Assigned";
              JOptionPane.showMessageDialog(frame, errormsg);

  • Canvas and BufferedImage display drawString differently.

    I use the same method to paint the Canvas and the BufferedImage. But the Graphics2D drawString method
    shows up correctly on the Canvas but not on the BufferedImage (JPEG). Why is there a difference?
    I use the Graphics2D to rotate the text 90 degrees.
    I can't think of any reason why the display comes out different.
    Any suggestions???
    Thanks.

    Here is the code for putting the Canvas graphics onto the BufferedImage (JPEG).
    public void save(HCanvas comp) {
    int w = comp.getWidth();
    int h = comp.getHeight();
    Frame frame = new Frame();
    BufferedImage im = new BufferedImage(w,h,BufferedImage.TYPE_INT_RGB);
    Graphics2D g2 = im.createGraphics();
    g2.setPaint(Color.white);
    g2.fillRect(0,0,w,h);
    g2.setPaint(Color.black); // back to default color
    comp.paint(g2); // Graphics argument
    g2.dispose();
    FileDialog fd = new FileDialog(frame,"Save As JPEG",FileDialog.SAVE);
    fd.show();
    try {
    String dum;
    dum = fd.getDirectory() + fd.getFile();
    OutputStream out = new FileOutputStream(dum);
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
    encoder.encode(im);
    out.flush();
    out.close();
    im.flush();
    } catch (Exception FileNotFoundException) {
    String errormsg = "File Not Assigned";
    JOptionPane.showMessageDialog(frame, errormsg);

Maybe you are looking for