Help me test my program?

Fully finished program

  • (2 Pages)
  • +
  • 1
  • 2

15 Replies - 991 Views - Last Post: 07 February 2010 - 11:57 PM Rate Topic: -----

#1 xor-logic  Icon User is offline

  • HAL9000 was an Apple product
  • member icon

Reputation: 128
  • View blog
  • Posts: 764
  • Joined: 04-February 10

Help me test my program?

Posted 07 February 2010 - 10:05 PM

My buddy and I both need study aids for us to study foreign languages (different languages, so we can't really help each other). So, I made a program to help. The program is designed to help the user study using a question and answer form. I would appreciate some feedback on the program. It's a jar file, and I've zipped it and attached it to this post. I've also included a brief sample quiz, although I encourage you to try out the quiz creator that is part of the program.

Any takers? Just let me know if there are any errors, or if you have some tips on improving the design or functionality.


EDIT: Don't be too harsh. This is after all my first graphic-interface program.

Attached File(s)


This post has been edited by xor-logic: 07 February 2010 - 10:06 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Help me test my program?

#2 macosxnerd101  Icon User is offline

  • Self-Trained Economist
  • member icon




Reputation: 9162
  • View blog
  • Posts: 33,981
  • Joined: 27-December 08

Re: Help me test my program?

Posted 07 February 2010 - 10:36 PM

Very impressive! Good job.
Was This Post Helpful? 0
  • +
  • -

#3 xor-logic  Icon User is offline

  • HAL9000 was an Apple product
  • member icon

Reputation: 128
  • View blog
  • Posts: 764
  • Joined: 04-February 10

Re: Help me test my program?

Posted 07 February 2010 - 11:03 PM

View Postmacosxnerd101, on 07 February 2010 - 09:36 PM, said:

Very impressive! Good job.

Did it come up in Nimbus or Metal for you? It's supposed to use the Nimbus LAF if available, otherwise default to Metal.
Was This Post Helpful? 0
  • +
  • -

#4 vyom.dev  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 74
  • Joined: 13-January 10

Re: Help me test my program?

Posted 07 February 2010 - 11:04 PM

View Postmacosxnerd101, on 07 February 2010 - 09:36 PM, said:

Very impressive! Good job.



I ried opening the project in eclipse and i am getting 3 errors and 44 warnings..don't know y????

Ps:iam a noob just out of curiosity wanted to see this project.
thanx
Was This Post Helpful? 0
  • +
  • -

#5 xor-logic  Icon User is offline

  • HAL9000 was an Apple product
  • member icon

Reputation: 128
  • View blog
  • Posts: 764
  • Joined: 04-February 10

Re: Help me test my program?

Posted 07 February 2010 - 11:06 PM

View Postvyom.dev, on 07 February 2010 - 10:04 PM, said:

View Postmacosxnerd101, on 07 February 2010 - 09:36 PM, said:

Very impressive! Good job.



I ried opening the project in eclipse and i am getting 3 errors and 44 warnings..don't know y????

Ps:iam a noob just out of curiosity wanted to see this project.
thanx

vyom, it's a runnable jar file, so all you have to do after downloading it is unzip the file and double-click on the StudyBuddy1.2.jar file.

EDIT: I just tried opening it in my copy of Eclipse, and it ran just fine. Don't know why you're getting errors.

This post has been edited by xor-logic: 07 February 2010 - 11:07 PM

Was This Post Helpful? 0
  • +
  • -

#6 macosxnerd101  Icon User is offline

  • Self-Trained Economist
  • member icon




Reputation: 9162
  • View blog
  • Posts: 33,981
  • Joined: 27-December 08

Re: Help me test my program?

Posted 07 February 2010 - 11:08 PM

It came up in Nimbus. It's guaranteed available on my computer as I have the JDK on it.

@Vyom_dev: Did you try just running the jar file? It should run as a standalone.
Was This Post Helpful? 0
  • +
  • -

#7 vyom.dev  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 74
  • Joined: 13-January 10

Re: Help me test my program?

Posted 07 February 2010 - 11:12 PM

okie got that....actually i was trying to run from eclipse...dint knew about this thing..and now after i load the quiz and start the quiz it gives the code in the question part.....btw GUI is very gud i can only think about this buddy.....its very difficult to make this thing......hats off to you...cheers
Was This Post Helpful? 0
  • +
  • -

#8 xor-logic  Icon User is offline

  • HAL9000 was an Apple product
  • member icon

Reputation: 128
  • View blog
  • Posts: 764
  • Joined: 04-February 10

Re: Help me test my program?

Posted 07 February 2010 - 11:15 PM

View Postvyom.dev, on 07 February 2010 - 10:12 PM, said:

okie got that....actually i was trying to run from eclipse...dint knew about this thing..and now after i load the quiz and start the quiz it gives the code in the question part.....btw GUI is very gud i can only think about this buddy.....its very difficult to make this thing......hats off to you...cheers

It gives the code in the question field? Which file are you loading when you load a quiz "Sample.txt" or "StudyBuddy1.2.jar"? The first is a quiz file, the second is the actual program. Can you take a screenshot?

(This is exactly the kind of error I wanted to catch by having people test it.)
Was This Post Helpful? 0
  • +
  • -

#9 vyom.dev  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 74
  • Joined: 13-January 10

Re: Help me test my program?

Posted 07 February 2010 - 11:22 PM

It's working fine now actually i was loading the program file(stupid me)......but how did you create it in swing.....actually iam flabbergasted after seeing this and now iam keen on learning swing....once i get over multithreading topic....
Was This Post Helpful? 0
  • +
  • -

#10 xor-logic  Icon User is offline

  • HAL9000 was an Apple product
  • member icon

Reputation: 128
  • View blog
  • Posts: 764
  • Joined: 04-February 10

Re: Help me test my program?

Posted 07 February 2010 - 11:25 PM

View Postvyom.dev, on 07 February 2010 - 10:22 PM, said:

It's working fine now actually i was loading the program file(stupid me)......but how did you create it in swing.....actually iam flabbergasted after seeing this and now iam keen on learning swing....once i get over multithreading topic....

Actually, the graphic part was very easy to create in swing, once you have a good handle on the basics. It was all created with very basic swing components. A good part of the "awesomeness" comes from the fact that it is designed to use the Nimbus Look-And-Feel if available. If you saw it in Metal, it would be hideous, but that's because the Metal LAF is ugly as sin.

So it's working for you now that you're loading the quiz file?
Was This Post Helpful? 0
  • +
  • -

#11 vyom.dev  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 74
  • Joined: 13-January 10

Re: Help me test my program?

Posted 07 February 2010 - 11:30 PM

yeah its working fine now.....but wats this nimbus and metal thing are you tooking about the background colour and all??

and how did you connect it to the text file for loading the quiz???


Edit:Do you have any googd e-book for swing??

This post has been edited by vyom.dev: 07 February 2010 - 11:34 PM

Was This Post Helpful? 0
  • +
  • -

#12 xor-logic  Icon User is offline

  • HAL9000 was an Apple product
  • member icon

Reputation: 128
  • View blog
  • Posts: 764
  • Joined: 04-February 10

Re: Help me test my program?

Posted 07 February 2010 - 11:37 PM

View Postvyom.dev, on 07 February 2010 - 10:30 PM, said:

yeah its working fine now.....but wats this nimbus and metal thing are you tooking about the background colour and all??

Sorry, a Look-And-Feel is the way swing components look. For a while, there were generally four:
Windows LAF (only on Windows Systems)
MOTIF LAF (only on Linux Systems)
AQUA LAF (only on Mac Systems)
METAL LAF (Java's cross-platform LAF)

Cross-platform means that it is designed to run in any operating system. So if you wanted your users to see the same thing no matter which system they were using, you used Metal, which hasn't changed much since the mid-90's I think, which results in it being hideous nowadays (squared off buttons, sharp edges, not a curve in the whole damned thing).

But somewhat recently, Java created a new cross-platform LAF called Nimbus. Nimbus is super sexy, with rounded buttons, crescents, etc... It's just plain pretty, and it's probably what you're seeing when you run it. Take a look at the buttons. If they're HARSH and PERFECT rectangles, you're seeing Metal. If they're rounded and soft, you're seeing Nimbus.
Was This Post Helpful? 0
  • +
  • -

#13 vyom.dev  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 74
  • Joined: 13-January 10

Re: Help me test my program?

Posted 07 February 2010 - 11:42 PM

yeah its nimbus....do you have any good e-book for swing beginners??
Was This Post Helpful? 0
  • +
  • -

#14 xor-logic  Icon User is offline

  • HAL9000 was an Apple product
  • member icon

Reputation: 128
  • View blog
  • Posts: 764
  • Joined: 04-February 10

Re: Help me test my program?

Posted 07 February 2010 - 11:45 PM

View Postvyom.dev, on 07 February 2010 - 10:42 PM, said:

yeah its nimbus....do you have any good e-book for swing beginners??

Do not I'm afraid. I learned out of a book.
Was This Post Helpful? 0
  • +
  • -

#15 vyom.dev  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 74
  • Joined: 13-January 10

Re: Help me test my program?

Posted 07 February 2010 - 11:56 PM

View Postxor-logic, on 07 February 2010 - 10:45 PM, said:

View Postvyom.dev, on 07 February 2010 - 10:42 PM, said:

yeah its nimbus....do you have any good e-book for swing beginners??

Do not I'm afraid. I learned out of a book.

I didn't understand what you are saying
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2