After i reading bytes ,how do i get the image to display?

After i reading bytes ,how do i get the image to display?
i m lost after tis step:
Image img=Toolkit.getDefaultToolkit().createImage(data1);

You can create and use a Canvas. (and define the Paint method)
Canvas c = new Canvas(){
        public void paint(Graphics g){
            g.drawImage(img,0,0,this);
frame.add(c);

Similar Messages

  • I only get 30 seconds of show after downloading from iTunes. how do i get the full episodes?

    i only get 30 seconds of show after downloading from iTunes. how do i get the full episodes?

    Are you sure to have the full length file in the library? If you start playing it, will it show the full runtime on the controls?

  • HT4561 After updating to 10.6.3, I installed the 10.6.8 update just to start experiencing these font issues. HELP! How do I get the fonts to display correctly in my browsers especially (Chrome & Safari)

    After updating to 10.6.3, I installed the 10.6.8 update just to start experiencing these font issues. HELP! How do I get the fonts to display correctly in my browsers especially (Chrome & Safari)

    What I ended up having to do was open up the Font book & remove duplicates. I knew it was Arial that was causing the problem, so I deleted the duplicate of that font. Inadvertantly I deleted all the Arial regular font, so I had to reinstall one copy. That was the solution. Thanks!

  • Sports Team Editor: How do I get the players to display in the sports theme?

    How do I get the players to display in the sports theme video? I entered the team and players using the sports team editor. Then clicked done and update. But when I play the video only the first players profile shows up. I have the rest of the video done, this is the one remaining mystery. Thank you.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Post for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • HT5219 How can i get the Apple Thunderolt display to show Windows 7 i run on my system using Paralells desktop..

    How can i get the Apple Thunderolt display to show Windows 7 i run on my system using Paralells desktop..

    You may need to set the slider at the upper-right corner of the Control window to something other than the extreme left-most position:
    Hope this helps.

  • How can we get the image which is stored in clipboard by labview, is there any functions available like text from clip board

    How can we get the image which is stored in clipboard by labview, i can get the text in clipboard by using invoke node directly.but i cannot get the image, is there any functions or vi available.(image is in Png format)

    The Read from Clipboard method is, unfortunately, limited to text. If the clipboard contains an image then you need to use OS-specific functions calls. This is an example program for Windows. It's old, but it should still work.

  • When editing an image in Photoshop from Lightroom then saving it back to Lightroom, how do i get the image to go back and  sit next to the original? Mine is going to the end of the folder. Thanks Karen

    When editing an image in Photoshop from Lightroom then saving it back to Lightroom, how do i get the image to go back and sit next to the original image? Mine is going back to the end of the folder. Thanks Karen

    Hi Karen
    You may the sort set to Custom. Click the dropdown menu on the toolbar (to the right of the word sort) and change to capture time.
    If you can’t see the toolbar above the filmstrip press the T key. Press T again to hide.

  • I am downloading from a Canon 650D to Photoshop CS5.1 AND Adobe Bridge CS5.1  do i need to download a  DNG convertor? if so how do i get the images from the camera to the convertor?

    I am downloading from a Canon 650d  TO Photoshop CS5.1  and Adobe Bridge CS5.1  Do i need to download a DNG convertor? if so how do i get the images from the camera to the convertor?

    Please check the list yourself and co,mare the necessary CR version with the one your version of Photoshop utilizes. 
    If the version os higher than yours you can use the free DNG Converter – as to how to use it please read up on that.
    Camera Raw plug-in | Supported cameras

  • How can I get the image width and height stored in database?

    Hi!I write s servlet to display images store in database.but how can I get the image width and height?

    Have you tryed using PJA or a similar library?
    I presume you get java.lang.NoClassDefFoundError on the line :
    Toolkit.getDefaultToolkit();?

  • How do I get the date to display on ipad lock screen?

    How do I get the date to display on ipad lock screen?

    The day and date should display on the lock screen, e.g., "Wednesday, March 19"
    What are you seeing?

  • How do you get the album pictures displayed with the right songs on my iphone 5

    how do you get the album pictures displayed with the right songs on my i phone 5?

    I have the same problem but i only have iphone 4s its only jsut started in the last 2 weeks or so

  • How can I get the image data from Clipboard with LV

    Anybody knows How can get the image data after pressd "print screen button" with LV?
    I want to program a software which can save a image as a bmp or jpeg etc, and the image data is from pressed print screen button. 
    How to get it out from clipboard. I am trapping about. thanks in advance.
    Try to make everything Automatic

    You can have a look at Rolf Kalbermatter's post here (give him stars) or, if you're using scripting, you can use the Application class Get Clipboard Image method.
    Try to take over the world!

  • How do I get the images to show up in bridge

    How do I get the cr2 thumbnails to go away so that I can view my images?

    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • How do I get the iMac to display thumbnails and not an icon of jpeg photos?

    Hi folks,
    I just purchased my first Mac, an Imac. I was browsing through a folder, using Finder, containing photos files from my latest trip.
    Under Windows, I used to tell Windows Explorer to show thumbnails of the photos.
    How do I get the iMac and Finder to show the thumbnails? It only wants to show a silly jpg icon which doesn't tell me much about what the photo looks like.
    Thanks.

    That was quick!
    I have a folder of JPEG photos on my HD. This folder was created over a year ago when I was using Panther.
    When I open it and select "Show View Options" I get a different window with options like "Date Created" and "Date Modified" etc.
    There is no preview option or a slider to alter the icon sizes - merely a choice of large or small icons.
    Ian.

  • How do i get an image to display????

    this is some code that i have developed to try to get an image to display. i realize that the arrays for images and sources aren't needed but i want to provide room for when i animate things. but i need to get them to display first. what am i doing wrong?
    import java.awt.*;
    import javax.swing.*;
    public class animate extends JFrame implements Runnable {
    Thread runner;
    int current;
    Image img[] = new Image[1];
    String[] source = {"thing.gif"};
         public animate() {
              super("animate");
              setSize(210,210);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JPanel pane = new JPanel();
              pane.setBackground(Color.white);
              show();
              Toolkit kit = Toolkit.getDefaultToolkit();
              for(int i = 0; i < img.length; i++) {
                   img[i] = kit.getImage(source);
         if(runner == null) {
              runner = new Thread(this);
              runner.start();
         public void run() {
              while(true) {
              current = 1;
         public static void main(String Args[]) {
              new animate();
         public void paintComponent(Graphics comp) {
              Graphics2D com = (Graphics2D)comp;
              if(img[current] != null)
                   com.drawImage(img[current],0,0,this);
    com.drawString("hello",0,0);

    Is that the exact code you're trying to run?
    It won't work for several reasons but I'll limit my response to just answering your question. Don't use paintComponent, use paint.
    public paint( Graphics g )

Maybe you are looking for

  • How do I downgrade safari 6 to 5.1.7 in Lion?

    I installed Safari 6 in Lion more or less by accident. I didn't notice it in Software Update, I guess that's my bad. I really hate Safari 6, If it does load or render faster then it's not fast enough for me to notice and it is full of quirks and bugs

  • RMI security issue

    Hi, there! This is cross-post from "NetWeaver AS, Java" forum. I have a security issue when I try to run RMI client code in the web application on the Web AS 2004s. There is lookup statement in JSP or servlet code: Naming.lookup("//server/RemoteClass

  • Looking UP JMS services From an Applet!!

    Hi!! 1>I am trying to lookup JMS services from my applet. Actually I would like my applet to send JMS messages and recieve messages as well. When I am trying to do lookup it is giving Access Control Exception a> java.util.PropertyPermission "user.dir

  • External editing in LR4 and PS6

    Upgraded to PS6 from PS5. External editing in lightroom 4 stop working. It fails to open file in PS6. I am using mac with snow lion OS10.8.3

  • Kwin: OpenGL compositing disabled

    Recently I tried to start KDM via inittab as mentioned in the wiki. Before that I used daemon and everything worked fine using Nvidia driver. After the change (for some reason) compositing is gone with following message: [tuhyk@dell documents]$ glxin