• Post Reply Bookmark Topic Watch Topic
  • New Topic

help designer mvc  RSS feed

 
Ranch Hand
Posts: 258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i beginned to create a little application to design database via GUI

i want to follow MVC pattern

i join an image file with different number on it

#1 on this picture, i have a jtree for the view,
i have a model for the data who are displayed and a controller

#2 i have a panel for the view

#3 i have a model for the data who are displayed

i click to add button bar, that create a little square (entity who are #3) to #2 and display name of #2 to #1

toolbar should be in another panel and this panel should include #2?

i'm lost, i have difficulty to define my MVC for #2,#3

any help

thanks
demo.PNG
[Thumbnail for demo.PNG]
 
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would recommend you to read some more about MVC. It's a pattern that enables you to separate data, logic and presentation.
In your openingspost you only talk about presentation and you don't ask a question.
 
mark smith
Ranch Hand
Posts: 258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i already read somes mvc tutorial, stufff is alway very very basic

there is a question on my first post


some others...

does i need to put directly my toolbar on the jframe?

i don't know what is my model for #2?

#2 is only usefull to draw item from #3
 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I find it hard to understand your questions. Maybe it's the language barrier.
However that I do understand has little to do with the MVC pattern and more
with GUI design. There is a lot to find about that topic.

Could you give us some concrete questions without referring to #1/#2/#3. I find that that doesn't
make anything more clear. Or maybe some code that shows your problem.
 
mark smith
Ranch Hand
Posts: 258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i will try to explain more clearly

i have view who display model information (entity and link)
these model are also displayed in the jtree (view)

now i need to draw the entity and link to the view
i need to draw rectangle and some line
there will be some differend kind of line

i don't know how the drawing of entity and link interact in the MVC?


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!