aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes how to implement Jar file in GUI. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to implement Jar file in GUI." Watch "how to implement Jar file in GUI." New topic
Author

how to implement Jar file in GUI.

Vincent Sum
Greenhorn

Joined: Feb 06, 2012
Posts: 3
Hi to everyone, I'm a IT student which currently study Java module in this semester.
I'm facing some problems in my Java assignment, and I hope anyone of you can help me.

In my Java module, I'm learning GUI and using Drag and Drop components.
The problem is, I have a jar file called JCalendar which I downloaded from a website.
I want to implement the jar files in my interface, how should i do that?


Many thanks.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4642
    
    5

Hello Vincent, and welcome to the Ranch!

Vincent Sum wrote:I'm learning GUI and using Drag and Drop components.

It's one or the other. It can't be both.

You don't learn GUI programming by using a visual designer. I would advise you to learn Swing coding and drop the designer -- they're not begnniers' tools.
http://docs.oracle.com/javase/tutorial/uiswing/index.html


luck, db
There are no new questions, but there may be new answers.
Vincent Sum
Greenhorn

Joined: Feb 06, 2012
Posts: 3
Thanks for the advises.
But I havent reach that level of learning Swing coding.
Currently I just learned how to use Drag and Drop in Java.

In my assignment, I want to create a Calendar in the interface which allow user to select Day, Month and Year.
I got the source of the Calendar from this website: http://www.toedter.com/en/jcalendar/ and I downloaded it.
Is it possible for me to use the JCalendar component that provided in that website?
Thanks.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4642
    
    5

Vincent Sum wrote:Thanks for the advises.
But I havent reach that level of learning Swing coding.
Currently I just learned how to use Drag and Drop in Java.

You're missing the point. It's easier to learn how to code a Swing GUI than it is to learn to use all the features of a visual designer.

Vincent Sum wrote:In my assignment, I want to create a Calendar in the interface which allow user to select Day, Month and Year.
I got the source of the Calendar from this website: http://www.toedter.com/en/jcalendar/ and I downloaded it.
Is it possible for me to use the JCalendar component that provided in that website?
Thanks.

It's trivial to use a jar'ed resource in a hand coded GUI. You ensure that the jar is on the compile time and runtime classpath, and use it the same way you would use any class from the standard JDK.

How to use it in a visual development environment via drag-n-drop, if even possible, would be a topic for a forum dedicated to that tool, and not a Swing forum.
Vincent Sum
Greenhorn

Joined: Feb 06, 2012
Posts: 3
But I only learned Drag and Drop so far in my Java module.
I thought Drag and Drop is under GUI Swing?
 
 
subject: how to implement Jar file in GUI.