473,320 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Models in Swing.

dmjpro
2,476 2GB
Now a days I am working in Swing.
So guys please help me to do my project.
Actually the time is short to read out those things.

What i have a confusion ..that .....

Expand|Select|Wrap|Line Numbers
  1. DefaultTableModel tab_model = new DefaultModel(...);
  2. JTable tab = new JTable(tab_model);
  3. //Now if I change to tab_model then automatically updation notification goes to tab??
  4.  
Debasis Jana.
Mar 30 '08 #1
6 1244
JosAH
11,448 Expert 8TB
Now a days I am working in Swing.
So guys please help me to do my project.
Actually the time is short to read out those things.

What i have a confusion ..that .....

Expand|Select|Wrap|Line Numbers
  1. DefaultTableModel tab_model = new DefaultModel(...);
  2. JTable tab = new JTable(tab_model);
  3. //Now if I change to tab_model then automatically updation notification goes to tab??
  4.  
Debasis Jana.
Why don't you just try it if you don't want to read? Are you planning to ask every
little Swing issue here just because you don't want to read the API documentation?
It'll cost you a lot more time to produce anything sensible then.

btw, not supplying a TableModel makes the JTable produce its own DefaultTableModel.

kind regards,

Jos
Mar 30 '08 #2
dmjpro
2,476 2GB
Why don't you just try it if you don't want to read? Are you planning to ask every
little Swing issue here just because you don't want to read the API documentation?
It'll cost you a lot more time to produce anything sensible then.

btw, not supplying a TableModel makes the JTable produce its own DefaultTableModel.

kind regards,

Jos

What I guessed that's right ...if i change to Model then it reflects to that corresponding table.

Debasis Jana
Mar 30 '08 #3
r035198x
13,262 8TB
What I guessed that's right ...if i change to Model then it reflects to that corresponding table.

Debasis Jana
Don't play guessing games with the compiler. Just refer to the API docs.
Mar 31 '08 #4
JosAH
11,448 Expert 8TB
Don't play guessing games with the compiler. Just refer to the API docs.
I normally fall asleep with my nose on the keyboard. When I wake up I expect to
see the most beautiful code. If there isn't any I fall asleep and try again :-)

kind regards,

Jos
Mar 31 '08 #5
SammyB
807 Expert 512MB
> fall asleep with my nose on the keyboard. When I wake up I expect to
see the most beautiful code. If there isn't any I fall asleep and try again :-)

This works just like evolution -- you just need to try for a longer period of time. ;o)>>> Sam
Mar 31 '08 #6
JosAH
11,448 Expert 8TB
> fall asleep with my nose on the keyboard. When I wake up I expect to
see the most beautiful code. If there isn't any I fall asleep and try again :-)

This works just like evolution -- you just need to try for a longer period of time. ;o)>>> Sam
I can't do that, I mean I have to go to bed at night, I need my sleep too you know!

kind regards,

Jos ;-)
Mar 31 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Scott Khan | last post by:
We have a Java Swing position. Need consultants ASAP. Position : Java Swing XML / SOAP - FX / Brokerage Requirements : Swing - JTrees / Jtables. other swing classes. etc. Java/ J2EE. JDK...
5
by: Chris | last post by:
Having been traumatised many years ago when using MFC/C++ to develop front-end code, I've religiously avoided GUI work since and stuck to back-end / server-side projects. So I'm a bit of a novice...
6
by: Joseph | last post by:
hi 1) i plan on having an awt canvas component (to draw graphs) on a JFrame with other swing components..will this be okay? i've read that swing and awt aren't compatible.. 2)Also, if i...
3
by: bergel | last post by:
Hello, Does anyone already have some experience in mixing AWT and Swing? Is it conceptually doable? Does the design of Swing prevent interaction between an AWT and a Swing widget? Regards,...
3
by: Sherrod Faulks | last post by:
I'm using Jython and in the python script I do: from javax import swing result = javax.swing.JOptionPane.showInputDialog(wC, cmd,"Prompt from " + client.serverName, JOptionPane.PLAIN_MESSAGE) ...
1
by: Nandan | last post by:
hello, can I ask a jython question here? when I use the jython interpreter I have no problem with the statement: from java import lang from javax import swing but when I put this in a...
2
by: asj | last post by:
I have to honestly say I was flabbergasted by this report. Obviously, I have no problems asserting that Java is #1 in the enterprise (JEE), or in the mobile space (JME), and I do know it's made...
3
by: Nuwang | last post by:
Hai, I'm using a swing to connect database with swing application... 1. How this swing connect with access database... 2. Important thing is how change Button size and Font size Still I...
1
by: bruce628 | last post by:
I want to use SWT tab compnent and make it be multiline,but I fail.please see the class TabFolderExample. Can aneone help me? import java.awt.BorderLayout; import...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.