this is my first program that I'm trying to build... and I'm having trouble with where to begin...
Does this sound like the best way to go....?
Sticky class to create the sticky, with title and info.
Then a ready class with array to hold ready stickies, a doing class with array to hold doing stickies and a done class with array to hold done stickies.
Then a board class to create a board to hold the 3 arrays.
Looking closer, it seems the statuses are more closely associated with a column on the board than with individual sticky notes. I would make the board have a Map<Status, Collection<Story>>, or if stories have a unique ID: Map<Status, Map<Integer, Story>>
Stephan van Hulst wrote:StickyNotes can be immutable.
Hmm, Maybe no since I see a transition of a note from Doing > Done > Ready. Unless I have misunderstood the kanban board meaning ?
Well, if we're going this way (see my post above), then stickies can be immutable and simply return a new sticky with a different type using a method like withType(StickyNoteType type)
Kanban does not necessarily have 3 states for a card.
I've seen boards with a dozen columns.
So, let's take a simple setup with Analysis, Dev, Test, Deploy.
Each of these will have a "doing" (I prefer "in progress") and a "done".
The "done" of one is the "ready" of the following column (so "dev done" is the "ready" for "doing test").
This means that there needs to an "analysis ready", but that won't have a WIP.
Since the number of columns varies, I would not use an enum to represent them.
Hi guys, thanks for all your responses, I'm still working on this... As I'm new to java and still learning, I've not dealt with maps before. So I'd gone with an if loop that determines the category and then places it in the array list of that category.
But I'll look at maps, as that might be easier?
Especially as I'd like to build a GUI for this, and have the categories as physical columns, and the objects/stickies as coloured squares that can be moved across the columns as the category changes
Ian Tail wrote:
Especially as I'd like to build a GUI for this, and have the categories as physical columns, and the objects/stickies as coloured squares that can be moved across the columns as the category changes
Good luck, let us know if you are stuck anywhere. There are forums such as Swing AWT SWT where you can ask for help if you are making this in swing.
Ian Tail wrote:Didn't know about JavaFX, and just having a brief check on it, it'd seem JavaFX might once I've got to grips with Java Swing first. That sound fair?
Although, it does sound like JavaFX offers more individual/unique skin design options... Which is nice
Swing and FX work quite differently.
I would pick FX, if only because it's the current GUI for Java Desktop.
Swing is alive and well. So is GWT, as far as I know - it's the GUI framework for the Eclipse IDE and the Pentaho Spoon GUI designer for their Kettle ETL tool. And those are just items I can recall readily. I might also suggest looking at what jGannt and ArgoUML run off of, as they perform well as graphical desktop environments.
On the other hand, Kanban is a collaboration tool, and I can't really see why you'd want to run it as a desktop app. It's generally run as a web-based application to make it easier for multiple users to participate.
I would look at using objects that implement Collection, rather than, arrays.
Ian Tail wrote:Hi all,
this is my first program that I'm trying to build... and I'm having trouble with where to begin...
Does this sound like the best way to go....?
Sticky class to create the sticky, with title and info.
Then a ready class with array to hold ready stickies, a doing class with array to hold doing stickies and a done class with array to hold done stickies.
Then a board class to create a board to hold the 3 arrays.
The OP hasn't posted anything for over five years, so I think you are going to have to start from scratch, I am afraid. Please start by explaining the logic behind a kanban board. Then show us how far you have got with your solution.
Post by:autobot
Yeah, but is it art? What do you think tiny ad?
a bit of art, as a gift, that will fit in a stocking