My computer does not have the swing.properties. How to make a swing.properties file and with what software?

Member Avatar
Member Avatar
+0 forum 6

Hey guys, jackbauer24 here. I am about to finish Final Fantasy 10. I really liked the way we fight(commands), how we upgrade(sphere grid) and most importantly the storyline. I live in India. Could you recommend another Final Fantasy game? My requirements are:- 1.These are the minimum graphics ie- I don't want graphics lower than this. The graphics weren't too bad in the game.(Guess then only the next versions will do like ff11 and so on.) 2.The method of fighting should be same ie-I don't want Prince of Persia style fighting. 3.(Optional, good if it is there)-An upgrade system. 4.A good …

Member Avatar
Member Avatar
+0 forum 4

I am learning jQuery from Head First jQuery. But first they have asked me to install Apache, PHP and MySQL(in that order). Apache is successful. Up and running. Version 2.2.22 of Apache for Windows XP. I downloaded php-5.2.17-Win32-VC6-x86.msi(file name) and installed. Successful. So just to make sure php was working, I typed this code and saved it as info.php in my htdocs folder(C:\Program Files\Apache Software Foundation\Apache2.2\htdocs):- <?php phpinfo(); ?> When I type `localhost/info.php` in the url bar, it simply shows the text <?php phpinfo(); ?>. What is wrong?

Member Avatar
Member Avatar
+0 forum 10

HTML:- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd" > <html lang="en"> <head> <title>hey</title> <link rel="stylesheet" type="text/css" href="style.css"/> <script src="functions.js"></script> </head> <body> <img src="website_main-logo(main).png" class="mainLogo" height = "120" width="336"/> <img src="authoropedia_logo.png" class="authorLogo" height="112" width="249"/> <hr class="hrStyle"/> <ul class="navigBarLinks"> <li> <a class="navigLinkDecorForHome" id="youarehereForHome" href="#"></a></li> <li> <a class="navigLinkDecorForAuthors" href="#"></a></li> </ul> </body> </html> CSS:- a.navigLinkDecorForHome { margin:0px; padding:0px; height:64px; width:85px; display:block; background:transparent url('homeNav.png'); } a.navigLinkDecorForHome:hover { background-image: url('homeNavHover.png'); } #youarehereForHome { background-image: url('homeNavActive.png'); } a.navigLinkDecorForAuthors { margin:0px; padding:0px; height:48px; width:170px; display: block; background:transparent url('authorNav.png'); } a.navigLinkDecorForAuthors:hover { background-image: url('authorNavHover.png'); } #youarehereForAuthors{ background-image: url('authorNavActive.png'); } .navigBarLinks { list-style-type: none; position: absolute; top: 202px; } .mainLogo …

Member Avatar
Member Avatar
+0 forum 19

I am learning jQuery from thenewboston. I have learnt about ID selectors (#) and element selectors (<html element>). They have also used the colon selector (:). What is the colon selector for? Can somebody please explain in an easy way?

Member Avatar
Member Avatar
+0 forum 1

HTML <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd" > <html lang="en"> <head> <title>hey</title> <link rel="stylesheet" type="text/css" href="style.css"/> <script src="functions.js"></script> </head> <body> <img src="website_main-logo(main).png" class="mainLogo" height = "120" width="336"/> <img src="authoropedia_logo.png" class="authorLogo" height="112" width="249"/> </p> <hr/> <div class="linksPositionDiv"> <a class="homeLink" href="authoropedia.html"></a> <a class="aboutAlert" href="javascript:about();"></a> </div> </body> </html> CSS:- .mainLogo { position: absolute; top:5px; left:5px; } .authorLogo { position: absolute; top: 100px; left: 500px; } body { background-image: url('back.jpg'); } .homeLink { text-decoration: none; display: block; background-image: url('home.jpg'); height: 69px; width:205px; } .aboutAlert { text-decoration: none; display: block; background-image: url('about.jpg'); height: 69px; width:205px; } .linksPositionDiv { position: absolute; top: 300px; left: 40px; …

Member Avatar
Member Avatar
+0 forum 10

Hey guys, thepythonguy here. Here is my problem:- My son has made a CSS webpage. It is in the rar file I gave you. It contains a few images on the left(Home, Home, Home, Home). They lead to non-existent files(just for learning purpoe). He has repeated the images there because they are just for learning purpose (again!). On the left side, you will see that below every instance of <<Home>> is a tiny gap. How to remove that gap?

Member Avatar
Member Avatar
+0 forum 25

So my son has learnt Java and has come to a decision point. First, the flashback,:- May, 2011--Back when he was 10 years old and didn't know Java, he gave C++ a try. He understood loops and variables. But when he reached the page teaching functions, he didn't understand a thing. January to March 2012--Learnt Java from a book. <flashback ends here> Back to the present. Today he revisits the C++ page. Slowly functions start coming into his head. Now for the question- I have seen that C++ and Java are similar as well as different. C++ includes some code …

Member Avatar
Member Avatar
+0 forum 20

My son found [this](http://www.sourceforge.net) website and wants to make his own project. This is what he has learnt:- * Inheritance * Serialization * GUI * KeyAdapter * Everything basic He also wants it to be iterative (version 0.1, only bones, ver 0.2 some updating etc). Could you suggest any programs to build? Also, try to post as many projects as you can. That way if my son can't do a project, he will do the next one and so on.

Member Avatar
Member Avatar
+0 forum 1

So now my son is into PHP and so I bought a book for him, Head First PHP and MySQL and my son took the code and tried it. The main page is report.html. report.html:- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Aliens Abducted Me - Report an Abduction</title> </head> <body> <h2>Aliens Abducted Me - Report an Abduction</h2> <p>Share your story of alien abduction:</p> <form method="post" action="report.php"> <label for="firstname">First name:</label> <input type="text" id="firstname" name="firstname" /><br /> <label for="lastname">Last name:</label> <input type="text" id="lastname" name="lastname" /><br /> <label for="email">What is your …

Member Avatar
Member Avatar
+0 forum 11

When I run my bucky.java, the background color is black and not pink. Why? Here is my bucky.java:- import javax.swing.*; import java.awt.*; /** * Created by IntelliJ IDEA. * User: Administrator * Date: 3/30/12 * Time: 3:59 PM * To change this template use File | Settings | File Templates. */ public class bucky extends JFrame { public static void main(String[] args){ DisplayMode dm = new DisplayMode(800, 600, 16, DisplayMode.REFRESH_RATE_UNKNOWN); bucky b = new bucky(); b.run(dm); } public void run(DisplayMode dm) { setBackground(new Color(234, 123, 66)); setForeground(Color.WHITE); setFont(new Font("Arial", Font.PLAIN, 24)); Screen s = new Screen(); try { s.setFullscreen(dm, this); …

Member Avatar
Member Avatar
+0 forum 7

Hey guys, sorry I didn't post for long. Now here I am, with a new issue. Here is my code:- import java.applet.*; import java.awt.*; import javax.swing.JFrame; public class HelloWorld extends JFrame { public HelloWorld() { setVisible(true); setResizable(false); setSize(300, 300); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } public void paint (Graphics g) { g.drawString("Hello World!", 50, 25); } public static void main(String[] args) { new HelloWorld(); } } The string displays, but the window is transparent. Why and how to solve it?

Member Avatar
Member Avatar
+0 forum 1

Here is my code:- [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author Administrator */ import javax.swing.*; import java.awt.event.*; import java.awt.event.*; import java.awt.*; public class MyQuiz { int score; JFrame frame; String[] questions = {"Who invented the internet?", "Who invented the first space rocket?", "What is the currency of Sweden?", "Which country has the largest telescope?", "Entomology is the study of: ", "Who is the current president of South Africa?", "Who discovered oxygen?", "Which is the largest temple and where is it?", "Where is the tomb …

Member Avatar
Member Avatar
+0 forum 15

Here is my problem:- On my desktop, there is a folder called "Test." In Test, there is a folder called "toUse." In "toUse," there is a java source file called "Test" and three folders, namely "Print," "SwingFrame" and "TextFileWriter." The source file for "Test.":- [CODE]package Test.toUse; import Test.toUse.Print.Printer; public class Test { public static void main(String[] args) { Printer p = new Printer(); p.printMe("It worked!"); } }[/CODE] In the folder "Print", there is a source file called "Printer" and it's class file:- [CODE]package everydayUse.Print; public class Printer { public void printMe(String toSay) { System.out.println(toSay); } }[/CODE] In the folder "SwingFrame", …

Member Avatar
Member Avatar
+0 forum 8

What are the programming languages which you know? Even web devt languages are accepted in this thread.

Member Avatar
Member Avatar
+0 forum 19

My ten year old has learnt quite a lot of java and wants a few BEGINNER projects. Any ideas?

Member Avatar
Member Avatar
+0 forum 30

Here is my code:- [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package wrie.and.read; /** * * @author Administrator */ import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.*; import javax.swing.*; public class WrieAndRead { JFrame frame; JTextField field; /** * @param args the command line arguments */ public static void main(String[] args) { new WrieAndRead().go(); } public void go() { frame = new JFrame("Let's write AND read!"); JPanel panel = new JPanel(); frame.setContentPane(panel); panel.setBackground(new Color(234, 190, 78)); field = new JTextField(20); JButton button = new JButton("Click me to write …

Member Avatar
Member Avatar
+0 forum 13

Hello and again this doubt has to be explained to my ten year old. It's about JWS (Java Web Start). Could you please explain the red-circled stuff in an easy way ( for my ten year old )? He has no ( no! (or) zero (or) 0 ) knowledge about XML and blah blah blah. He also does not ( nor do i ) know mime types but he know HTML.

Member Avatar
Member Avatar
+0 forum 3

I know this is a pretty silly question, but what is exactly an object instance variable? To explain what I mean, take two classes:- [CODE=Java]public class Duck { boolean hasAtail; double height; public void go() { System.out.println(hasAtail + " " + height); } } public class DuckTestDrive { public static void main(String[] args { Duck d = new Duck(); d.hasAtail = false; d.height = 23.0; d.go(); } } [/CODE] That will perfectly compile, but how do I make the main method for this? [CODE=Java]public class WhatEver { Duck m; public void GO() { m.go(); } }[/CODE]

Member Avatar
Member Avatar
+0 forum 16

As the title says, Python or Ruby?

Member Avatar
Member Avatar
+0 forum 9

Except for GUIs, could anyone give me an example of why we need inner classes?

Member Avatar
Member Avatar
+0 forum 7

[CODE=java]import javax.sound.midi.*; import javax.swing.*; import java.awt.event.*; public class BPlay implements ActionListener { public static void main(String[] args) { BPlay stereo = new BPlay(); stereo.play(); } public void play() { JFrame myfirstFrame = new JFrame(); JButton pl = new JButton("Click me to listen to something"); myfirstFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); pl.addActionListener(this); myfirstFrame.getContentPane().add(pl); myfirstFrame.setSize(300, 300); myfirstFrame.setVisible(true); } public void actionPerformed(ActionEvent event) { try { Sequencer mfpl = MidiSystem.getSequencer(); mfpl.open(); Sequence mfs = new Sequence(Sequence.PPQ, 4); Track mft = mfs.createTrack(); ShortMessage a = new ShortMessage(); a.setMessage(144, 1, 72, 100); MidiEvent non = new MidiEvent(a, 1); mft.add(non); ShortMessage b = new ShortMessage(); b.setMessage(128, 1, 72, 100); MidiEvent noff …

Member Avatar
Member Avatar
+0 forum 4

What is the difference between "[CODE]return[/CODE]" and "[CODE]messageBox.Show("whatever")[/CODE]"? Also explain(efforts will be appreciated): What does [CODE]retern[/CODE] do?

Member Avatar
Member Avatar
+0 forum 17

I've got to explain this to my ten year old son, so please explain this in an easy way. (If you can, each and every thing about [ICODE]this()[/ICODE].) Thanks in advance.

Member Avatar
Member Avatar
+0 forum 7

Please explain all these four pages- Open the images in paint. Only then will you be able to view it. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 13

My son, a ten year old is so like "[B]I WANT TO MAKE SOFTWARE!!!!!I WANT TO PROGRAM!!!!!!!!!I DON'T WANT TO STEP INTO LANGUAGES LIKE [URL="http://www.simplecodeworks.com/website.html"]http://www.simplecodeworks.com/website.html[/URL] OR [URL="http://scratch.mit.edu/"]http://scratch.mit.edu/[/URL] OR [url]http://www.alice.org/[/url] !!!!![/B]"He knows--- [LIST=1] [*]Basic Python(for, while, variables, raw_input, readline) [*]Extremely little about C++ [*]Quite a lot of Javascript(alert, prompt, *a little about arrays*, bgColor etc) [*]Quite a lot of HTML(links, forms, buttons, headings, *embedding Javascript*, graphics) [/LIST] What next? Please or he'll literally EAT ME UP!!!!:@:@

Member Avatar
Member Avatar
+0 forum 28

What is the difference between [ICODE]inheritance[/ICODE] and [ICODE]object orientation[/ICODE] ?

Member Avatar
Member Avatar
+0 forum 3

Here is my code: [CODE]class Catandmouse { public void CatAndMouse() { Animal cat = new Animal(); Animal mouse = new Animal(); int mouseCaught = (int) (Math.random() * 10); cat.CatchMouse(); int catgetsit = 0; if ( mouseCaught == cat.number ) { System.out.println("The cat caught the mouse!"); } else { System.out.println("The mouse got away!"); } } } [/CODE] Here is my Animal class: [CODE]class Animal { public void CatchMouse() { int number = (int) (Math.random() * 10); } }[/CODE] And this is the error: CatAndMouse.java:8: cannot find symbol symbol : variable number location: class Animal if ( mouseCaught == cat.number ) { …

Member Avatar
Member Avatar
+0 forum 7

Can two classes exist in a single .java file? Reply quick, please.

Member Avatar
Member Avatar
+0 forum 8

What is wrong with this code? [CODE]import time import sys print """Welcome to the age finder. This program takes some input (they will be the years) and then adds it to 4 ages. For example, if you give the ages 10, 11, 12 and 13 it will return the age added to your first input. """ # These are the years to add. print "Enter the number of years to be added:" yearstoadd = int(sys.stdin.readline()) # These are the ages to add. print "Enter the first age:" num1 = int(sys.stdin.readline()) if num1 > 100: print "Sorry, this is a very …

Member Avatar
Member Avatar
+0 forum 9

The End.