Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5979719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:41:56+00:00 2026-05-22T21:41:56+00:00

I am unable to execute java gui program in eclipse 3.6 under ubuntu 11.04.

  • 0

I am unable to execute java gui program in eclipse 3.6 under ubuntu 11.04. when i click on run as Java Application nothing happens. When i switched to console there just <terminated>

So what to do. I have installed jdk 1.6.0_25

Also there is an openjdk installed in my system. but i don’t know how to configure this with eclipse.

Here is the program:

public class AnimWallpaper {

    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        UserInterface mainWindow = new UserInterface();
    }
}



import java.awt.Color;
import java.awt.Container;
import java.awt.Frame;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class UserInterface extends Frame {

    /**
     * Serial version Id
     */
    private static final long serialVersionUID = 7925308422918335055L;
    public UserInterface(){
        setTitle("Animated Wallpaper");
        setSize(400, 300);

        Container con = new Container();

        con.setBackground(new Color(83, 68, 235));



        add(con);
        addWindowListener(new WindowAdapter() {
            public void closingEvent(WindowEvent e){
                System.exit(0);
            }
        });
    }
}

Both classes are in different file and in same package com.anim

Thanks In advance:)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:41:57+00:00Added an answer on May 22, 2026 at 9:41 pm

    You need to set your window visible in order for it to show.
    add the line setVisible(true);

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an web application running under JBoss 5 which periodically launches a 'java'
I have been unable to receive UDP multicast under VxWorks 5.5. I've joined the
I'm trying to run ActiveMQ on Mac OSX 10.5.7. I have Java version 1.5.0_19
For some months we've run Hudson on a Windows XP server under a user
Conversion to Dalvik format failed: Unable to execute dex: wrapper was not properly loaded
org.apache.wicket.protocol.http.WebApplicationFactoryCreationException: Unable to create application factory of class org.apache.wicket.spring.SpringWebApplicationFactory at org.apache.wicket.protocol.http.WicketFilter.getApplicationFactory(WicketFilter.java:228) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:271) at
I wrote a java program that should fill a sqlite database with some rows
I unable to delete the project from the workspace. Eclipse throws NPE and I
Unable to find a SQL diff tool that meets my needs, I am writing
I am unable to consume messages sent via ActiveMQ from my Flex client. Sending

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.