I will need some hints for swing agenda .....
hello
good morning for those who has just started their day like me ...
I wonderif any one has ever made a swing agenda ...
my questions are
1: which layout would you use ?
2: how would you do to draw reserved time interval ?
3:how would you do to draw the time panel ?
4:how would you do to draw the week interval ?
than kyou in advance ...
> 1: which layout would you use ?
I would probably use BorderLayout, GridLayout, CardLayout and BoxLayout. I might use any of the other layout managers
> 2: how would you do to draw reserved time interval
> ?
I would probably override the paintComponent() method of a JPanel.
> 3:how would you do to draw the time panel ?
I would probably override the paintComponent() method of a JPanel.
> 4:how would you do to draw the week interval ?
I would probably override the paintComponent() method of a JPanel.
than k you
>
> > 2: how would you do to draw reserved time interval
> > ?
>
> I would probably override the paintComponent() method
> of a JPanel.
OK ,but whould u use ,g.draw....rect or what ever ,or maybe you would use a JtextF and then change its height and width ?
> OK ,but whould u use ,g.draw....rect or what ever ,or
> maybe you would use a JtextF and then change its
> height and width ?
You specification is so vague that I cannot (and I doubt if anyone can) be specific as to how I would do any of this. It looks to me like you need to spend a few days working with the Swing tutorial.
> You specification is so vague that I cannot (and I
> doubt if anyone can) be specific as to how I would do
> any of this. It looks to me like you need to spend a
> few days working with the Swing tutorial.
I have already done a swing agenda
see link http://www.yourfilehost.com/media.php?cat=image&file=agenda_test.jpg
it is just Im wondering if this is the best or easiest method to do ....
I can't 'see' the content of the link but, even if I could, how would this help?
OK - I found how to view the file but I still think your question is too vague. I don't know how you have structured the GUI so saying what layout to use is impossible. As to how you draw the shapes - well I don't know how you have done it.
Message was edited by:
sabre150
> OK - I found how to view the file but I still think
> your question is too vague. I don't know how you have
> structured the GUI so saying what layout to use is
> impossible. As to how you draw the shapes - well I
> don't know how you have done it.
I did not use any layout here ,I just draw shapes in a jpanel
each day is a jpanel
I calculate the height and wedth then make som divisions depending on the time interval .
I was just wondering if this is the only way to do it ?
or maybe there is more intelegent way to do it ?
tell me what info you need to better understand my pb ?
> tell me what info you need to better understand my pb
> ?
Sorry but since it will take more than a couple of minutes I don't have the inclination to do an analysis and a design for your application. I doubt if anyone here will have the inclination. You need to come up with a basic design based on an object model obtained from an analysis.
> > tell me what info you need to better understand my
> pb
> > ?
>
> Sorry but since it will take more than a couple of
> minutes I don't have the inclination to do an
> analysis and a design for your application. I doubt
> if anyone here will have the inclination. You
> need to come up with a basic design based on an
> object model obtained from an analysis.
well ,i think u did not really understood my question ,
I asked for hints and not analyse
thank you any way
bye