Java 使用fileinput/combobox的MVC有多少个类?
您好,我必须用java编写一个简单的MVC程序,它输入一个文件并将数据保存到ComboBox中的一个数组中,同时还使用按钮打开新窗口来编辑ComboBox中的数据 你认为我需要几节课?我仍然无法理解MVC背后的逻辑。下面是我的想法,请告诉我,如果你知道一个更简单或更正确的方法Java 使用fileinput/combobox的MVC有多少个类?,java,swing,model-view-controller,file-io,Java,Swing,Model View Controller,File Io,您好,我必须用java编写一个简单的MVC程序,它输入一个文件并将数据保存到ComboBox中的一个数组中,同时还使用按钮打开新窗口来编辑ComboBox中的数据 你认为我需要几节课?我仍然无法理解MVC背后的逻辑。下面是我的想法,请告诉我,如果你知道一个更简单或更正确的方法 Program - 1 public class Program{ public static void main... } View - 2 class ProgView extends JFrame{...
Program - 1
public class Program{ public static void main... }
View - 2
class ProgView extends JFrame{... }
class ProgView2 //inner class for second window which edits information in first?
Controller - 3
public class ProgController{...}
class ButtonListener implements ActionListener { } //inner class
class ComboBoxEdit //not sure if this goes here
Model - 2
public class ProgModel
class fileinput //data ... not sure if this goes here
总共8节课感谢您的建议、参考或输入“我仍然无法理解MVC背后的逻辑。”-查看更多内容。谢谢您垃圾上帝非常有帮助您摇滚。祝你好运。