Why isn't my JComponent being painted onto JFrame

I am using the Card class from Sun's enum examples. The Card class extends JComponent and each card has an Image field storing its graphic. My problem is that when getContentPane().add(card) is called, it doesn't show up on the JFrame. I have overridden paint() in both the Card class and JFrame to see if either will work, but they haven't. I'd appreciate any help.
import java.util.List;
import java.util.LinkedList;
import java.awt.*;
import javax.swing.JComponent;
public class Card extends Component {
    public enum Rank {
        DEUCE (2),
        THREE (3),
        FOUR (4),
        FIVE (5),
        SIX (6),
        SEVEN (7),
        EIGHT (8),
        NINE (9),
        TEN (10),
        JACK (10),
        QUEEN (10),
        KING (10),
        ACE (11, 1);
private final int value1, value2;
    Rank (int val) {
    this.value1 = val;
    this.value2 = 0;
    Rank (int val, int val2) {
    this.value1 = val;
    this.value2 = val2;
public int val1() { return this.value1; }
public int val2() { return this.value2; }
    public enum Suit { CLUBS, DIAMONDS, HEARTS, SPADES }
    private final Rank rank;
    private final Suit suit;
    private Image image;
    private static final List<Card> protoDeck = new LinkedList<Card>();
    public Card(Rank rank, Suit suit, String img) {
        super();
        this.rank = rank;
        this.suit = suit;
        this.image = Toolkit.getDefaultToolkit().createImage(img);
// is the below method implementation right?
public void paint(Graphics g) {
boolean x = g.drawImage(image, 0, 0, null);
    public Rank rank() { return rank; }
    public Suit suit() { return suit; }
    public Image getImg() { return this.image; }
    public String toString() { return rank + " of " + suit; } 
    // Initialize prototype deck
    static {
        for (Suit suit : Suit.values()) {
            for (Rank rank : Rank.values()) {
                String imgPath = "C:/Documents and Settings/Administrator/Desktop/java/BlackJack/" + rank + suit + ".jpg";
                protoDeck.add(new Card(rank, suit, imgPath));
    public static LinkedList<Card> newDeck() {
        return new LinkedList<Card>(protoDeck); // Return copy of prototype deck
import java.util.LinkedList;
import java.util.Collections;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class BlackJack extends JFrame {
private LinkedList<Card> deck;
private LinkedList<Card> plCrds;
private Card card;
public BlackJack() {
super();
plCrds = new LinkedList<Card>();
setSize(400, 500);
deck = Card.newDeck();
card = dealPl();
getContentPane().add(card);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setVisible(true);
public static void main(String[] args) {
BlackJack bj = new BlackJack();
public void paint(Graphics g) {
g.drawImage(card.getImg(), 5, 5, this);
private Card dealPl() {
Card c = deck.remove();
plCrds.add(c);
return c;
     }

Never override the painting methods of your top level contaier (ie. JFrame).
Custom painting is done by overriding the paintComponent(...) method of JComponent or JPanel.
So because you are using the Card class in a Swing application you need to extend JComponent as suggested above and override paintComponent(...), not paint(...);
Also why do you think you even need to override any paint method to draw the cards. Just add you Cards to a panel using a null layout. Read the Swing tutorial on layout managers, specifically the section on "Absolute Positioning";
http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html
Better yet use the appropriate combination of layout managers to get your desired look so you don't need to worry about a null layout.

Similar Messages

  • Why isn't my text being corrected as I type? Why aren't I able to access versions in my Apps?

    Why isn't my text being corrected as I type? Why aren't I able to access versions in my Apps?

    Which Apps?

  • Why isn't my iPod being synced by iTunes?

    I'm running Windows 8.1 on a new laptop. For whatever reason, my older iPod (model MB754C) isn't syncing with iTunes. I tried to Restore to factory settings and now it won't load my music (that's all I have) onto my iPod. What's wrong and how do I fix it? Help!!!!!!

    Thank you for using the Apple Support Communities
    Are you receiving any error messages when attempting to synchronize your music?

  • TS1538 Why isn't my iPhone being recognized by iTunes??

    I recently updated my iTunes software with the latest version (10.6.3) and suddenly iTunes is no longer recognizing
    my iPhone when I plug it in via USB (and neither is Windows for that matter).  I've tried to troubleshoot using tips from
    Apple Support, but to no avail.  Have others experienced this?  Is the only solution to uninstall iTunes and then reinstall?

    Have you worked through all the steps listed in this support article?
    http://support.apple.com/kb/TS1538

  • Why isn't my iPod 6th generation not being recognized by iTunes?

    Why isn't my iPod 6th generation not being recognized by iTunes?

    Did you alresady try these suggestions? iPod not recognized in iTunes and Mac desktop and iPod not appearing in iTunes

  • Why isn't my Ipod nano 6th generation being recognized on itunes after updating software to 1.2

    Why isn't my Ipod nano 6th generation being recognized on itunes after updating software to 1.2?

    I found that all the movies that I want on my nano have iTunes extras.

  • Why isn't e-mail author being displayed?

    Why isn't e-mail author being displayed? It was a few days ago. In view/columns author is gray, unavailable. How do I get author do be displayed in inbox again? Thanks.

    From what I've read, the Podcast App needs some refinement before it can be considered as a suitable replacement for the Podcast section within the Music App. As you have discovered, deleting the App allows you to revert back to the old method.
    I'll save everyone the trouble of "reading between the lines" here; I don't use the Podcast App, but from what I've read, it's rubbish!

  • Why isn't my outlook opening when I log onto my mac?

    why isn't my outlook opening when I log onto my mac?

    It's probably sleeping in... 
    Look in System Prefs>Accounts for the Login Items. If Outlook is on the list, it may be unchecked. If it's not on the list, add it.
    hope this helps

  • Why doesn't my JDialog content paint?

    Folks,
    I started playing with converting the "little mouse-maze" game in [this thread|http://forums.sun.com/thread.jspa?threadID=5353283] from an applet to a swing app, and I'm stuck.
    The contents of the "Game Over" JDialog doesn't paint (I see dialog border, but the background through content window... and I'm totally clueless as to why or what to do about it... It's pretty obvious that it's a side-effect of the custom painting routine... which I presume must be painting over the top of the dialog content... or maybe the dialog isn't being painted at all because I've blocked the parent's paint-component by showing the dialogue... Hmmm, maybe I need to invoke-it-Later?
    package forums;
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MaxWallacesCollision extends JPanel
      private static final long serialVersionUID = 1L;
      private static final int[] leftWallX = {0,204,204,149,149,162,162,243,260,235,259,232,260,230,207,207,0};
      private static final int[] leftWallY = {500,499,402,402,341,324,227,191,157,141,135,123,116,109,86,1,1};
      private static final int[] playAreaX = {204,204,149,149,162,162,243,260,235,259,232,260,230,207,207,263,263,245,282,262,274,257,273,250,184,184,170,170,208,216,216};
      private static final int[] playAreaY = {499,402,402,341,324,227,191,157,141,135,123,116,109,86,1,1,86,103,115,129,138,147,155,201,230,323,340,384,384,402,499};
      private static final int[] rightWallX = {500,500,263,263,245,282,262,274,257,273,250,184,184,170,170,208,216,216};
      private static final int[] rightWallY = {500,0,1,86,103,115,129,138,147,155,201,230,323,340,384,384,402,499};
      private static final int START_X = 208;
      private static final int START_Y = 490;
      private Polygon leftWall = new Polygon(leftWallX, leftWallY, 17);
      private Polygon playerArea = new Polygon(playAreaX, playAreaY, 31);
      private Polygon rightWall = new Polygon(rightWallX, rightWallY, 18);
      private Rectangle rect = new Rectangle(3,3);
      private Rectangle goal = new Rectangle(207,0,55,25);
      private JFrame frame;
      private boolean listening = false;
      private boolean mouseInside = false;
      public MaxWallacesCollision() {
        super( (LayoutManager)null );
        this.addMouseListener(new MouseAdapter() {
          @Override
          public void mouseEntered(MouseEvent e) {
            //System.out.println("DEBUG: mouseEntered");
            mouseInside=true;
          @Override
          public void mouseExited(MouseEvent e) {
            //System.out.println("DEBUG: mouseExited");
            mouseInside=false;
        this.addMouseMotionListener(new MouseMotionListener() {
          @Override
          public void mouseMoved(MouseEvent e) {
            //System.out.println("DEBUG: mouseMoved"+e.getX()+" "+e.getY());
            //move the yellow square according to mouse position
            rect.setLocation(e.getX()-rect.width/2, e.getY()-rect.height/2);
            repaint();
          public void mouseDragged(MouseEvent e) {
        final JButton startButton = new JButton("Start");
        startButton.setBounds(START_X-25, START_Y-14, 50, 25);
        startButton.setMargin(new Insets(1,1,1,1)); // top, left, bottom, right
        startButton.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            listening=true;
            startButton.setVisible(false);
        super.add(startButton);
      public Dimension getPreferredSize() {
        return new Dimension(500,500);
      public void paintComponent(Graphics g2d) {
        super.paintComponent(g2d);
        g2d.setColor(Color.WHITE);
        g2d.fillRect(0,0, (int)getSize().getWidth(), (int)getSize().getHeight() );
        g2d.setColor(Color.BLUE);
        g2d.fillPolygon(playerArea);
        g2d.setColor(Color.GREEN);
        g2d.fillRect(goal.x, goal.y, goal.width, goal.height);
        g2d.setColor(Color.RED);
        g2d.fillPolygon(leftWall);
        g2d.fillPolygon(rightWall);
        g2d.setColor(Color.YELLOW);
        g2d.setFont(new Font("Helvetica",Font.BOLD,16));
        if (mouseInside) {
          g2d.fillRect(rect.x, rect.y, rect.width, rect.height);
        } else {
          g2d.fillRect(START_X, START_Y, rect.width, rect.height);
        g2d.setColor(Color.BLACK);
        if (listening && mouseInside && (leftWall.intersects(rect)||rightWall.intersects(rect)) ) {
          listening = false;
          g2d.drawString("Crashed!", rect.x, rect.y);
          for ( MouseMotionListener l : getMouseMotionListeners() ) {
            removeMouseMotionListener(l);
          JOptionPane.showMessageDialog(SwingUtilities.getWindowAncestor(this), "Collision!", "Game Over", JOptionPane.INFORMATION_MESSAGE);
          System.exit(1);
      public static void main (String[] args) throws Exception {
        SwingUtilities.invokeLater(
          new Runnable() {
            public void run() {
              JFrame frame = new JFrame("Add Text to List");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setContentPane(new MaxWallacesCollision());
              frame.pack();
              frame.setVisible(true);
    }Any guidance would be appreciated.
    Thanx all. Keith.

    I tried the invokeLater thingummy... which seems to work... Still, What's going on here? I guess the modal-dialog blocked the EDT, so no part of the app could be repainted? Is that it?
    package forums;
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MaxWallacesCollision extends JPanel
      private static final long serialVersionUID = 1L;
      private static final int[] leftWallX = {0,204,204,149,149,162,162,243,260,235,259,232,260,230,207,207,0};
      private static final int[] leftWallY = {500,499,402,402,341,324,227,191,157,141,135,123,116,109,86,1,1};
      private static final int[] playAreaX = {204,204,149,149,162,162,243,260,235,259,232,260,230,207,207,263,263,245,282,262,274,257,273,250,184,184,170,170,208,216,216};
      private static final int[] playAreaY = {499,402,402,341,324,227,191,157,141,135,123,116,109,86,1,1,86,103,115,129,138,147,155,201,230,323,340,384,384,402,499};
      private static final int[] rightWallX = {500,500,263,263,245,282,262,274,257,273,250,184,184,170,170,208,216,216};
      private static final int[] rightWallY = {500,0,1,86,103,115,129,138,147,155,201,230,323,340,384,384,402,499};
      private static final int START_X = 208;
      private static final int START_Y = 490;
      private Polygon leftWall = new Polygon(leftWallX, leftWallY, 17);
      private Polygon playerArea = new Polygon(playAreaX, playAreaY, 31);
      private Polygon rightWall = new Polygon(rightWallX, rightWallY, 18);
      private Rectangle rect = new Rectangle(3,3);
      private Rectangle goal = new Rectangle(207,0,55,25);
      private JFrame frame;
      private boolean listening = false;
      public MaxWallacesCollision() {
        super( (LayoutManager)null );
        this.addMouseListener(new MouseAdapter() {
          @Override
          public void mouseExited(MouseEvent e) {
            listening=false;
        this.addMouseMotionListener(new MouseMotionListener() {
          @Override
          public void mouseMoved(MouseEvent e) {
            //move the yellow square according to mouse position
            rect.setLocation(e.getX()-rect.width/2, e.getY()-rect.height/2);
            repaint();
          public void mouseDragged(MouseEvent e) {
        final JButton startButton = new JButton("Start");
        startButton.setBounds(START_X-25, START_Y-14, 50, 25);
        startButton.setMargin(new Insets(1,1,1,1)); // top, left, bottom, right
        startButton.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            listening=true;
            startButton.setVisible(false);
        super.add(startButton);
      public Dimension getPreferredSize() {
        return new Dimension(500,500);
      public void paintComponent(Graphics g2d) {
        super.paintComponent(g2d);
        g2d.setColor(Color.WHITE);
        g2d.fillRect(0,0, (int)getSize().getWidth(), (int)getSize().getHeight() );
        g2d.setColor(Color.BLUE);
        g2d.fillPolygon(playerArea);
        g2d.setColor(Color.GREEN);
        g2d.fillRect(goal.x, goal.y, goal.width, goal.height);
        g2d.setColor(Color.RED);
        g2d.fillPolygon(leftWall);
        g2d.fillPolygon(rightWall);
        g2d.setColor(Color.YELLOW);
        g2d.setFont(new Font("Helvetica",Font.BOLD,16));
        if (listening) {
          g2d.fillRect(rect.x, rect.y, rect.width, rect.height);
        } else {
          g2d.fillRect(START_X, START_Y, rect.width, rect.height);
        g2d.setColor(Color.BLACK);
        if (listening && (leftWall.intersects(rect)||rightWall.intersects(rect)) ) {
          listening = false;
          g2d.drawString("Crashed!", rect.x, rect.y);
          SwingUtilities.invokeLater(new Runnable() {
            public void run() {
              crash();
      private void crash() {
        for ( MouseMotionListener l : getMouseMotionListeners() ) {
          removeMouseMotionListener(l);
        JOptionPane.showMessageDialog(SwingUtilities.getWindowAncestor(this), "You crashed!", "Game Over", JOptionPane.INFORMATION_MESSAGE);
        System.exit(1);
      public static void main (String[] args) throws Exception {
        SwingUtilities.invokeLater(
          new Runnable() {
            public void run() {
              JFrame frame = new JFrame("Add Text to List");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setContentPane(new MaxWallacesCollision());
              frame.pack();
              frame.setVisible(true);
    }The challend is to "move" the mouse-pointer automagically to the start position... sounds hard, coz I bet that ain't "normal"... Maybe Robot can do that?
    Cheers all. Keith.

  • Why isn't Java letting me change the background color of the current panel?

    Basically, I am just trying to learn all there is about interactive mouse gestures and am attempting to build some sort of frankenstein-ish paint program.
    Here is the code:
    import java.awt.Color;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import java.awt.event.MouseMotionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    public class MyPaint extends JPanel
        JButton button;
        JFrame frame;
        int currentX;
        int currentY;
        int counter = 1;
        public MyPaint()
            createComponents();
            addComponentsToPanels();
            setFrameProperties();
            activateListeners();
        public void addComponentsToPanels()
            this.add(button);
        public void createComponents()
            button = new JButton("Button");
            button.setToolTipText("This is the first button");
        public void setFrameProperties()
            frame = new JFrame();
            frame.setSize(400,400);
            frame.setResizable(false);
            frame.setVisible(true);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.add(this);
        public void activateListeners()
            MyMouseListener listener = new MyMouseListener();
            button.addMouseListener(listener);
            button.addMouseMotionListener(listener);
        private class MyMouseListener implements MouseListener, MouseMotionListener
            MyPaint myPaint = new MyPaint();
            public void mouseClicked(MouseEvent e) throws UnsupportedOperationException
                JOptionPane.showMessageDialog(null,"The mouse was clicked!");
            public void mousePressed(MouseEvent e) throws UnsupportedOperationException
                JOptionPane.showMessageDialog(null,"The mouse was pressed!");
            public void mouseReleased(MouseEvent e) throws UnsupportedOperationException
                JOptionPane.showMessageDialog(null,"The mouse was released!");
            public void mouseEntered(MouseEvent e) throws UnsupportedOperationException
                myPaint.setBackground(Color.RED); // why isn't this working? - I want the original panel to be red (not the newly created windows on top)
            public void mouseExited(MouseEvent e) throws UnsupportedOperationException
                myPaint.setBackground(Color.BLUE); // why isn't this working? - I want the original panel to be blue (not the newly created windows on top)
            public void mouseDragged(MouseEvent e) throws UnsupportedOperationException
                currentX = e.getX();
                currentY = e.getY();
                repaint();
            public void mouseMoved(MouseEvent e) throws UnsupportedOperationException // why is this only being called once?
                System.out.println("mouseMoved: " + counter);
                counter++;
        public static void main(String[] args)
            new MyPaint();
    }I would just like to know how to make the inner class set the background of the panel of the outer class of the same window instead of doing what I want but in a newly opened window.
    Any help in fixing this would be greatly appreciated!
    Thanks in advance!

    Thanks! I just wanted to add:
    In addition to commenting out MyPaint myPaint = new MyPaint() and removing the this keyword when dereferencing setBackground() in MyMouseListener , I also changed
    button.addMouseListener(listener);
    button.addMouseMotionListener(listener);
    into
    this.addMouseListener(listener);
    this.addMouseMotionListener(listener);
    so that the colour changes when you hover the cursor in or out of the panel instead of the button.

  • I'm trying to update my iphone 3GS to the 4.3.4 version and I am getting the error message "This version of itunes (version 9.1.1) is the current version.  How do I update my PHONE and why is an itunes update being confused for my iphone?

    I'm trying to update my iphone 3GS to the 4.3.4 version and I am getting the error message "This version of itunes (version 9.1.1) is the current version.  How do I update my PHONE and why is an itunes update being confused for my iphone?

    You need iTunes 10.0 or greater to update your phone...iTunes isn't confused at all. If you're on a Mac, you'll need OS X 10.5.8 or greater to update iTunes to 10.0 or greater.

  • Images disappearing / being painted over

    Hi,
    Not especially familiar with images and am having issues with images being painted over when ever I move or adjust the size of my GUI. I built a majority of the GUI using the Form Designer included with Netbeans.
    Would really appreciate any advice, happy to include more detail if required.
    Cheers,
    Tim
    GUIView
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import java.io.IOException;
    import java.util.Vector;
    import javax.imageio.ImageIO;
    * GUIView.java
    * Created on 22 April 2007, 21:25
    * The GUIView class is responsible to display a graphical interface.
    * This class interacts with the user and the GUIControl class allowing the user to operate the system.
    * @author  Tim
    public class GUIView extends JFrame implements ActionListener {
    // Declare method variables
        private JTextField prodIDInput0;
        private JLabel prodIDLabel0;
        private JLabel prodIDLabel1;
        private JLabel prodIDLabel2;
        private JLabel prodNameLabel0;
        private JLabel prodNameLabel1;
        private JTextField amtRcvdInput0;
        private JLabel amtRcvdLabel0;
        private JButton cancelButton0;
        private JMenu fileMenu0;
        private JMenuItem exportXMLMenuItem;
        private JMenuItem exitMenuItem;
        private JButton findButton0;
        private JLabel itemPrice0;
        private JScrollPane jScrollPane1;
        private JMenuBar menuBar0;
        private JButton paymentButton0;
        private JLabel prodDescLabel0;
        private JLabel prodDescLabel1;
        private JPanel prodImagePanel0;
        private JPanel prodPanel0;
        private JLabel qtyLabel0;
        private JTextField qtyInput0;
        private JLabel totalPrice0;
        private JLabel totalPrice1;
        private JList transList0;
        private JPanel transPanel0;
        private Vector listData;
        private BufferedImage img;
        private GUIControl guiCtl0;
        /** Creates new form GUIView */
        public GUIView (GUIControl guiCtl0) {
            // reference guiCtl object
            this.guiCtl0 = guiCtl0;
        /** initilise gui object */
        public void initGui () {
            // initialise the GUI
            initComponents ();
            // paint image
            paintImage ("images/transparent.gif");
            // show the GUI
            setVisible (true);
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        private void initComponents () {
            // Instantiate GUI objects
            prodIDLabel0 = new JLabel ();
            prodIDLabel1 = new JLabel ();
            prodNameLabel0 = new JLabel ();
            prodNameLabel1 = new JLabel ();
            prodDescLabel0 = new JLabel ();
            prodDescLabel1 = new JLabel ();
            prodImagePanel0 = new JPanel ();
            itemPrice0 = new JLabel ();
            totalPrice0 = new JLabel ();
            totalPrice1 = new JLabel ();
            prodPanel0 = new JPanel ();
            prodIDLabel2 = new JLabel ();
            prodIDInput0 = new JTextField ();
            qtyInput0 = new JTextField ();
            qtyLabel0 = new JLabel ();
            findButton0 = new JButton ();
            transPanel0 = new JPanel ();
            paymentButton0 = new JButton ();
            cancelButton0 = new JButton ();
            amtRcvdInput0 = new JTextField ();
            amtRcvdLabel0 = new JLabel ();
            jScrollPane1 = new JScrollPane ();
            transList0 = new JList ();
            menuBar0 = new JMenuBar ();
            fileMenu0 = new JMenu ();
            listData = new Vector ();
            // default close operation is to terminate the application
            setDefaultCloseOperation (WindowConstants.EXIT_ON_CLOSE);
            // title of the window
            setTitle ("Supermarket Management System");
            // centre the GUI on the screen
            Rectangle rect = GraphicsEnvironment.getLocalGraphicsEnvironment ().getMaximumWindowBounds ();
            rect.grow (-185,-100);
            setBounds (rect);
            // sets the minimum size the wonw can be shrunk to
            setMinimumSize (new java.awt.Dimension (880, 480));
            // sets the name of the frame
            setName ("mainFrame");
            // setup label to show Product ID:
            prodIDLabel0.setFont (new java.awt.Font ("Tahoma", 1, 14));
            prodIDLabel0.setText ("Product ID:");
            // setup label to show the id of the latest product object
            prodIDLabel1.setFont (new java.awt.Font ("Tahoma", 0, 14));
            prodIDLabel1.setText ("");
            prodIDLabel1.setToolTipText ("Product ID");
            // setup label to show Name:
            prodNameLabel0.setFont (new java.awt.Font ("Tahoma", 1, 14));
            prodNameLabel0.setText ("Name:");
            // setup label to show the name of the latest product object
            prodNameLabel1.setFont (new java.awt.Font ("Tahoma", 0, 14));
            prodNameLabel1.setText ("");
            prodNameLabel1.setToolTipText ("Product Name");
            // setup label to show Description:
            prodDescLabel0.setFont (new java.awt.Font ("Tahoma", 1, 14));
            prodDescLabel0.setText ("Description:");
            // setup label to show the description of the latest product object
            prodDescLabel1.setFont (new java.awt.Font ("Tahoma", 0, 14));
            prodDescLabel1.setText ("");
            prodDescLabel1.setToolTipText ("Product Description");
            // align the prodDescLabel1 to TOP
            prodDescLabel1.setVerticalAlignment (SwingConstants.TOP);
            // setup panel to display image
            prodImagePanel0.setBackground (new java.awt.Color (255, 255, 255));
            prodImagePanel0.setBorder (javax.swing.BorderFactory.createEtchedBorder (javax.swing.border.EtchedBorder.RAISED));
            org.jdesktop.layout.GroupLayout prodImagePanel0Layout = new org.jdesktop.layout.GroupLayout (prodImagePanel0);
            prodImagePanel0.setLayout (prodImagePanel0Layout);
            // specify how much the panel expands on the horizontal axis
            prodImagePanel0Layout.setHorizontalGroup (
                    prodImagePanel0Layout.createParallelGroup (org.jdesktop.layout.GroupLayout.LEADING)
                    .add (0, 304, Short.MAX_VALUE)
            // specify how much the panel expands on the vertical axis
            prodImagePanel0Layout.setVerticalGroup (
                    prodImagePanel0Layout.createParallelGroup (org.jdesktop.layout.GroupLayout.LEADING)
                    .add (0, 255, Short.MAX_VALUE)
            // setup item price label
            itemPrice0.setFont (new java.awt.Font ("Tahoma", 1, 14));
            itemPrice0.setText ("");
            itemPrice0.setToolTipText ("Transaction Item Price information");
            // setup label to display Total Price:
            totalPrice0.setFont (new java.awt.Font ("Tahoma", 1, 18));
            totalPrice0.setText ("Total Price:");
            // setup label to display current transaction total price
            totalPrice1.setFont (new java.awt.Font ("Tahoma", 0, 18));
            totalPrice1.setText ("$0.00");
            totalPrice1.setToolTipText ("Total cost of transaction");
            // setup JPanel to contain product look up components
            prodPanel0.setBorder (BorderFactory.createTitledBorder ("Enter Product"));
            // setup label to display Product ID:
            prodIDLabel2.setText ("Product ID:");
            // setup label to display Quantity:
            qtyLabel0.setText ("Quantity:");
            // setup button and display FIND as the text
            findButton0.setFont (new java.awt.Font ("Tahoma", 0, 14));
            findButton0.setText ("FIND");
            findButton0.setToolTipText ("Click to find product");
            findButton0.addActionListener (this);
            // create new GroupLayout for prodPanel0
            org.jdesktop.layout.GroupLayout prodPanel0Layout = new org.jdesktop.layout.GroupLayout (prodPanel0);
            prodPanel0.setLayout (prodPanel0Layout);
            // set horizontal group
            prodPanel0Layout.setHorizontalGroup (
                    prodPanel0Layout.createParallelGroup (org.jdesktop.layout.GroupLayout.LEADING)
                    .add (prodPanel0Layout.createSequentialGroup ()
                    .add (15, 15, 15)
                    .add (prodIDLabel2)
                    .addPreferredGap (org.jdesktop.layout.LayoutStyle.RELATED)
                    // add prodIDInput0 JTextField to form
                    .add (prodIDInput0, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 126, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add (22, 22, 22)
                    .add (qtyLabel0)
                    .addPreferredGap (org.jdesktop.layout.LayoutStyle.RELATED)
                    // addd qtyInput0 JTextField to form
                    .add (qtyInput0, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 39, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add (22, 22, 22)
                    .add (findButton0)
                    .addContainerGap (org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            // set vertical group
            prodPanel0Layout.setVerticalGroup (
                    prodPanel0Layout.createParallelGroup (org.jdesktop.layout.GroupLayout.LEADING)
                    .add (prodPanel0Layout.createSequentialGroup ()
                    .addContainerGap ()
                    .add (prodPanel0Layout.createParallelGroup (org.jdesktop.layout.GroupLayout.BASELINE)
                    .add (prodIDLabel2)
                    // add prodIDInput0 JTextField to form
                    .add (prodIDInput0, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add (qtyLabel0)
                    // add qtyInput0 JTextField to form
                    .add (qtyInput0, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add (findButton0))
                    .addContainerGap (org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            // setup JPanel to contain finialise payment components
            transPanel0.setBorder (BorderFactory.createTitledBorder ("Finalise Transaction"));
            // setup button and display PAYMENT as the text
            paymentButton0.setFont (new java.awt.Font ("Tahoma", 0, 14));
            paymentButton0.setText ("PAYMENT");
            paymentButton0.setToolTipText ("Click to finalise transaction");
            // setup button and display CANCEL as the text
            cancelButton0.setFont (new java.awt.Font ("Tahoma", 0, 14));
            cancelButton0.setText ("CANCEL");
            cancelButton0.setToolTipText ("Cancel the current transaction");
            cancelButton0.addActionListener (this);
            // setup label to display Amount received:
            amtRcvdLabel0.setText ("Amount received:");
            // create new GroupLayout for TransPanel0
            org.jdesktop.layout.GroupLayout transPanel0Layout = new org.jdesktop.layout.GroupLayout (transPanel0);
            transPanel0.setLayout (transPanel0Layout);
            // set horizontal group
            transPanel0Layout.setHorizontalGroup (
                    transPanel0Layout.createParallelGroup (org.jdesktop.layout.GroupLayout.LEADING)
                    .add (org.jdesktop.layout.GroupLayout.TRAILING, transPanel0Layout.createSequentialGroup ()
                    .addContainerGap (org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add (amtRcvdLabel0)
                    .addPreferredGap (org.jdesktop.layout.LayoutStyle.RELATED)
                    // add amtRcvdInput0 JTextField to form
                    .add (amtRcvdInput0, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 58, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add (22, 22, 22)
                    .add (paymentButton0)
                    .addPreferredGap (org.jdesktop.layout.LayoutStyle.RELATED)
                    .add (cancelButton0)
                    .addContainerGap ())
            // set vertical group
            transPanel0Layout.setVerticalGroup (
                    transPanel0Layout.createParallelGroup (org.jdesktop.layout.GroupLayout.LEADING)
                    .add (transPanel0Layout.createSequentialGroup ()
                    .addContainerGap ()
                    .add (transPanel0Layout.createParallelGroup (org.jdesktop.layout.GroupLayout.BASELINE)
                    .add (cancelButton0)
                    .add (paymentButton0)
                    // add amtRcvdInput0 JTextField to form
                    .add (amtRcvdInput0, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add (amtRcvdLabel0))
                    .addContainerGap (org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            // setup JScrollPanel to display transaction items
            transList0.setFont (new java.awt.Font ("Tahoma", 0, 14));
            transList0.setListData (listData);
            transList0.setToolTipText ("Items entered in the current transaction");
            // specify scrollbars
            jScrollPane1.setViewportView (transList0);
            // setup the file menu
            fileMenu0.setText ("File");
            // add Export XML menu item to file menu
            exportXMLMenuItem = new JMenuItem ("Export to XML");
            exportXMLMenuItem.setToolTipText ("Export current product list to product.xml");
            fileMenu0.add (exportXMLMenuItem);
            // add menu seperator
            fileMenu0.addSeparator ();
            // add Exit menu item to file menu
            exitMenuItem = new JMenuItem ("Exit");
            exitMenuItem.setToolTipText ("Exit application");
            fileMenu0.add (exitMenuItem);
            // add the file menu to the menu bar
            menuBar0.add (fileMenu0);
            // set the menu bar to be menuBar0
            setJMenuBar (menuBar0);
            // layout remaining components onto JFrame
            org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout (getContentPane ());
            getContentPane ().setLayout (layout);
            // set horizontal group
            layout.setHorizontalGroup (
                    layout.createParallelGroup (org.jdesktop.layout.GroupLayout.LEADING)
                    .add (layout.createSequentialGroup ()
                    .addContainerGap ()
                    .add (layout.createParallelGroup (org.jdesktop.layout.GroupLayout.LEADING)
                    .add (layout.createSequentialGroup ()
                    .add (prodIDLabel0)
                    .addPreferredGap (org.jdesktop.layout.LayoutStyle.RELATED)
                    .add (prodIDLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 78, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap (org.jdesktop.layout.LayoutStyle.RELATED)
                    .add (prodNameLabel0)
                    .addPreferredGap (org.jdesktop.layout.LayoutStyle.RELATED)
                    .add (prodNameLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 164, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add (layout.createSequentialGroup ()
                    .add (prodDescLabel0)
                    .addPreferredGap (org.jdesktop.layout.LayoutStyle.RELATED)
                    .add (prodDescLabel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 725, Short.MAX_VALUE))
                    .add (layout.createSequentialGroup ()
                    .add (prodImagePanel0, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap (org.jdesktop.layout.LayoutStyle.RELATED)
                    .add (jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 499, Short.MAX_VALUE))
                    .add (layout.createSequentialGroup ()
                    .add (itemPrice0)
                    .addPreferredGap (org.jdesktop.layout.LayoutStyle.RELATED, 441, Short.MAX_VALUE)
                    .add (totalPrice0)
                    .addPreferredGap (org.jdesktop.layout.LayoutStyle.RELATED)
                    .add (totalPrice1))
                    .add (layout.createSequentialGroup ()
                    .add (prodPanel0, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addPreferredGap (org.jdesktop.layout.LayoutStyle.RELATED)
                    .add (transPanel0, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addContainerGap ())
            // set vertical group
            layout.setVerticalGroup (
                    layout.createParallelGroup (org.jdesktop.layout.GroupLayout.LEADING)
                    .add (layout.createSequentialGroup ()
                    .addContainerGap ()
                    .add (layout.createParallelGroup (org.jdesktop.layout.GroupLayout.BASELINE)
                    .add (prodIDLabel1)
                    .add (prodNameLabel1)
                    .add (prodNameLabel0)
                    .add (prodIDLabel0))
                    .addPreferredGap (org.jdesktop.layout.LayoutStyle.RELATED)
                    .add (layout.createParallelGroup (org.jdesktop.layout.GroupLayout.BASELINE)
                    .add (prodDescLabel0)
                    .add (prodDescLabel1))
                    .addPreferredGap (org.jdesktop.layout.LayoutStyle.RELATED)
                    .add (layout.createParallelGroup (org.jdesktop.layout.GroupLayout.LEADING)
                    .add (jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 259, Short.MAX_VALUE)
                    .add (prodImagePanel0, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addPreferredGap (org.jdesktop.layout.LayoutStyle.RELATED)
                    .add (layout.createParallelGroup (org.jdesktop.layout.GroupLayout.LEADING)
                    .add (itemPrice0)
                    .add (layout.createParallelGroup (org.jdesktop.layout.GroupLayout.BASELINE)
                    .add (totalPrice1)
                    .add (totalPrice0)))
                    .addPreferredGap (org.jdesktop.layout.LayoutStyle.RELATED)
                    .add (layout.createParallelGroup (org.jdesktop.layout.GroupLayout.LEADING)
                    .add (prodPanel0, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add (transPanel0, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap ())
            // resize the frame to the minimum size needed to satisfy the preferred size of each of the components in the layout
            pack ();
        /** actionPerformed()
         *  handles events from components.
        public void actionPerformed (ActionEvent e) {
            if ( e.getSource () == findButton0 )
                guiCtl0.findButtonAction (prodIDInput0.getText (), qtyInput0.getText ());
            if ( e.getSource () == cancelButton0 )
                guiCtl0.cancelButtonAction ();
        /** showWelcomeMsg()
         *  Shows a welcome dialogue message to the user.
        public void showWelcomeMsg (){
            // Create a new dialogue box
            JOptionPane welcomeMsg = new JOptionPane ();
            // Show welcome dialogue box
            welcomeMsg.showMessageDialog (null, "Welcome to the Supermarket Management System.  Click OK to begin.", "Welcome", welcomeMsg.INFORMATION_MESSAGE);
        /** showMsg()
         *  Shows a message to the user.
        public void showErrorMsg (String s){
            // Create a new dialogue box
            JOptionPane errorMsg = new JOptionPane ();
            // Show welcome dialogue box
            errorMsg.showMessageDialog (null, s, "Message", errorMsg.ERROR_MESSAGE);
        /** set prodIDInput0 text field */
        public void setProdIDInput0 (String s){
            prodIDInput0.setText (s);
        /** set qtyInput0 text field */
        public void setQtyInput0 (String s){
            qtyInput0.setText (s);
        /** set ProdDescLabel1 label */
        public void setProdDescLabel1 (String s) {
            prodDescLabel1.setText (s);
        /** set prodIDLabel1 label */
        public void setProdIDLabel1 (String s) {
            prodIDLabel1.setText (s);
        /** set prodNameLabel1 label */
        public void setProdNameLabel1 (String s) {
            prodNameLabel1.setText (s);
        /** set totalPrice1 label */
        public void setTotalPrice1 (String s) {
            totalPrice1.setText (s);
        /** populate transList0 with latest trans info */
        public void setTransList0 (Vector v){
            transList0.setListData (v);
        /** set itemPrice0 label */
        public void setItemPrice0 (String s) {
            itemPrice0.setText (s);
        /** draw prod images onto gui */
        public void paintImage (String imagePath) {
            // get Graphics
            Graphics g = prodImagePanel0.getGraphics ();
            // draw image into prodImagePanel0
            img = null;
            try {
                img = ImageIO.read (new File (imagePath));
            } catch (IOException e) {
                System.err.println ("Caught IOException: "
                        + e.getMessage ());
            // draw the image on screen
            g.drawImage (img, 2, 2, prodImagePanel0);
        /** Change image */
        public void updateImage (String imagePath){
            // draw image into prodImagePanel0
            img = null;
            try {
                img = ImageIO.read (new File (imagePath));
            } catch (IOException e) {
                System.err.println ("Caught IOException: "
                        + e.getMessage ());
    GUIControl
    import javax.swing.*;
    import java.text.*;
    * GUIControl.java
    * The GUIControl class is responsible to perform actions requested from the GUIView class.
    * It also liaises with the TransControl and ProdControl objects to generate output to the
    * gui and handle input from the gui.
    * @author Tim
    public class GUIControl {
        // Declare object variables
        private GUIView gui;
        private ProdControl prodCtl0;
        private TransControl transCtl0;
        /** Creates a new instance of GUIControl */
        public GUIControl (ProdControl prodCtl0, TransControl transCtl0) {
            // make reference to prodCtl0, transCtl0 and gui objects
            this.prodCtl0 = prodCtl0;
            this.transCtl0 = transCtl0;
        /** Set gui view object */
        public void setGui (GUIView gui) {
            this.gui = gui;
        /** show the welcome dialouge */
        public void showWelcome (){
            // Call the showWelcomeMsg() method from gui to dispay welcome dialogue.
            gui.showWelcomeMsg ();
        /** find product */
        public Product findProd (int prodId){
            Product foundProd = prodCtl0.getProdByID (prodId);
            return foundProd;
        /** add product to transaction */
        public String addProdToTrans (int prodId, double transQuantity){
            // declare method variables
            String status = "Product not added";
            Product curProd0;
            // find prodduct by ID
            curProd0 = prodCtl0.getProdByID (prodId);
            //  1. if product exists then add a new transaction item to the transaction list.
            if (curProd0 != null) {
                // 2. check quantity is a whole number for UPC Products
                if (curProd0 instanceof UPCProd) {
                    // check if the result is a whole number
                    boolean isWhole = (Math.rint (transQuantity) == transQuantity);
                    // 3. if isWhole is false change status message.
                    if (isWhole == false) {
                        // return status as Product cannot be found.
                        status = "You must enter the quantity as a whole number for UPC products.";
                        return status;
                    } else {
                        // 4. check there is enough stock in the store
                        if (transQuantity > curProd0.getQuantity ()) {
                            // return status as there is not enough stock.
                            status = "There is currently not enough stock to fulfill this transaction.  Please reduce the quantity." ;
                            return status;
                        } else {
                        }  // end if 4.
                    }  // end if 3.
                } else {
                }  // end if 2.
                // add curProd as new transItem
                transCtl0.addTransItem (curProd0, transQuantity);
                // return status as null to notify that the Product was added.
                status = null;
                return status;
            } else {
                // return status as Product cannot be found.
                status = "Product " + prodId + " cannot be found.";
                return status;
            }  // end if 1.
        }  // end addProdToTrans method
        /** action Find button */
        public void findButtonAction (String prodId0, String quantity0){
            // status msg
            String status;
            // check prodId0 is not null
            if (prodId0.equals ("")) {
                // set status message to error and display error msg
                status = "Please enter a valid Product ID.";
                gui.showErrorMsg (status);
                // check quantity0 is not null
            } else if (quantity0.equals ("")) {
                // set status message to error and display error msg
                status = "Please enter a valid quantity.";
                gui.showErrorMsg (status);
            } else {
                // parse String values into int and double
                int prodId1 = Integer.parseInt (prodId0);
                double quantity1 = Double.parseDouble (quantity0);
                // reset prodIDInput0 and qtyInput0 text fields in the gui
                gui.setProdIDInput0 ("");
                gui.setQtyInput0 ("");
                // add trans item and return result as a string
                status = addProdToTrans (prodId1, quantity1);
                if (status == null) {
                    updateProdTransView ();
                } else {
                    // display msg to the user
                    gui.showErrorMsg (status);
                } // end if
            } // end if
        } // end findButtonAction method
        /** update product and transaction view on gui */
        public void updateProdTransView (){
            // get the last trans item added
            TransItem lastTransItem0 = transCtl0.getLastTransItem ();
            // find the product
            Product p = findProd (lastTransItem0.getId ());
            // update product info displayed in the gui
            gui.setProdIDLabel1 (Integer.toString (p.getId ()));
            gui.setProdNameLabel1 (p.getName ());
            gui.setProdDescLabel1 (p.getDescription ());
            // paint prod image
            gui.paintImage (p.getImage ());
            // update transaction info displayed in the gui
            gui.setTransList0 (transCtl0.getTransItems ());
            gui.setItemPrice0 (transCtl0.transItemPriceInfo (lastTransItem0));
            // update total transaction cost displayed in the gui
            gui.setTotalPrice1 ("$" + transCtl0.transTotal ());
        } // end updateProdTransView method
        /** action Cancel button */
        public void cancelButtonAction (){
            // cleat transaction items from transaction array list
            transCtl0.clearTrans ();
            // reset gui components
            gui.setProdIDLabel1 ("");
            gui.setProdNameLabel1 ("");
            gui.setProdDescLabel1 ("");
            gui.setTransList0 (transCtl0.getTransItems ());
            gui.setItemPrice0 ("");
            gui.setTotalPrice1 ("$0.00");
            gui.paintImage ("images/transparent.gif");
    }

    happy to include more detail if required.You've included too much detail.
    If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    Don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the posted code retains its original formatting.
    And don't post code generated by NetBeans. It uses the GroupLayout which is not a standard layout manager until JDK6 and a lot of people don't use JDK6 yet so we won't be able to execute you code to see whats happening.

  • Why isn't my review appearing in the App Store?

    I've been trying to write (and re-submit, wondering if something went wrong in the process several times) a (scathing) review for Ulysses III for the past few weeks, and while I see new reviews appearing for the app and I'm able to submit (and edit) my reviews for other apps, it isn't working for this particular app. In fact, I was quite frustrated the first few times as I first ran into this problem while trying to edit a review that I wrote for it that I thought was properly posted only to be greeted with completely blank text boxes upon clicking "Write A Review." (Because of this, I've started the habit of copying/saving the reviews I write for apps. Very frustrating.)
    Why isn't this working? I spent $45 on this app that does not handle large documents well and would like others to know that very badly so they don't do the same if they plan on writing manuscripts—which is, as I learned tonight (and thus was reminded about this whole thing), what this particular app is being advertised for in the App Store.
    Please help.

    Suggest you link with iTunes store support and ask what has happened.
    Apple - Support - Topic Selection   >>> Other iTunes store topics seems best.

  • Why isn't my itunes on my ipod not working?

    Why isn't my itunes on my ipod working?
    Whenever i try to download a app onto my ipod, (4th generation) it says "cannot connect to itunes". 

    See:
    Can't connect to the iTunes Store

  • Why isn't Harry Potter and the Deathly Hallows Part 1 for sale, but Part 2 is?

    Why isn't Harry Potter and the Deathly Hallows Part 2 available for sale, but Part 1 is? This makes no sense.

    Jennie,
    Items often go on and off sale in the Store, especially items (like Harry Potter movies) whose distribution is being closely managed by the label, in this case Warner Brothers.
    It will probably come back on sale, but we don't know when.  If you don't want to wait, you can buy it on DVD.

Maybe you are looking for

  • SOAP Receiver/Sender in IDOC- XI- SOAP receivers?

    hi, i have idoc-> xi-> soap receiver. 1. How can i get a response back from soap receiver? 2. in the above scenario is SOAP the receiver or agian the sender? 3. not sure how i can get a response back from the soap receiver? any tips would be helpful.

  • Can't Sync Music or Podcasts to iPhone4s

    Since updating to iOS 7 I've had increasing problems with both Music and Podcasts. I have an iPhone 4s runing 7.0.3 and a Mac with an older OS Snow Leopard 10.6. I'm running the latest iTunes: 11.1.2 It started with Podcast where it would show up as

  • Instalation of Oracle Internet Directory

    I need help after installing oracle I have try to run OID but when I execute oidmon connect=cc start I get Error Connecting to Database:-1017 null

  • Function of non leading ledger

    Hi I am booking expenses in one company code and for management reporting distributing to another company code by cost centre distribution. During this process system is creating cross company code accounting document which we want to avoid. I heard

  • Error screen after sleep

    Hi, I am new to Macs, coming from windows. Love OS X..... but lately it seems as if Vista were a much more stable operating system! I seem to constantly have a greyed out screen after resuming from sleep mode, with a text in the middle stating an err