File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes GUI calander Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "GUI calander" Watch "GUI calander" New topic

GUI calander

Habtamu Endalamaw

Joined: Apr 22, 2012
Posts: 3
hey guys i'm new to java and i need to make GUI calendar and i don't know how. so please help me and don't get confused with the variables cos they are Ethiopian words. here is the code

Darryl Burke

Joined: May 03, 2008
Posts: 5093

I don't see anything GUI related in the code you posted. Perhaps you mean that you aren't aware of how to create a GUI? If that's so, you need to go through the Swing tutorial systematically.

And welcome to the Ranch!

luck, db
There are no new questions, but there may be new answers.
Tobias Leon

Joined: Apr 17, 2012
Posts: 22

Hi there Habtamu:

If you only need a calendar, maybe this code can help you, but is Java SWT.

Check this snippet:

Regards !!!

Murphy's Law
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45346
I would suggest you need to go back to creating an EthiopianCalendar class and running it fom the command line before you try it in a GUI. It would appear from this that there is nothing available, but Googling for Java Ethiopian calendar, and this ad from Google might give you something to use instead.

I would suggest for your class, it looks confusing having that many fields. You should consider an enum for Ethiopian months instead of that switch block. You should avoid if (...) b = true; else b = false; It is bad style; see this link. It is also bad style and error prone to write == true or similar.
I agree. Here's the link:
subject: GUI calander
It's not a secret anymore!