Displaying DICOM images in JPanel

Can anyone please tell me how to display DICOM images using JPanel? I can use JPanel to display ordinary images but it does not seem to work using DICOM images. Can anyone please help me out? I've spent hours and hours trying to solve this problem. Thank you in advance.

Can anyone please tell me how to display DICOM images
using JPanel? I can use JPanel to display ordinary
images but it does not seem to work using DICOM
images. Can anyone please help me out? I've spent
hours and hours trying to solve this problem. Thank
you in advance.The JPanel is only able to display JPEG and GIF images, you will need to decode the DICOM image first and convert to JPEG or GIF format, there are some source codes available on the net. Also check this link out
http://www.dclunie.com/medical-image-faq/html/part8.html

Similar Messages

  • Displaying an image in JPanel

    I have have class called TopPanel which extends a JPanel. The Layout is BorderLayout.
    JMenuBar is BorderLayout.NORTH
    JToolBar is BorderLayout.SOUTH
    I have an image which I want to display on the right hand corner of the panel.
    But if do
    add(image,BorderLayout.EAST) , it does not display the image .
    This is the pseudo code
    public class TopPanel extends JPanel{
           public TopPanel() {
                setLayout(new BorderLayout();
                add(menuBar,BorderLayout.NORTH);   //these get added
                add(toolBar,BorderLayout.SOUTH);
                add(image,BorderLayout.EAST);
    thank you.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    It's just not the image alone, I added a JLabel to test it . Even that doesn't display.

  • Having trouble displaying image in JPanel

    I want to display an image in jpanel making it to scale to the size of the panel.
    And later i should be able to draw on that image , i am really new to all this , but i have to finish it soon.
    This is the code i am compiling and getting error
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class LocaterClient extends JFrame
         JPanel panel;
         public LocaterClient()
              super("LocaterClient");
              panel = new JPanel();
              panel.setSize(374,378);
              panel.setOpaque(false);
              panel.setVisible(true);
         getContentPane().add(panel);
         /*JFrame f = new JFrame();
         f.setSize(374,378);
         f.getContentPane().add(panel);*/
         public void paintComponent(Graphics g)
              super.paintComponent(g);
              ImageIcon img = new ImageIcon("World_MER.jpg");
              ImageIcon fillImage = new ImageIcon(img.getImage().getScaledInstance
    (getWidth(), getHeight(),Image.SCALE_REPLICATE));
              g.drawImage(fillImage.getImage(), 0,0, this);
         public static void main(String args[])
              LocaterClient lc = new LocaterClient();
              lc.setDefaultCloseOperation( EXIT_ON_CLOSE );
              lc.pack();
              lc.setVisible(true);
    This is the error i am getting
    LocaterClient.java:24: cannot resolve symbol
    symbol : method paintComponent (java.awt.Graphics)
    location: class javax.swing.JFrame
    super.paintComponent(g);
    ^
    1 error
    If i remove super.paintComponent(g); line it compiles and runs but i get a tiny panel without the image.
    PLease help me , i am not evn sure is this is the procedure should i follow , because i should be able to draw on that image later on .
    Please provide me with some sample code.

    import javax.swing.*;
    import java.awt.*;
    public class ImagePainter extends JPanel{
      private Image img;
      public ImagePainter(){
        img = Toolkit.getDefaultToolkit().getImage("MyImage.gif");
      public void paintComponent(Graphics g){
        g.drawImage(img,0,0,getSize().width,getSize().height);
      public static void main(String[]args){
        JFrame frame = new JFrame();
        frame.getContentPane.add(new ImagePainter());
        frame.setSize(500,500);
        frame.show();

  • Displaying TIF images from a Servelet?

    Hi All,
    I have a servlet sitting between database of Images (of type bmp, tif, DICOM) and the HTML query interface.
    Baed on the user's input, the servlet queries the database and displays the images. The servelt's code contains
    out.println("<a href=\"javascript:NewWindow(1,'" + url + "','" + fname+"')\"><img src = \"" + url + "\" width = \"100\" height = \"100\" alt = \"" + url+"\" />  </a><br>" + fname + "<br><br>");
    where url is the path to get the image on the disk.
    This works successfully for bmp images but not for tif images. Somebody told me, it does not display tif because IE does not display tif. I would like it to display DICOM images later.
    Any suggestions?

    1. Convert the image to a format that IE understands.
    2. Use a decent browser.

  • Copying image to jpanel

    when i copy an image to jpanel using jlabel i.e
    jlabel lab = new jlabel(new Iconimage("xyz.jpg"));
    i cannot listen to any keys being pressed on the label when i want to copy the image onto a clip board( cntrl C). Is there any method of listening to keys being pressed on jlabel or a method to display the image on jpanel which listens to keys.

    can give code to draw image on Panel.
    icon = new ImageIcon("backUp.gif");
    JPanel panel = new JPanel()
         protected void paintComponent(Graphics g)
              g.drawImage(icon.getImage(), 0, 0, null);
              super.paintComponent(g);
    panel.setOpaque( false );

  • Problem displaying image in jpanel

    Hi,I have posted this on the applet board, but I think its also a general programming problem, so apologies if it isn't relevant to this board, just say so and I'll remove it!
    I've got an applet that receives a variable from a PHP page as a parameter. The variable is "map1.png" the map this variable refers to sits in the same folder as the applet.
    I want to use this variable along with getDocumentBase() to create a URL which will then be used to display an image within a jPanel called mapPane.
    the code I currently have is:
    // get image url
    String mapURL = getParameter("mapURL");
    //set variable for image
    Image map_png;
    // set media tracker
    MediaTracker mt;
    //initialise media tracker     
    mt = new MediaTracker(this);
    map_png = getImage(getDocumentBase(),mapURL);
    // tell the MediaTracker to kep an eye on this image, and give it ID 1;
    mt.addImage(map_png,1);
    // now tell the mediaTracker to stop the applet execution
    // until the images are fully loaded.
    try
    mt.waitForAll();
    catch (InterruptedException e) {}
    // draw image onto mapPane
    mapPane.getGraphics().drawImage(map_png, 200, 200, null);
    Currently the Parameter is being passed into the applet (i've written it out within the applet) but the image is not being displayed. Does anyone have any suggestions about what I'm doing wrong?
    Cheers
    Steve

    hi,
    No, don't get any exceptions, the Java Console has a message:
    <terminated>JavaImageEditor[Java Applet]C:\Program Files\Java\jre1.6.0\bin\javaw.exe
    Cheers
    Steve

  • Display a transparent image in JPanel

    i just start using Java Graphics Programming fews month ago. there's some problem i facing recently. i doing a simple gif file viewer. first i get the file using the Toolkit and put it in a Image object and use the Gif Decoder to decoded each frame of the Gif File to BufferedImage object and display each of the frame in a JPanel inside a JFrame.My porblem is :-
    How to display a transparent image in JPanel? my image source in BufferedImage and how to i know the image is transparent or not?

    I simply use ImageIcon object to display the image (*.gif,*.jpg)
    JLabel l=new JLabel(new ImageIcon("file path"));
    add the label to a panel or frame or dialog
    this object no need to use the ImageBuffered Object
    It can display any animate gif whether the background is transparent or not.

  • Problems displaying image in JPanel

    Hi, I've got an applet that receives a variable from a PHP page as a parameter. The variable is "map1.png" the map this variable refers to sits in the same folder as the applet.
    I want to use this variable along with getDocumentBase() to create a URL which will then be used to display an image within a jPanel called mapPane.
    the code I currently have is:
    // get image url
            String mapURL = getParameter("mapURL");
            //set variable for image
            Image map_png;
            // set media tracker
            MediaTracker mt;
            //initialise media tracker             
            mt = new MediaTracker(this);
            map_png = getImage(getDocumentBase(),mapURL);
            // tell the MediaTracker to kep an eye on this image, and give it ID 1;
            mt.addImage(map_png,1);
            // now tell the mediaTracker to stop the applet execution
            //  until the images are fully loaded.
            try
                 mt.waitForAll();
            catch (InterruptedException  e) {}
            // draw image onto mapPane
            mapPane.getGraphics().drawImage(map_png, 200, 200, null);Currently the Parameter is being passed into the applet (i've written it out within the applet) but the image is not being displayed. Does anyone have any suggestions about what I'm doing wrong?
    Cheers
    Steve

    Hello,
    after an update of the graphics card driver to the newest just released version the problem has vanished.
    Regards

  • How to display tow images in a JPanel

    hello
    I want to display tow images at the same time in a class which extends a JPanel,and the super image is expected to move at will.But the super image is always overlaying the lower one.I have tried to call the setGlassPane() in a JFrame and it works!But how to do in a JPanel?
    Here is my code:
    import java.awt.*;
    import java.awt.geom.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class SlideRheostat extends JPanel
    Image imageRheostat,imageSlip;
    Rectangle rec;
    public SlideRheostat()
         imageRheostat=Toolkit.getDefaultToolkit().getImage("imageRheostat.gif");
         imageSlip=Toolkit.getDefaultToolkit().getImage("imageSlip.gif");
    public void paint(Graphics g,Rectangle rec)
         g.drawImage(imageRheostat,0,0,imageRheostat.getWidth(),imageRheostat.getHeight(),this);
         g.drawImage(imageSlip,20,20,imageSlip.getWidth(),imageSlip.getHeight(),this);

    hello
    I want to display tow images at the same time in a class which extends a JPanel,and the super image is expected to move at will.But the super image is always overlaying the lower one.I have tried to call the setGlassPane() in a JFrame and it works!But how to do in a JPanel?
    Here is my code:
    import java.awt.*;
    import java.awt.geom.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class SlideRheostat extends JPanel
    Image imageRheostat,imageSlip;
    public SlideRheostat()
    imageRheostat=Toolkit.getDefaultToolkit().getImage("imageRheostat.gif");
    imageSlip=Toolkit.getDefaultToolkit().getImage("imageSlip.gif");
    public void paint(Graphics g)
    g.drawImage(imageRheostat,0,0,imageRheostat.getWidth(),imageRheostat.getHeight(),this);
    g.drawImage(imageSlip,20,20,imageSlip.getWidth(),imageSlip.getHeight(),this);

  • Display an image on a JPanel

    Hi,
    I am confused about all the MediaTracker and BufferedImage class used to display an image file (e.g. GIF or JPG) on a JPanel
    Can someone provide the steps and also the code snippet of the JPanel's paint() method?
    I want to display an image directly on the JPanel.
    Thank you.

    "the scrollpane doesn't work" is not very descriptive.
    So I can't help you with that problem.
    The suggested code given to you may not work in all
    situations:
    1) super.paintComponent(..) tells the panel to paint
    all its children (in case you've added any other
    components to the panel).
    2) drawImage() tells the panel to draw the image over
    top of all the children (which defeats the whole
    purpose of doing the super.paintComponent())
    The safer order should be:
    1) drawImage()
    2) setOpaque( false )
    3) super.paintComponent().
    This approach will then work for adding images to the
    background of a textArea, textPane etc.Good point that I did not consider since my JPanel is exclusively used for an image with no components added.
    If your image is known not to have an alpha channel, you could setOpaque(false) in the extended JPanel's constructor and avoid recalling for every paint (as I am able to do in my situation). You'll probably want to do this in otherwise:
    setOpaque(true);
    drawImage(image,x,y,observer);
    setOpaque(false);
    super.paintComponent(g);
    since the next call to paintComponent() will already be setOpaque(false) (unless it is automatically reset, which I haven't seen).
    Robert Templeton

  • Displaying Image on JPanel

    Hello, I am having problems trying to display an image on a Panel which is attached to a Frame. I can display an Image on the Frame with no difficulty, however nothing appears when I try to draw on the Panel.
    Hope someone can help me with this.
    Here is the code
    import java.awt.*;
    import java.awt.event.*;
    class TestFrame extends Frame
         Panel panel;
         public TestFrame()
             setSize(400,400);
             panel = new Panel();
             add(panel);
         public class panel extends Panel
             Image img;
             public panel()
                 setSize(400,400);
              setVisible(true);
              img = Toolkit.getDefaultToolkit().getImage("C:\\red.gif");
             public void paint(Graphics g)
              g.drawImage(img,0,0,this);
         public static void main (String[] args)
             TestFrame f = new TestFrame();
             f.setVisible(true);
    }

    I took a look on your code and I find that 2 things might be wrong with it. See the comments below.
    import java.awt.*;
    import java.awt.event.*;
    class TestFrame extends Frame
         Panel panel;
         public TestFrame()
             setSize(400,400);
         panel = new Panel(); /****You created a Panel object from the the awt package and not an object from the panel class that you defined below. Try using panel= new panel(); or use a anonymous class for this purpose. The picture will never show because it is not using the class that you defined************/
         add(panel);
         public class panel extends Panel /*******Try giving the panel class that you defined another name so as to not confuse you with java.awt.Panel classs. ********/
         Image img;
         public panel()
         setSize(400,400);
              setVisible(true);
    img =
    =
    Toolkit.getDefaultToolkit().getImage("C:\\red.gif");
         public void paint(Graphics g)
              g.drawImage(img,0,0,this);
         public static void main (String[] args)
         TestFrame f = new TestFrame();
         f.setVisible(true);
    }Below is a panel class that i think can help. Just pass the appropriate parameters to it.
    //container class for the image panel
    public class ImagePanel extends Panel {
    Image image;
    public ImagePanel(Image image) {
    this.image = image;
    // display the image
    public void paint( Graphics g )
    // draw the original image
    g.drawImage( image, 1, 1, this );

  • Need help in displaying an Image in a JLabel

    Hi everyone,
    I am using a JLabel to display images on a particular screen. I am facing some problem while doing so..
    On my screen there are images of some garments. When the users select colors from a particular list, i should color this garment images and load it on the screen again with the colors. I have a floodfill class for filling the colors in the images. The problem I am facing is I am able to color the image properly with my floodfill class but when displaying the image on the same jlabel, the image gets distorted somehow.
    Everytime I color the image, I create an ImageIcon of the image and use the seticon method from the JLabel class. First I set the icon to null and then set it to the imageicon created. here is the code I use.
    If 'image' is the the image i have to load
    ImageIcon imgicon = new ImageIcon(image);
    jlabel.setIcon(null);
    jlabel.setIcon(imgicon);I am setting the icon to null because I have not found any other method to clear the previous image from the jlabel.
    Can anyone who has worked on images before and faced a similar situation help me with this?? Is there some other container I can use besides the JLabel to display the images perhaps?
    Thanks in advance.....
    Bharat

    And the thing is when I first go into that screen with the selected colors it is displaying the images perfectly.
    It is only giving problems when I pick different colors on the screenit really sounds like the problem is in your floodfill class.
    I have no idea what's in floodfill, but if you were e.g. using a JPanel and paintComponent,
    you would need to have as the first line in paintComponent()
    super.paintComponent(..);
    to clear the previous painting.
    if not, you would be just drawing over the top of the previous paintComponent(), and if the calculation of the
    painting area is not 100% exact, you may get the odd pixel not painted-over, meaning those pixels will display
    the old color.

  • Problem Displaying an Image in a JScrollPane

    Hi All,
    I've placed a Toolbar at the bottom of a JFrame and above the toolbar I placed a JTabbedPane. In one of the tabs I want to display a full sized image.The size of the image that I want to display using a scroll pane is 595x842 pixels. Now the problem is that when I display the image in the scroll pane the bottom toolbar is overlapped with the scrollpane. I don't want to resize the image as it is spoiling the image quality.I used the below code
    JPanel imagepagepanel=new JPanel()
        protected void paintComponent(Graphics g)
              js=new JScrollPane();
              Point p = js.getViewport().getViewPosition();
              g.drawImage(demoicon.getImage(), p.x, p.y, null);
    mytabbedpane.addTab("View Image",js); //add the scrollpane to the tabI even tried using a label to display the image in the tabbedpane and I've got the same overlapping problem.
    I am able to embed the default browser in my application using JDIC API and the image display is fine in the browser without overlapping the bottom toolbar. But I don't want to use a web browser to display the image.
    It would be of great help if anyone could suggest a solution to the overlapping problem. I want the scroll pane to work similar to a web browser while displaying a large sized image.
    Thanks in advance.

    Override the paintComponent method to just draw the
    image at 0, 0, w, h.
    The rest is not needed, to say the least.Here's an easier way
    import javax.imageio.ImageIO;
    import javax.swing.*;
    import java.awt.*;
    import java.io.File;
    import java.io.IOException;
    public class ImageInTabbedScrollTest extends JFrame {
        public ImageInTabbedScrollTest() {
            buildGUI();
        private void buildGUI() {
            JPanel mainPanel = (JPanel) getContentPane();
            mainPanel.setLayout(new BorderLayout());
            JTabbedPane tabbedPane = new JTabbedPane();
            try {
                Image image = ImageIO.read(new File("images/terrain.jpg"));
                ImageIcon icon = new ImageIcon(image);
                JLabel label = new JLabel(icon);
                JPanel panel = new JPanel(new GridLayout(0,1,5,5));
                panel.add(label);
                JScrollPane jsp = new JScrollPane(panel);
                tabbedPane.addTab("Image",jsp);
                JPanel anotherPanel = new JPanel();
                JLabel label2 = new JLabel("Second Panel");
                anotherPanel.add(label2);
                 label2.setFont(new Font("San Serif",Font.BOLD, 40));
                tabbedPane.add("Label",anotherPanel);
                mainPanel.add(tabbedPane, BorderLayout.CENTER);
                JToolBar tBar = new JToolBar();
                tBar.add(new Button("OK"));
                tBar.add(new Button("Maybe"));
                tBar.add(new Button("No"));
                mainPanel.add(tBar, BorderLayout.SOUTH);
                  } catch (IOException e) {
                e.printStackTrace();
        public static void main(String[] args) {
            Runnable runnable = new Runnable() {
                public void run() {
                    ImageInTabbedScrollTest testFrame = new ImageInTabbedScrollTest();
                    testFrame.setSize(new Dimension(600,600));
                    testFrame.setLocationRelativeTo(null);
                    testFrame.setDefaultCloseOperation(EXIT_ON_CLOSE);
                    testFrame.setVisible(true);
            SwingUtilities.invokeLater(runnable);
    }

  • Displyaing image in JPanel

    I am using below code to display image in jpanel.
    It is not displaying image. Please help me.
    import java.util.Vector;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.Toolkit;
    import java.awt.Image;
    public class project extends JPanel {
         public void init()
              JFrame mFrame = new JFrame("Documentum Login");
              mFrame.setSize(350,200);
    //mFrame.setResizable(false);
    Dimension dim = getToolkit().getScreenSize();
    mFrame.setLocation((dim.width/2) - (mFrame.getWidth()/2),(dim.height/2) - (mFrame.getHeight()/2));
              //JPanel hpan = new JPanel();
    //hpan.setLayout(new BoxLayout(hpan,BoxLayout.Y_AXIS));
    //hpan.setBorder(new TitledBorder (new LineBorder (Color.blue, 1)));
              //Image img = Toolkit.getDefaultToolkit().getImage("D:/Temp/test.jpg");
              ImageIcon icon = new ImageIcon("D:\\Temp\\test.jpg");
              JLabel imageLabel = new JLabel(icon);
              JScrollPane scrollPane = new JScrollPane (JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
              scrollPane.getViewport().add(imageLabel);
              JPanel panel = new JPanel();
              panel.setLayout(new BorderLayout());
              panel.add(scrollPane,BorderLayout.CENTER);
              mFrame.getContentPane().add(panel);
    mFrame.addWindowListener(new WindowAdapter(){
    public void windowClosing(WindowEvent e) {System.exit(0); }
    mFrame.setVisible(true);
         public static void main(String args[])
              project pr = new project();
              pr.init();          
    }

    Don't add() to a JViewport, setView() instead.

  • Problem displaying the image

    I am having a trouble with display an image. My image is put in the base directory of my workspace and my IDE is Eclipse. However, I just can't get the image to display...
    It is at the bottom of the code...
    package ca.carleton.comp3004.client.ui;
    import java.awt.BorderLayout;
    import java.awt.Graphics;
    import java.awt.Image;
    import java.awt.event.ActionEvent;
    import javax.imageio.*;
    import javax.swing.AbstractAction;
    import javax.swing.Action;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.JTextField;
    import javax.swing.border.TitledBorder;
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.event.*;
    import java.awt.event.*;
    import java.io.File;
    import java.io.IOException;
    import ca.carleton.comp3004.client.model.Model;
    import ca.carleton.comp3004.util.AppUtils;
    import ca.carleton.comp3004.util.UiUtils;
    public class GamePanel extends JPanel
         private JPanel bottomStuff;
         private JScrollPane cardPane;
         private JButton requestCards;
         private JPanel centerStuff;
         private JPanel[] playerStuff;
         private JLabel[] playerName;
         private JLabel[] playerNumCards;
         private JLabel[] playerScore;
         private JPanel topStuff;
         private JLabel unoCode;
         private JLabel timeLabel;
         private JButton leave;
         private Image board = null;
         //Icon BoardImage = new ImageIcon("C:\Users\tzaid\Desktop\steve stuff\Johnny_Workspace\GameBoard.png");
         //private ActionListener buttonlistener;
         private Model model;
         private class CardRequestListener implements ActionListener {
            public void actionPerformed(ActionEvent theEvent) {
                  AppUtils.invoke(new Runnable()
                     public void run()
                          model.requestCards();
         private class CardButtontListener implements ActionListener {
            public void actionPerformed(ActionEvent theEvent) {
                 final int cardIndex = Integer.parseInt(theEvent.getActionCommand());
                 AppUtils.invoke(new Runnable()
                    public void run()
                         model.playCard(cardIndex); //****note: extract cardNum
         private class LeaveListener implements ActionListener {
            public void actionPerformed(ActionEvent theEvent) {
                 AppUtils.invoke(new Runnable()
                    public void run()
                         model.leave(); //****note: not in protocol yet
         // actions
         CardRequestListener myCardRequestListener = new CardRequestListener();
         CardButtontListener myCardButtonListener = new CardButtontListener();
         LeaveListener myLeaveListener = new LeaveListener();
        public GamePanel(Model model)
             this.model = model;
             createComponents(this);
         * Creates the components.
        private void createComponents(JPanel container)
             container.setLayout(new BorderLayout());
            // chat panel
            CreatePanels();
            container.add(centerStuff, BorderLayout.CENTER);
            container.add(bottomStuff, BorderLayout.SOUTH);
            container.add(topStuff, BorderLayout.NORTH);
          //  Graphics g = new Graphics();
          //  g.drawImage(board, 0, 0, null);
         * Creates the chat panel for chat room functionality.
         * @return A panel containing chat room controls.
         * @see JPanel
        private void CreatePanels()
             topStuff = new JPanel();
             unoCode = new JLabel("UNO Code: ");
             timeLabel = new JLabel("Time: ");
             leave = new JButton("Leave Game");
             leave.addActionListener(myLeaveListener);
             topStuff.setLayout(new BorderLayout());
             topStuff.add(unoCode, BorderLayout.WEST);
             topStuff.add(timeLabel, BorderLayout.EAST);
             topStuff.add(leave, BorderLayout.NORTH);
             topStuff.setBorder(BorderFactory.createLineBorder(Color.black));
             //******note: need to specify size*****
             int size = 5;
             centerStuff = new JPanel();
             playerStuff = new JPanel[size];
             playerName = new JLabel[size];
             playerNumCards = new JLabel[size];
             playerScore = new JLabel[size];
             centerStuff.setLayout(new FlowLayout(FlowLayout.CENTER, 40, 40));  //need to change later so is around table
             for(int i = 0; i<size; i++){
                  playerStuff[i] = new JPanel();
                  playerStuff.setLayout(new BorderLayout());
              playerName[i] = new JLabel("no name" ); //****get player name here
              playerNumCards[i] = new JLabel("0");
              playerScore[i] = new JLabel("0");
              playerStuff[i].add(playerName[i], BorderLayout.NORTH);
              playerStuff[i].add(playerNumCards[i], BorderLayout.CENTER);
              playerStuff[i].add(playerScore[i], BorderLayout.SOUTH);
              playerStuff[i].setBorder(BorderFactory.createLineBorder(Color.black));
              centerStuff.add(playerStuff[i]);
         bottomStuff = new JPanel();
         cardPane = new JScrollPane();
         requestCards = new JButton("Request Cards");
         requestCards.addActionListener(myCardRequestListener);
         bottomStuff.setLayout(new BorderLayout());
         bottomStuff.add(requestCards, BorderLayout.WEST);
         bottomStuff.add(cardPane, BorderLayout.CENTER);
         bottomStuff.setBorder(BorderFactory.createLineBorder(Color.black));
    public GamePanel()
         setPreferredSize(new Dimension(790,572));
         setMaximumSize(getPreferredSize());
         setMinimumSize(getPreferredSize());
         setSize(getPreferredSize());
         try
    board= ImageIO.read(new File("GameBoard.png"));
    getGraphics().drawImage(board, 0, 0, null);
         catch (IOException e)
         e.printStackTrace();
    /* private JPanel createMessageListPanel()
    JPanel messageListPanel = new JPanel(new BorderLayout());
    JScrollPane scrollPane = new JScrollPane(messageList = createMessageList(),
    JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
    JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    scrollPane.setAutoscrolls(true);
    messageListPanel.add(scrollPane);
    messageListPanel.setBorder(new TitledBorder("Messages"));
    return messageListPanel;
    * Creates message list.
    * @return A text area to store messages in.

    Look like a bad video card. Are you eligible for Apple's Repair extension programs?

Maybe you are looking for

  • Convert smartform spool to 2 pdf and send it by mail

    Hi! Can someone show me some code how to call the smartform and use the spool to convert to pdf and then send it by mail? Thanks in advance, Regards

  • Eject dvd from eMac

    It's an old problem with aging machine, but our school's limping along as best it can! One eMac has a disk stuck in the cd/dvd drive. It's operating, but won't eject. I see no "hole" to use a paperclip on (traditional solution for a Mac), and have so

  • SAP NetWeaver Visual Composer Storyboard Error Problems

    Hi all, currently i new in Business Intelligence area.. when i try to create new model in Visual Composer. i just popup this error message "Login Error com.sap.ds.core.project.Project.deleteResour(Ljava/lang/String;)V" after that when i try to delete

  • Missing or Invalid

    My computer crashed and a friend of my fixed it with a new hard drive that he ended up installing Windows Vista (Yuck). With that being said I tried to install my Adobe Creative Suite 2 Premium and when I go to open a program it says "your username,

  • Wrong Profit Center Posting

    Hello, My Client  posted an FI document in the month of Feb '10 but in wrong the profit center. Now they want to reverse the document and re-posting  in another profit center. They don't know the document number. They just know the balance. Kindly su