Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

Good feedback by user27517. I want to add one thing, which is to use SwingUtilities.invokeLater() in the main method:

public static void main(String[] args) 
{
    SwingUtilities.invokeLater(new Runnable() 
    {
        public void run() 
        {
            new Calculator();
        }
    });
}

Why it's neededWhy it's needed

Good feedback by user27517. I want to add one thing, which is to use SwingUtilities.invokeLater() in the main method:

public static void main(String[] args) 
{
    SwingUtilities.invokeLater(new Runnable() 
    {
        public void run() 
        {
            new Calculator();
        }
    });
}

Why it's needed

Good feedback by user27517. I want to add one thing, which is to use SwingUtilities.invokeLater() in the main method:

public static void main(String[] args) 
{
    SwingUtilities.invokeLater(new Runnable() 
    {
        public void run() 
        {
            new Calculator();
        }
    });
}

Why it's needed

added 19 characters in body
Source Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237

A goodGood feedback by user27517. I want to add one thing that is, which is to use SwingUtilities.invokeLater()SwingUtilities.invokeLater() in the main method.:

public static void main(String[] args) 
{
    SwingUtilities.invokeLater(new Runnable() 
    {
        public void run() 
        {
            new Calculator();
        }
    });
}

WHY?Why it's needed

A good feedback by user27517. I want to add one thing that is, use SwingUtilities.invokeLater() in main method.

public static void main(String[] args) 
{
    SwingUtilities.invokeLater(new Runnable() 
    {
        public void run() 
        {
            new Calculator();
        }
    });
}

WHY?

Good feedback by user27517. I want to add one thing, which is to use SwingUtilities.invokeLater() in the main method:

public static void main(String[] args) 
{
    SwingUtilities.invokeLater(new Runnable() 
    {
        public void run() 
        {
            new Calculator();
        }
    });
}

Why it's needed

Source Link

A good feedback by user27517. I want to add one thing that is, use SwingUtilities.invokeLater() in main method.

public static void main(String[] args) 
{
    SwingUtilities.invokeLater(new Runnable() 
    {
        public void run() 
        {
            new Calculator();
        }
    });
}

WHY?