Impossible to get Color Image

I have a MSI FX5600 td128 graphic card and im connecting the computer to a sony monitor with that S-Video-2-RCA cable, and i only get black and white image...
Ive read some posts and i only found the tip to change from auto to Composite but i dont get signal at TV when i do this...
whats the solution?
Thanks!

According to this list Portugal uses PAL B/G. There is virtually no difference between PAL B,D,G,H and I at the Composite Video level, it is mainly to do with transmitted signals.
PAL-M and PAL-N have significant differences, especially the colour subcarrier frequency (and PAL-N uses NTSC Horizontal and Vertical frequencies). PAL M & N are mainly used in South America. Maybe the manufacturers haven't supported these standards properly   You might have to try a TV which supports other standards as a video input (many modern sets do these days)
Hope this helps

Similar Messages

  • I am able to get color images in the continues shot but when i try to snap a color image which i need for my processing i get only a monocrome image

    I have been using lv_vfw.llb VI's for grabbing images from a CREATIVE WEB CAM ,i am able to get color images in the continues shot but when i try to snap a color image which i need for my processing i get only a monocrome image ,i have been trying to play around with the RGB weightings but i am unable to get a color iamge,it shall be of great help if you could help me in doing this as it is urgent for me.Thanks for your help.

    vicky,
    I am unfamiliar with the lv_vfw.llb, and have not used it before. However, I noticed that you stated that you are able to grab in color, just not snap in color. If this is the case, why not just perform a grab and then extract a single buffer from this grabbed data, which would likely be in color? This seems like a possible solution to the issue that you are seeing.
    Other than that, I really don't know enough about the lv_vfw.llb to be of much help on this issue. Hopefully another member of this forum will be able to assist you with this software.
    Regards,
    Jed R.
    Applications Engineer
    National Instruments

  • Why Can't Get Color Images from My ADS Pyro IEEE1394 Camera

    This is a list of our equipment   :
    Windows98SE
    LV6.0i
    NI-IMAQ for IEEE1394
    Advanced IMAQ Library for LV
    Pyro IEEE1394 Webcam from ADS
    Unfortunately, we do not see any colors in the RGB Modus.
    We have visited your perfect support web sites and found a similar description.
    Document ID: 2DGHH1SN (09/17/2001)
    We used your support tip (change 1394IMAQ.sys and clean-up MAX) and anyway we do not
    see colors even though the PYRO IEEE1304 Webcam support color mode.
    We think the hardware of both IEEE1394 webcams (Pyro and IBOT) are the same.
    Did you received any feedback from the customer whos has the problem with the Orange
    Micro IBOT IEEE1394 webcam ?
    It is highly interested for us.
    We appreciate y
    our help and many thanks for reading and thinking about this manner

    Dear Keyle,
    Thanks for your response. Now, we have a running XP Home Edition Notebook machine.
    We have installed first LabVIEW6.0i then ADVANCED IMAQ VISON > IEEE1394 for IMAQ beta2 + MAX2.2 and finally
    VISION BUILDER 6.0
    We have observe the VISION BUILDER support during the custom installation process of NI-IMAQ 1394 b2 and unfortunately we running in the same problem and could not use the great VISION BUILDER together with our
    IEEE1394 camera. We see a big opportunity to develop our apllications faster and improve the time to market.
    It is possible to enclose the difficult situation ?
    Up to now, we are very happy to see colors in MAX and
    LV.
    Yes, we notice that we use a beta driver and we could
    not expect that it works perfect. But you wrote, that you have a running VISION BUILDER support with a XP machine and we are in a good mood to read this.
    We appreciate your help in this manner and thanks again
    Stephan

  • Get color from image

    Hey people, I'm new to Illustrator and have a question. I want to use a color from an image that I put into Illustrator.
    The exact things I did with the image are the following: copied it from Windows Photo Viewer into Illustrator, then put the 'cut out' effect on it, then copied it into a new Illustrator document that has a businesscard template and resized it fit the template's margins. Now I want to kind of 'enlengthen' the image by putting a square next to it. To make it look smooth, it has to have the same color as that side of the image of course. But that's my problem, I'm not able to select the color from the image and make a new color group with that specific color. The 'get color from selected artwork' button doensn't help much since I can't click it, for some reason the mouse turns into this 'can't click here' icon every time I move it on this button.
    Any help would be greatly appreciated!
    PS apologies for any unavoidable noobness

    To sample a color from a raster image, ShiftClick with the Eyedropper tool. (CS3)
    Always state what software version you are using.
    JET

  • Has anybody used the Camera RAW filter on an OpenEXR, HDR or similar floating point color image?

    I often work on floating point images rendered out of 3ds Max, specifically OpenEXRs, and I have been lately using the Camera RAW filter to do some image adjustments. There is one problem though, the float image does not load correctly into Camera RAW. It looks slightly over-exposed when loaded and it is nearly impossible to get it back to "scratch". Is Camera RAW not fully float capable? Camera RAW is a drunkard compositor's dream when doing color corrections on a floating point image, especially an image rendered out of a 3D application such as 3ds Max or Maya. Any thoughts?
    Mark Kauffman
    Technical Lead of Project Visualization
    Parsons Brinckerhoff

    For what it's worth I have seen this going back a loooong time.  I've posted on the subject as well and have never gotten a solid answer.  It just appears as though Photoshop considers it "already open, so no need to open it twice".  I believe an uninitialized variable could be involved, since it's intermittent.
    I have found a couple of choices for workarounds or workflow changes...
    1.  You can save the first-opened document opened (e.g., as  a .PSD) somewhere.  Then reopening the raw file will always open a second document.
    2.  You could consider opening the raw file just once, duplicating it as a second layer, then use Camera Raw as a filter.  Obviously that doesn't avail Camera Raw of the raw data, but its usefulness depends on what you're trying to accomplish.
    -Noel

  • Is it possible to get the image from the i pad when mirroring via Apple TV to fill the screen instead of appearing as a screen within a screen?

    When mirroring, is it possible to get the image from the ipad to fill the screen on the TV instead of appearing as a screen within a screen?

    Welcome to the Apple Community.
    No, the iPad has an aspect ratio of 4:3, a TV has an aspect ratio of 16:9, to fit one into the other is impossible without distorting the picture. If your TV has a zoom feature, you may be able to use this to fill the screen a little more to your liking, but this will result in cropping top and bottom.

  • 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 )

  • Problem using IMAQ Array to Color Image vi

    I am doing some pixel manipulation & while going from an image to an Image Pixels (U64) array using IMAQ Color Image to Array VI I cannot see the image once it is modified.
    I am...
    1) converting the image to the 64 bit pixel data using IMAQ ColorImage to Array.vi
    2) doing the manipulation
    3) converting back to an image using the IMAQ Array to ColorImage.vi using the 64 bit input.
    What I get is...
    1) a black image with data behind it... meaning... if I take the magnifier tool and go to the approximate locations of my image where I expect to find the manipulated data, it is there.
    2) cast that image to a 32 bit image & still get a black image for the output.  The data however is no longer there and appears to have been stripped.  
    3) no error's out of any VI's...
    TIA  

    With Vision 2009 situation is not better.
    It happened because U64 image displayed in full scale. So, if you have full range of intensities (from 0 to 65535), then you can see something. But if your intensities in small range, for example, 0...255 in all channels, then you will see black image.
    Feel differences:
    It should be possible to map U16 values into U8 display range  with given range (like IMAQ WindDisplay Mapping does), but right now this feature available for I16 images only, not for U64. What you can do is following - map each channel to U8 (with linear LUT, for example), put channels together, then display 32 bit RGB instead of U64.
    Andrey.

  • Bridge displays color images as b&w

    I assume this has something to do with settings in Bridge CS4, my platform is MacBook Pro OS 6.8.10.
    This question might confuse some people. To beging with, I do shoot my images in RAW files, I even have Bridge convert them to DNG files.
    Upon download the images are displayed in color as they should be for RAW files. After editing images in Camera RAW,  I convert most all images to sRGB. When some of those edited images come back to Bridge, they might be presented in B&W, though no color is lost to the file upon displaying in Photoshop, and I did not edit the file to be a B&W image. I have DNG, Canon RAW, Tif and Jpeg files, and most of these are displayed in color, but some are not, and I have not figured out the missing link just yet. So to be clear, I have Jpeg color images, displaying as b&w images, but they are color images. Only b&w images should be displayed as b&w.
    This problems started once I learned I could edit one image in photoshop out of a series of images, then after editing, i could bring the single photo file back to bridge, and then copy/paste image settings onto a groups of images in Bridge, and all those images would then have the same adjustments made to them as a batch edit adjustment.
    But now sometimes I get a B&W display on some images even when I do not apply a Bridge settings edits, and when I never edited the image for a B&W display.  I has to a setting somewhere in Bridge, and I just have not figured it out yet.
    Thanks in advance for all suggestions:

    ssprengel wrote:
    Yammer asked a pertinent question that remains unanswered—is that “settings” badge (small lines-triangles-in-a-circle) shown on the B/W image thumbnails (at least).  If you’re not sure, then include a screenshot of a few Bridge thumbnails where some are color and some are B/W, using the little camera icon on the web version of the forum messages.
    And the answer is NO!. I only have those showing up associated with the .DNG files (Camera RAW)
    Another similar question would be if you see a B/W thumbnail in Bridge, try doing a right-click (or whatever the Mac equivalent is) and choose Open in Camera Raw.  Is the image in B/W or color in Camera Raw.
    A <Control Click> (on MAC), opens the .jpeg file in b&w, as shown in the thumbnail.
    Can you upload three versions of one of the images that display as B/W:  the original PSD/raw/TIF file, a normal Save As JPG that is in color, and a Save For Web JPG that is B/W?  Use something like http://www.dropbox.com/ and post a public download link to the images, here.
    NO, I thought I explained that real well. Only the .jpeg file that was saved through the "Save for Web" processing ( that is, the a jpeg the goes through greater compression to reduce image file size for web display), is the image file process that produces the b&w thumbnail in Bridge ONLY. All opened images, of various file formats (ie: DNG, Psd, Tif, Jpeg, & Jpeg for Web), all present Color presentations (for editing in Photoshop, and or in display browsers). It is only the thumbnail of that particular jpeg formatting processing for Web Images that produces the b&w image "THUMBNAIL" in Bridge.
    When you Save As JPG or For Web, are you ever overwriting the original image with a new one or do you always save the PS-edited image with a new name?
    No, never. I leave my RAW files, as RAW originals, and work on newly names images files.
    A theory about what is happening is that Bridge uses Camera Raw to generate its thumbnails, and the images that are B/W have some embedded Camera Raw setting, perhaps pasted from a different filetype, that makes CR think the image should be rendered as B/W, but when you open the images on Photoshop, you are opening them directly, without using the Camera Raw plug-in, so any embedded settings are ignored, and the image displays in its original state without the settings having been applied.
    It makes since, (what you are saying), and it certainly does respond in that fashion. Your suggestion to open Ctrl Click, or Right Click to open the thumbnail in Camera RAW, was an interesting test, and the response was to open the previously save color image with a b&w thumbnail, into Camera RAW as a b&w image. So Camera RAW is responding to what is in the xmp settings that describes this images thumbnail to be displayed b&w. It is weird that a browser does not.
    As to what is in the window selections for the "Save for Web" editing windows, Presets for jpeg are :
    Progressive
    Optimize
    Embed Color Profile
    And I use Embed Color Profile.
    Even the Preview button at the bottom of the window, shows the color image as displaying color.
    I vaguely remember about a year ago doing some CS 4 Photoshop and Bridge web tutorials from an unnamed tutoring website and guy named D_k_ . It is his fault. Just kidding, I actually enjoy those tutorial.
    **** Okay, this is perhaps originating from Camera RAW presets, where you can apply previously made settings to other images and then saved them as Presets. Though I don't have this checked in Camera RAW ( still something goofy is going on there), I did find that in Bridge I can reset the individual "saved for Web" image thumbnail back to the the color image by :
    Right Click  (Ctrl Click, MAC) on the thumbnail
    menu down to the "Development Settings" and select :
    "Previous Conversion", and this presents the color thumbnail.
    I have now tested all the Camera RAW settings in Camera RAW, by opening an image in each one of these :
    Image Settings
    Camera RAW Defaults
    Previous Conversion
    Custom Settings
    and then reducing image file size, and saving for the web, while changing file name, and each and every one of these Settings produces a Sepia Toned thumbnail. I found out the images were a subtle Sepia Toned image by enlarging the Bridge Thumbnails bigger for a better view. So I can correct the thumbnail after it has been created, but so far, I can't get the thumbnail to be correct on first creation of the web saved jpeg image file. Regular jpeg image file thumbnails save correctly.

  • Problem of acquiring color image

    Now I try to acquire color image but show in grayscale real time with filter it before. The result is so slow on monitor. How can I do to acquire the filter image faster.Any help very appreciated.

    First make sure that you have the most efficient kind of aqusition running.IMAQ LL Ring Without Timeout is the most efficient continous aquisition scheme I know of.
    The you must make sure that your conversion and filetering code is efficient. As far as conversion is concerned make sure and use the extract color plane VI and extract the luminance plane. This is the fastest way to do color to gray scale. You can play around with Vision Builder and the Script>>Performace Meter Option until you get a filtering script which is faster than your frame rate.
    Hopoe this help,
    Amaury Rolin
    NI Applic
    ations Engineer

  • How to overlay color image over a grayscale image without IMAQ?

    I would like to display a color image over a grayscale image; I would like the color image look translucent. How would I do this without using IMAQ functions? I am currently displaying my grayscale image using Intensity Graph.

    > I would like to display a color image over a grayscale image; I would
    > like the color image look translucent. How would I do this without
    > using IMAQ functions? I am currently displaying my grayscale image
    > using Intensity Graph.
    Transparency and overlays are really just arithmetic on the images. It
    is either done by the windowing system or by you. At the moment you
    can't set transparency on LV controls. You can set it on LV floating
    windows on some OSes, but then you will need to have the windows lined up.
    A more direct approach is to lighten or darken the color image elements
    based upon whether they will display over white, black, or a shade of
    gray. If the images don't have the same size pixels, this will have a
    first step of resampling th
    e images so they do. Then combine the pixels
    using the transparency you were going to apply to the color and the
    shade of gray beneath it. I'm being vague here because there are lots
    of physical models for combining colors.
    If I look in my paint program I see about fifteen, so this is where you
    get to make a choice and decide if black behind a red pixel is black, or
    dark red. It all depends on whether these are two transparent
    images(acetate sheets) backlit, or is it a transparency over a
    nontransmitting media like paper. Anyway, if you can be more specific
    about what you want, none of this is hard, typically just scaling the
    int32s, adding, and some sort of normalization.
    Greg McKaskle

  • Dull colored images in CS3

    Hi everyone,
    I'm working on my online portfolio and then realized once it got time for me to add the pictures that the images were dull, light, and just overall horrible looking. I've looked at a bunch of forum posts, most of which didn't actually reveal a solution just a statement that flash didn't support color profiles or something to that effect. I did notice that all these posts were from sometime between 2005-2007 so there must be some kind of solution out there by now that I'm just not aware of.
    So I've tried exporting from photoshop as a jpeg and a png both through "save as" and "save for web devices". I've tried changing the color settings to sRGB IEC61966-2.1 and set RGB to "convert to working RGB". I've tried turning off the assigned profiles in photoshop. I've tried dragging the picture from photoshop or illustrator directly into Flash. I've tried changing the jpeg quality in "publish settings" to 100% in Flash. I've tried right clicking on the image in the library and changing its settings. I've tried adding script like "stage.colorCorrection...." into my file.
    Nothing has worked and I am at a loss. I haven't found any other solutions in all the threads that I've read to try. I really don't know how I'm going to continue on with my site if I can't get my images to show up right. I refuse to put bad quality images to represent my work. Please help =(. I'll try anything at this point.
    -Discouraged

    One more trick you could try; in Flash, go to:
    Modify>Bitmap>Trace Bitmap:
    Color threshold = 100    
    Minimum Area = 1 pixels    
    Curve fit = Pixels
    Corner threshold = Normal
    That will convert your bitmap data to vector data, which tends to be a bit more friendly inside of Flash, and much more lightweight when exported. However, depending upon how big your bitmap/jpeg/png is, the process time for tracing the bitmap may be time consuming. Make sure you save your work before starting the Trace Bitmap process, I've had Flash crap out on me before when tracing bitmaps.

  • How can i compare two color images in vision builder for AI?

    What i want to do is to compare two images. I have a base color image that represents the desired colors and tones. I have another image to be compared to the base image. What i want to do is to compare this two images to know how close they are regarding contents of color and tones. In other words, i want to know how close is image 2 to image 1 (base sample)....
    I would like to know how to get the content of certain colors in an image and then compare this values with the same values from another image.
    For example..i have two sheets of paper that contain various mixed colors...i want to know the amount of green, red an blue in each image and then comapre this values.
    What i want to do is to compare difer
    ent samples of fabrics. this fabrics must be of a specified color...but due to the process they may vary in tone or even color...so i want to compare this fabrics to a amster sample to see how close they are in color and tone..
    Anything would help since i dont have experience in this type of comparisons...thanks

    VBAI allows you to work with grayscale images only. You can acquire an image, use the vision assistant to convert it grayscale by extracting the luminance plane (or any of the other color planes) and then analyze the resulting grayscale image. To do what you are talking about, though, it would really be better to get Vision for labview. You could then take color images, compare color plains, use statistical functions to determine average color values, and so on.

  • Export Problem with Color Image Washing Out

    I did an export of an image from DNG to JPG in LR4. Funny thing is, the JPG suddenly appears with a washed out look. It looks the same in Develop and Print modules also.
    It gets even funnier, because when I use Finder to check the photo, the preview of the image is fine. I also opened the image from Finder in Photoshop CS5 and it is fine there. I also opened the image in PSCS5 from LR4 with "Edit In" and again the image in Photoshop is fine. So this appears to be a view issue in LR4. I did not print out the washed out photo but I suspect it would print out as it appears in LR4.
    I've done some other image exports from DNG to JPG with other images and they do not have this problem but those were black&white converted images. However, I did check doing an export of another color image with the same result as the problem image. Here are screen captures of the DNG and the exported JPG (I was going to upload the exported JPG, but like I said it appears fine in Finder):

    My monitor calibration is just fine. I was saying that because similar
    problems are almost always due to bad monitor profiles. If you calibrate
    regularly using hardware calibration then you're probably fine. Many people
    use canned profiles from monitor manufacturers however and lightroom is
    highly sensitive to those and shows messed up color depending on the
    source. In this case however, since the restart fixed it it was likely a
    bad preview image. I have seen before that LR sometimes is lazy in
    refreshing those and can show you strange results that only get cleared up
    by forcing a preview refresh.
    Last your top screenshot DOES show that you are pushing the red in that
    dress out of the monitor gamut. You can check this in the soft proof in LR
    4 by turning on the monitor gamut warning. If you blow the color out of the
    monitor gamut the preview is no going to be accurate no matter how good
    your calibration. Just a cautionary warning.
    Sent from my iPhone

  • Getting an image from a file

    I am trying to get an image from a file
    is there a way to convert a BufferedImage into an Image?
    or otherwise get an Image directly from a file?
    my searches turn up nothing
    TIA

    okay, so here's the new code:
    //  image_tracer.java
    //  image tracer
    //  Created by Erik Schmidt on 8/21/06.
    //  Copyright (c) 2006 __MyCompanyName__. All rights reserved.
    import java.util.*;
    import javax.imageio.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.lang.*;
    import java.io.*;
    import java.awt.image.*;
    import java.util.ArrayList;
    import java.awt.Graphics;
    import java.net.*;
    import java.applet.*;
    //FILE class, deals with File IO (note: does not possess the full method count of the java.io class File, this class only supports IO)
    class FILE {
         private static String fname=new String();
         //class constructor, takes a String as an argument, returns nothing
         public FILE(String fName){
              fname=fName;
         }//end constructor
         //gets filename, takes no argument, returns a String
         public static String getFilename(){ return fname; }
         //Reads in a file, takes no arguments, returns a String-either the contents of the file, or an error message
         public static String readFile() throws FileNotFoundException,IOException {
              String ret=new String();
              String tempstr=new String();
              File tFile=new File(fname);
              BufferedReader inFile=new BufferedReader(new FileReader(new File(fname)));
              if(tFile.exists()){
                   while((tempstr=inFile.readLine())!=null) ret+=tempstr+"\n";
                   ret=ret.substring(0,ret.length()-1);
              }else{
                   return null;
              }//end if
              return ret;
         }//end readFile
         //Writes to a file, takes a String as an argument, returns true for sucess; false for IOException
         public static boolean writeFile(String str) throws IOException{
              PrintWriter prnt=new PrintWriter(new FileWriter(fname,false),true);
              try{
                   prnt.println(str);
                   return true;
              }catch(Exception ioe){
                   return false;
              }//end try/catch
         }//end writeFile
         //Appends text to a file, returns true on completion; false on IOException
         public static boolean appendFile(String str) throws IOException{
              PrintWriter prnt=new PrintWriter(new FileWriter(fname,true),true);
              try{
                   prnt.println(str);
                   return true;
              }catch(Exception ioe){
                   return false;
              }//end try/catch
         }//end appendFile
         //Tells if file exists.  Takes no arguments, returns true if it exists, false if not
         public static boolean exists(){
              File tf=new File(fname);
              if(tf.exists()) return true;
              else return false;
         }//end exists
    }//end FILE class
    class MyPanel extends JPanel {
         Graphics save;
         Image blank;
         Image face;
         ArrayList x;
         ArrayList y;
         ImageObserver ob;
         private class MListen implements MouseMotionListener {
              public void mouseDragged(MouseEvent e){
                   x.add(new Integer(e.getX()));
                   y.add(new Integer(e.getY()));
                   repaint();
              public void mouseMoved(MouseEvent e){
                   //do nothing
         public MyPanel(Image f){
              x=new ArrayList();
              y=new ArrayList();
              blank=Toolkit.getDefaultToolkit().createImage("~/sites/blank.jpg");
              //save=createImage(500,500).getGraphics();
              face=f;
              addMouseMotionListener(new MListen());
              x.add(new Integer(-30));
              y.add(new Integer(-30));
         public void paintComponent(Graphics g){
              g.drawImage(face,0,0,ob);
              //save.drawImage(blank,0,0,ob);
              g.setColor(Color.black);
              //save.setColor(Color.black);
              for(int i=0;i<x.size();i++){
                   //save.fillOval(((Integer)x.get(i)).intValue(),((Integer)y.get(i)).intValue(),20,20);
                   g.fillOval(((Integer)x.get(i)).intValue(),((Integer)y.get(i)).intValue(),20,20);
    class WListen extends WindowAdapter {
         public void WindowClosed(WindowEvent e){
              System.exit(0);
    class MainFrame extends JFrame {
         MyPanel panel;
         JButton submit;
         JPanel main;
         public MainFrame(Image face){
              super("Image Tracer");
              setSize(750,750);
              panel=new MyPanel(face);
              submit=new JButton("Save");
              main=new JPanel(new BorderLayout());
              main.add(panel,BorderLayout.CENTER);
              main.add(submit,BorderLayout.SOUTH);
              setContentPane(main);
    class IMAGE {
         public Image run(String filename){
              return Toolkit.getDefaultToolkit().createImage(filename);
    public class image_tracer {
        public static void main (String args[]) {
              IMAGE image=new IMAGE();
              MainFrame frame=new MainFrame(image.run("~/sites/face.jpg"));
              frame.addWindowListener(new WListen());
              frame.show();
    }ignore the file stuff, that's for later
    why does MainFrame not display the MyPanel object?

Maybe you are looking for