yuhoo! HELP ME PLEASE...IM DESPERATE

CALENDAR WITH GUI...

  • (2 Pages)
  • +
  • 1
  • 2

18 Replies - 1092 Views - Last Post: 02 February 2010 - 06:15 PM Rate Topic: -----

#1 gbsucker01  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 12
  • Joined: 01-February 10

yuhoo! HELP ME PLEASE...IM DESPERATE

Post icon  Posted 01 February 2010 - 06:22 PM

CAN U HELP ME CREATE A PROGRAM WITH A GUI... I HAVE MY CALENDAR PROGRAM BELOW..PLEASE SEND ME AN EDITED COPY WITH A GUI IN IT..PLEASE POST IT ASAP!!!!!!PLEASE YOU COULD REALLY HELP ME PLEASE...

--PROGRAM SHOULD ASK WHAT YEAR AND WHAT MONTH TO DISPLAY
--USE ARRAYS AND METHODS ONLY...
--SIMPLE JOPTIONPANE FUNCTIONS....
Is This A Good Question/Topic? 0
  • +

Replies To: yuhoo! HELP ME PLEASE...IM DESPERATE

#2 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10486
  • View blog
  • Posts: 38,857
  • Joined: 27-December 08

Re: yuhoo! HELP ME PLEASE...IM DESPERATE

Posted 01 February 2010 - 06:27 PM

Please do not TYPE IN ALL CAPS LIKE THIS as it comes across as SHOUTING AT MEMBERS. Also, we will not do your homework for you. Show some effort then we'll be willing to help you.

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
Was This Post Helpful? 0
  • +
  • -

#3 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2871
  • View blog
  • Posts: 11,026
  • Joined: 15-July 08

Re: yuhoo! HELP ME PLEASE...IM DESPERATE

Posted 01 February 2010 - 06:28 PM

You know, I would love to help you out. Really, I understand the stresses of being a student, as I am a student myself, but I am just flat not allowed to.

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.

Also, all caps on a forum generally means that you are yelling, please refrain from doing something. Also, if you want help, please give your post a meaningful title, and explain in the body what is wrong with the code that you need to give us. No work, no result. Sorry.

Remember,
:code:
Was This Post Helpful? 0
  • +
  • -

#4 gbsucker01  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 12
  • Joined: 01-February 10

Re: yuhoo! HELP ME PLEASE...IM DESPERATE

Post icon  Posted 01 February 2010 - 06:44 PM

help me please..this is very urgent...i have a calendar program in java...but i dont know how to put a gui in it...help me please....
these are the conditions:

--program should ask the user to enter the year and month...
--should only use arrays and methods..
--use simple joptionpane...

THIS IS MY CALENDAR PROGRAM: PLEASE HELP ME MAKE A GUI....USING SIMPLE JOPTIONPANE...PLEASE

public class Main {
public static void main(String[] args) {
String[] monthNames = new String[]{"January", "February", "March", "April", "May", "June", "July","August", "September", "October", "November", "December"};

int[] corDaysOfMonth = new int[]{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};

int firstDayOfMonth = 5;
for(int ctr=0; ctr<monthNames.length; ctr++){
firstDayOfMonth=printMonth(monthNames[ctr],firstDayOfMonth,corDaysOfMonth[ctr]);
}
}
public static int printMonth(String monthName, int firstDayOfMonth, int corDaysOfMonth){
System.out.println(monthName);

int curDayOfWeek = 0;
System.out.println("Sun Mon Tue Wed Thu Fri Sat");
while(curDayOfWeek<firstDayOfMonth){
System.out.print(" ");
curDayOfWeek++;
}

for(int day = 1; day<=corDaysOfMonth; day++){
if(day<10){
System.out.print(day+" ");
}else{
System.out.print(day+" ");
}
curDayOfWeek++;
if(curDayOfWeek==7){
curDayOfWeek = 0;
System.out.println();
}
}

System.out.println();
return curDayOfWeek;

}
}
Was This Post Helpful? 0
  • +
  • -

#5 erik.price  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 485
  • View blog
  • Posts: 2,690
  • Joined: 18-December 08

Re: yuhoo! HELP ME PLEASE...IM DESPERATE

Posted 01 February 2010 - 06:46 PM

You didn't need to create a separate topic just for the same question.

And as was explained to you about three times in your last post, please :code:
Was This Post Helpful? 0
  • +
  • -

#6 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10486
  • View blog
  • Posts: 38,857
  • Joined: 27-December 08

Re: yuhoo! HELP ME PLEASE...IM DESPERATE

Posted 01 February 2010 - 06:47 PM

Please, :code:
If you're looking to use JOptionPane's, check out the following link: http://java.sun.com/...OptionPane.html

And again, please stop SHOUTING AT US BY TYPING IN ALL CAPS. It is considered rude.
Was This Post Helpful? 0
  • +
  • -

#7 gbsucker01  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 12
  • Joined: 01-February 10

Re: yuhoo! HELP ME PLEASE...IM DESPERATE

Post icon  Posted 01 February 2010 - 06:52 PM

PLEASE HELP ME MAKE A GUI IN IT...THIS IS MY CALENDAR PROGRAM...HELP ME MAKE USE OF JOTIONPANE IN THIS PROGRAM...I REALLY DONT KNOW HOW TO USE IT..PLEASE...THIS IS ACTUALLY MY MIDTERM EXAM PROGRAM..PLEASE HELP ME FINISH IT....THESE ARE THE CONDITIONS:

---PROGRAM SHOULD ASK USER TO INPUT YEAR AND MONTH...RANGING FROM YEAR 2010 TO 2015....THANKS A LOT....ESPECIALLY THOSE WHO ARE HELPING IN THIS WEBSITE...IT REALLY HELPED ME A LOT....

THIS IS MY PROGRAM....PLEASE EDIT IT AND MAKE A SIMPLE GUI...THANKS THANKS THANKS...

public class Main {
public static void main(String[] args) {
String[] monthNames = new String[]{"January", "February", "March", "April", "May", "June", "July","August", "September", "October", "November", "December"};

int[] corDaysOfMonth = new int[]{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};

int firstDayOfMonth = 5;
for(int ctr=0; ctr<monthNames.length; ctr++){
firstDayOfMonth=printMonth(monthNames[ctr],firstDayOfMonth,corDaysOfMonth[ctr]);
}
}
public static int printMonth(String monthName, int firstDayOfMonth, int corDaysOfMonth){
System.out.println(monthName);

int curDayOfWeek = 0;
System.out.println("Sun Mon Tue Wed Thu Fri Sat");
while(curDayOfWeek<firstDayOfMonth){
System.out.print(" ");
curDayOfWeek++;
}

for(int day = 1; day<=corDaysOfMonth; day++){
if(day<10){
System.out.print(day+" ");
}else{
System.out.print(day+" ");
}
curDayOfWeek++;
if(curDayOfWeek==7){
curDayOfWeek = 0;
System.out.println();
}
}

System.out.println();
return curDayOfWeek;

}
}
Was This Post Helpful? 0
  • +
  • -

#8 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2871
  • View blog
  • Posts: 11,026
  • Joined: 15-July 08

Re: yuhoo! HELP ME PLEASE...IM DESPERATE

Posted 01 February 2010 - 06:52 PM

Here are two links to snippets that I wrote. The use JOptionPane. While the content of the program may be different, it may give you an idea of how to do that.

http://www.dreaminco...snippet4707.htm
http://www.dreaminco...snippet4706.htm
Was This Post Helpful? 0
  • +
  • -

#9 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2871
  • View blog
  • Posts: 11,026
  • Joined: 15-July 08

Re: yuhoo! HELP ME PLEASE...IM DESPERATE

Posted 01 February 2010 - 06:53 PM

Dude, you've got to stop. Look at your previous post(s).

edit: I regained my cool.

This post has been edited by Dogstopper: 01 February 2010 - 06:55 PM

Was This Post Helpful? 0
  • +
  • -

#10 gbsucker01  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 12
  • Joined: 01-February 10

Re: yuhoo! HELP ME PLEASE...IM DESPERATE

Posted 01 February 2010 - 07:00 PM

View PostDogstopper, on 1 Feb, 2010 - 05:53 PM, said:

Dude, you've got to stop. Look at your previous post(s).

edit: I regained my cool.



waaa!!! sorry..... how will do it right then??? i just post and post...sorry.... can you teach me????
Was This Post Helpful? 0
  • +
  • -

#11 gbsucker01  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 12
  • Joined: 01-February 10

Re: yuhoo! HELP ME PLEASE...IM DESPERATE

Posted 01 February 2010 - 07:03 PM

View Postcircuspeanuts, on 1 Feb, 2010 - 06:01 PM, said:

[rules]
[/rules]



i see....thanks for clearing that up...ok..ill post the ones that i made...
Was This Post Helpful? 0
  • +
  • -

#12 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2871
  • View blog
  • Posts: 11,026
  • Joined: 15-July 08

Re: yuhoo! HELP ME PLEASE...IM DESPERATE

Posted 01 February 2010 - 07:03 PM

I gave you 2 links here: http://www.dreaminco...h...=153377&hl=
Was This Post Helpful? 0
  • +
  • -

#13 erik.price  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 485
  • View blog
  • Posts: 2,690
  • Joined: 18-December 08

Re: yuhoo! HELP ME PLEASE...IM DESPERATE

Posted 01 February 2010 - 07:05 PM

NO! No more topics!

Post only ONE topic for your question. And please show some effort. We WILL NOT do this for you
Was This Post Helpful? 0
  • +
  • -

#14 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1639
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: yuhoo! HELP ME PLEASE...IM DESPERATE

Posted 01 February 2010 - 07:10 PM

Topics merged, do you think opening multiple topics is going to convince someone to do your homework for you? Dont open another topic regarding this

Sorry but we can not give you the entire code to solve your problem. We are here to assist in solving problems with code you have written, with any error messages you are getting or what isn't working the way that you expect it to, we would be more than happy to help you with those problems. If there is a topic that you don't understand we would be more than happy to help you with that as well. Make sure to post any code with in code tags like below.

:code:

Be sure to visit our tutorial and snippet areas or read the FAQS at the top of the forums. Also, take a moment to read the rules about posting topics.

Thank you for helping us to help you solve your problem.
Was This Post Helpful? 0
  • +
  • -

#15 gbsucker01  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 12
  • Joined: 01-February 10

Re: yuhoo! HELP ME PLEASE...IM DESPERATE

Posted 02 February 2010 - 05:56 PM

I MADE A SIMPLE JOPTION BUT I DONT KNOW HOW TO INTEGRATE IT MY CALENDAR...HELP ME PLEASE...

String name;

name=JOptionPane.showInputDialog.("Please enter name");
JOptionPane.showMessageDialog(null,"Welcome "+name+"!to java","Greetings",JOptionPane.INFORMATION_MESSAGE);

THANKS...URGENTLY NEEDED AND DESPERATELY NEEDED...
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2