由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - design question
相关主题
Re: 如何在两个窗口之间通信?Is this a Bug or not?
How to wrap line at specific position?jbuilder9 personal, full version free
问个swing login窗口的问题新手问一个:如何找.jar文件里都有什么class?
GUI libraries for JDeveloper?有几个公司是完全按照这个运作的呢
Re: Error handling in Jelly, SwixML and这个老工具如何使用
想给程序加个最简单的窗口界面,请帮忙问个Struts的问题
新手求助applet问题How about Swing?
wicket in action到手了spring Annotation based configuration
相关话题的讨论汇总
话题: gui话题: design话题: dialog话题: functions
进入Java版参与讨论
1 (共1页)
c*****t
发帖数: 1879
1
The application I am working on is growing a bit out of control, so
asking for some advices.
1. I would like to separate GUI component from actual functions that
deal with functions. For example, I have a dialog that has a slider
to control the Alpha values of images. I am looking for a general
solution s.t. GUI components contain as little as code as possible
and one could design different GUI dialog boxes to do the same thing.
2. What is the easiest way of loading/saving configurations w/o
s
m**c
发帖数: 90
2

How about using properties file for configuration?

【在 c*****t 的大作中提到】
: The application I am working on is growing a bit out of control, so
: asking for some advices.
: 1. I would like to separate GUI component from actual functions that
: deal with functions. For example, I have a dialog that has a slider
: to control the Alpha values of images. I am looking for a general
: solution s.t. GUI components contain as little as code as possible
: and one could design different GUI dialog boxes to do the same thing.
: 2. What is the easiest way of loading/saving configurations w/o
: s

m******t
发帖数: 2416
3

Isn't that why we have events and event listeners all over the place
in swing? 8-)
If most of your configurations are flags and simply data type values,
a property file would probably make it a lot easier for you.

【在 c*****t 的大作中提到】
: The application I am working on is growing a bit out of control, so
: asking for some advices.
: 1. I would like to separate GUI component from actual functions that
: deal with functions. For example, I have a dialog that has a slider
: to control the Alpha values of images. I am looking for a general
: solution s.t. GUI components contain as little as code as possible
: and one could design different GUI dialog boxes to do the same thing.
: 2. What is the easiest way of loading/saving configurations w/o
: s

f********h
发帖数: 149
4
read the book about the design pattern by gang of four.

【在 c*****t 的大作中提到】
: The application I am working on is growing a bit out of control, so
: asking for some advices.
: 1. I would like to separate GUI component from actual functions that
: deal with functions. For example, I have a dialog that has a slider
: to control the Alpha values of images. I am looking for a general
: solution s.t. GUI components contain as little as code as possible
: and one could design different GUI dialog boxes to do the same thing.
: 2. What is the easiest way of loading/saving configurations w/o
: s

1 (共1页)
进入Java版参与讨论
相关主题
spring Annotation based configurationRe: Error handling in Jelly, SwixML and
Re: FileDialog 的问题想给程序加个最简单的窗口界面,请帮忙
Servlet question: the orig filename新手求助applet问题
A "Focus" questionwicket in action到手了
Re: 如何在两个窗口之间通信?Is this a Bug or not?
How to wrap line at specific position?jbuilder9 personal, full version free
问个swing login窗口的问题新手问一个:如何找.jar文件里都有什么class?
GUI libraries for JDeveloper?有几个公司是完全按照这个运作的呢
相关话题的讨论汇总
话题: gui话题: design话题: dialog话题: functions