Results 1 to 1 of 1
- 06-24-2014, 05:12 PM #1Member
- Join Date
- May 2014
- Rep Power
I'm a beginner and I'm Stuck on programming design issue
Someone probably came accross this issue when they started programming but here is the issue
Currently i created a program of mines with a gui that is in its own .java class files.
The gui will interact with 6 separate java class files. I'm stuck on how to design it
that way my main gui file will interact with the other files in a way that is seamless,
What i litterally mean is the the design approach i should take to make this logical
so i can pass data between them easy return data.
What the program currently does.
User gets to check some check boxes of what test the want to run on the system.
Once user selected these check boxes, and I have there input the parameters . They hit a play button.
This play button will then interface and go to the selected java class
files and perform any of the passed action that was selected.
I separated into 6 separate java class files due to the fact that there are different modules that i will be interacting with.
Each module is different.
I started using an if statement to see what was selected for the check box and i kind of got stuck when i also wanted to
add a switch statement in there. The plan was to have it go to the selected class and give it the selected task to run that was checked.
But the main issue in my mind is not being able to instantiate the class in my current
GUI class but in my mind i was wanting to call the class and start at the constructor and flow from there.
I know i'm probably missing something or looking at this from the wrong perspective, maybe someone would
give me hint of what not to do or how to approach this. I would gladly appreciate it.
- By clemsontigers in forum New To JavaReplies: 16Last Post: 02-19-2014, 04:16 AM
- By User19832 in forum New To JavaReplies: 2Last Post: 02-11-2014, 01:15 PM
- By judemartin99 in forum New To JavaReplies: 1Last Post: 04-20-2013, 09:16 PM
- By judemartin99 in forum New To JavaReplies: 1Last Post: 04-20-2013, 09:15 PM
- By tabchas in forum New To JavaReplies: 3Last Post: 04-30-2011, 11:33 PM