Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Swing Front end design

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a stand alone application that uses swing as the front end. The package is basically an accounting package. So there are many input forms. These input forms should be changed as per customer demand. This change can involve a change in the label position ,font ,font size, textbox position ,size, lenght ,button position ,size ,label ,lenght ,colour. how do i do this without touching any of the java files once they are in place. that is i must be able to configure the product appearence look and feel and the layout at the site where i am installing the product, but without any change in the java files.
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all I'd like to state that I'm no expert on designing an application. But, because I have some knowledge on Design Patterns and always like to help, if possible, I'd like to suggest you read some bit on the following two patterns: 'Model-View-Controller' and 'Model-View-Presenter'.
The Model-View-Controller (MVC) Pattern, which originates from SmallTalk, is used quite often nowadays in nearly all J2EE projects, but could ofcourse also be applied to less complicated applications like yours. The Model-View-Presenter (MVP) pattern looks much like the MVC pattern, but might be a bit less complex and more usable in your situation.
Note that the above provided links are but a start. If you think you can use the patterns, you'd better browse the net for more information and maybe some good examples. I bet you can find far more information if you looked around a bit.
Good luck,
Tim
 
Ranch Hand
Posts: 1874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
kb kb , Welcome to javaranch.
PROPER NAMES ARE NOW REQUIRED
Please look carefully at official naming policy at javaranch & reregister yourself with proper first & last name. Please adhere to official naming policy & help maintain the decorum of the forum.
Waiting for your posts with proper first & last name. Once you have reregister , please let us know about that & then your previous account will be disabled.
Regards.

Your Friendly Bartender
Shailesh.
 
kb kb
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks from reminiding but the point is difficulty in geting names and u definitly end up in fictious names. So i find your this policy a little difficult to adhere to at times.
but now that you have explicity asked to change the name i shall do so. but please consider the point i have raised as always using proper names is not a good solution
thanks

Originally posted by shailesh sonavadekar:
kb kb , Welcome to javaranch.

[b]PROPER NAMES ARE NOW REQUIRED

Please look carefully at official naming policy at javaranch & reregister yourself with proper first & last name. Please adhere to official naming policy & help maintain the decorum of the forum.

Waiting for your posts with proper first & last name. Once you have reregister , please let us know about that & then your previous account will be disabled.

Regards.

Your Friendly Bartender
Shailesh.[/B]


 
There are no more "hours", it's centi-days. They say it's better, but this tiny ad says it's stupid:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic