Re: Help w/ Crop Planning Software

2 views
Skip to first unread message

Clayton Carter

unread,
Mar 29, 2008, 2:11:18 PM3/29/08
to cropplann...@googlegroups.com, Luqman Ali
Hi Luqman et al,

For the about/credits dialog, I would suggest the following:

* the menubar code is located in the Swing-UI module; search around
for "JMenuBar"
* I'll leave it up to you as to whether the menu entry is under the
"File" menu or is just a menu item by itself
* the class "CPSDialog" provides a way for us to have semiconsistent
looking dialogs; checkout some of the other dialogs (in Netbeans, do
Command-O (perhaps Alt-O on Windows) and type in "*Dialog" for a list
of classes whose name ends in "Dialog"; these will generally be
subclasses of CPSDialog.
* eventually, I would like to display small images or icons in the
about window, but we can do just straight text for now
* in terms of abstraction/encapsulation, it might make sense to create
another class in the CPS-Spec module (CPSCredits?) that defines three
two-dimensional String arrays: Contributors, Supporters and Funders.
Each array would have three indices: 1) name, 2) email, 3)
title/contribution/description/etc. eg:

public class CPSCredits {

public static String[][] contributors = new String[][] { { "Clayton
Carter", "croppl...@gmail.com", "Lead Developer" }, ... };

* it would be more elegant to use Lists, but I'm unsure how initialize
Lists w/ data at declaration.
* if any of the strings in the arrays are null, they can be ignored, or course
* then you can use those arrays to dynamically build the list of
contributors, supporters and funders which are displayed in the about
dialog

Hope this is helpful; I just banged it out in a few minutes, so let me
know if anything doesn't make sense.

Clayton

lookie

unread,
Mar 29, 2008, 3:02:41 PM3/29/08
to CropPlanning Development


On Mar 30, 2:11 am, "Clayton Carter" <cropplann...@gmail.com> wrote:
> Hi Luqman et al,
>
> For the about/credits dialog, I would suggest the following:
>
> * the menubar code is located in the Swing-UI module; search around
> for "JMenuBar"
> * I'll leave it up to you as to whether the menu entry is under the
> "File" menu or is just a menu item by itself
> * the class "CPSDialog" provides a way for us to have semiconsistent
> looking dialogs; checkout some of the other dialogs (in Netbeans, do
> Command-O (perhaps Alt-O on Windows) and type in "*Dialog" for a list
> of classes whose name ends in "Dialog"; these will generally be
> subclasses of CPSDialog.
> * eventually, I would like to display small images or icons in the
> about window, but we can do just straight text for now
> * in terms of abstraction/encapsulation, it might make sense to create
> another class in the CPS-Spec module (CPSCredits?) that defines three
> two-dimensional String arrays: Contributors, Supporters and Funders.
> Each array would have three indices: 1) name, 2) email, 3)
> title/contribution/description/etc. eg:
>
> public class CPSCredits {
>
> public static String[][] contributors = new String[][] { { "Clayton
> Carter", "cropplann...@gmail.com", "Lead Developer" }, ... };
>
> * it would be more elegant to use Lists, but I'm unsure how initialize
> Lists w/ data at declaration.
> * if any of the strings in the arrays are null, they can be ignored, or course
> * then you can use those arrays to dynamically build the list of
> contributors, supporters and funders which are displayed in the about
> dialog
>
> Hope this is helpful; I just banged it out in a few minutes, so let me
> know if anything doesn't make sense.
>
> Clayton

Hey Clayton,

Thanks for the tips. I'm looking at it right now but I ran into some
problems when doing an initial compile of the code I downloaded from
SVN.

com.toedter.calendar.JDateChooser is somehow not recognised even
though I have in the Library, JCalendar. Am I missing something here?
I'm using Netbeans 6.0.1.

lookie

unread,
Mar 29, 2008, 3:42:46 PM3/29/08
to CropPlanning Development
On second hand, scratch that. I was building the files wrongly. Let me
play around with it and get the hang of things.
Reply all
Reply to author
Forward
0 new messages