• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

how to implement Jar file in GUI.

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Vincent Sum
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But I only learned Drag and Drop so far in my Java module.
I thought Drag and Drop is under GUI Swing?
 
reply
    Bookmark Topic Watch Topic
  • New Topic