• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UI Architecture question.

 
babu_kumar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys.
I am actively developing the application and I have few questions.
a) Can we add new classes to the db package that already exists in the suncertify package.
b) I have good experience in java server side but I am quite new to UI/Swing development. It would be of great help if you guys can validate if I am doing the right thing.

My ui code is organized as below (see pseudo code below). The main problem I have with this approach is
- everything is done in one class.
- There are many inner classes and anonymous inner classes. I don't know if it is good to organize code this way.
- I don't know if there is good seperation between MVC here.
- This is how it is done in examples given in books. But you know books cut down lot of stuff to reduce lines of code so they may not be a good pattern for us.
Any suggestion from you guys would be of great help. Thanks in advance.
Also if you can give some reference to good UI patterns - specifically for swing ui developement, it would be great.
------------- pseudo code --------------

class FBNApp
{
main()
{
FBNApp fbn = new FBNApp();
fbn.pack();
fbn.setVisible(true);
}
FBNApp()
{
- create Main panel
- call create_query_panel
- call create_result_table
- call create_book_panel

}
create_query_panel()
{
- add display compoenents
- setup anonymous inner classes as listeners as below
queryButton.addActionListener( new ActionListener()
{
public void actionPerformed(ActionEvent actionEvent)
{ update_result_table();}
} );
}
update_result_table()
{
- execute the query and display the results in table.
}

create_result_table()
{
- create results table modles etc.
- handle row selection
}
create_book_panel()
{
- add booking related components
- setup anonymous inner classes as listeners to handle booking as below
bookButton.addActionListener( new ActionListener()
{
public void actionPerformed(ActionEvent actionEvent)
{ processBooking();}
} );
}

}//end of FBNApp.
----- pseudo code ---------------
 
Reshma Das
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you explain How you did ur server design ?
1. you used GUI for selecting different modes(network/local) or accepted command line arguments?
2. What are the checks you did on the arguments ?
3. How did u start ur rmiregistry?
 
babu_kumar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for you reply.
I accepted the command line args as properties with java -d hostname=xyz options.
The only check i made is if the requested mode is local or remote. I assumed local if nothing was specfied.
I started rmiregistry from the program itself using locateRegistry and createRegistry methods.
I will be very happy to discuss my server design but I think I should do it in a differnt topic post. I really need help with my UI design - if we start discussing the server side topic here, I think it will dilute the topic and my intention to validate the UI design.
Hello UI experts I really need help with my UI design. Can any one of you help me please .............
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic