Board index » jbuilder » Design pattern
Fabio Tirapelle
JBuilder Developer |
Fabio Tirapelle
JBuilder Developer |
Design pattern2004-01-13 09:47:41 PM jbuilder5 Is there a pattern to synchronize two tables? I have two JTables working on two Models. How can I synchronize the two Models? thanks |
pNichols
Java Developer |
2004-01-15 02:24:03 AM
Re:Design pattern
Fabio Tirapelle wrote:
QuoteIs there a pattern to synchronize two tables? I have two JTables working |
Fabio Tirapelle
Java Developer |
2004-01-15 08:54:28 PM
Re:Design pattern
Ok.
I have two Model: 1) Object[][] rowscols, which contains the "AbstractModel" of my JTable 2) boolean[][] editable, which contains true or false. True when the cell [n],[m] is editable, false when the cell [n],[m] in not editable. The problem is the follow: when I add a new row, the rowcols will be incremented to one row and I have to increment the editable object too. When I delete a row, I have to decrement the rowcols object and the editable object too. "pNichols" < XXXX@XXXXX.COM >wrote in message QuoteFabio Tirapelle wrote: {smallsort} |
tor.wilhelmsen
Java Developer |
2004-01-16 04:17:29 PM
Re:Design pattern
"Fabio Tirapelle" < XXXX@XXXXX.COM >writes:
Quote1) Object[][] rowscols, which contains the "AbstractModel" of my JTable |
dBoussebha
Java Developer |
2004-10-07 12:13:16 AM
Re:Design pattern
Hi;
I would like to realize a application two level (Client/Server) and I would like to use the design pattern. Question : Which have most important to use ? regards; |
Joanna Carter (TeamB)
Java Developer |
2004-10-07 12:46:42 AM
Re:Design pattern
"dBoussebha" < XXXX@XXXXX.COM >a écrit dans le message de
QuoteI would like to realize a application two level (Client/Server) and I trying :-)) Joanna Consultant Software Engineer TeamBUG support for UK-BUG TeamMM support for ModelMaker |
Lee Grissom
Java Developer |
2004-10-12 04:59:42 AM
Re:Design pattern
dBoussebha wrote:
QuoteI would like to realize a application two level (Client/Server) and I your mind. Design patterns are the tools that will help you achieve this goal. Without a written specification, it's hard to know which specific ones apply to your project. In the end, you'll probably end up using a handful of patterns, and they are usually innertwined. They support one common goal: To better organize your code. For everything you do, ask yourself, "Will this easily adapt to changed requirements?" If the answer is yes, then you have implemented well. |