java - GUI program, problem with tabbedpanes -


I am creating a GUI program using MVC that should look like this ..

I I am thinking of creating input and display tabs in a window and panel class I panel square and then making two more classes, InputPlanel and Display Panel. Therefore, the content of this tab in the InputPanel will also be included in the Input tab and for the Performance tab. Is this a better way to design?

Also, because there are 3 sections in the input tab (name and sentence, crime, button), should I create 3 panels or just 1 panel, in which all of them have been included?

Instead of using three panels instead of your specific question To answer, I would suggest two things to rarely make a panel to create a widget. Therefore, for a question about a widget for name and sentence, for a crime

"Is this a better way of designing" question? ... It sounds like you are learning, so I suggest that you do not pay much attention to the right way to do it. Paste it with your original design, after work, ask yourself what has worked and what does not. With that information you will be able to decide for yourself that what you did was the right design.

While designing a GUI code, it is generally not "best" - there are several ways to solve the problem. Have you explained that there is a perfectly good way to attack the problem

(*) In this context, "work" means that it was easy to code? Does it allow you to get the layout you want? Does it retain the code over time, for example, there is a requirement to reorganize the GUI.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -