Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi I have a jframe and a jtable
and i want bind the table to jtable
how can i do it?
tnx

i try this http://netbeans.dzone.com/news/binding-jtable-swing-controls-[^]

but when i Click on "Import Data to Form..." show a error:
"Importing data into a form in the default package is not allowed"

and try this https://blogs.oracle.com/NetBeansSupport/entry/populating_jtable_from_mysql_database[^] but the table can't drag to the jtable
Posted
Updated 19-May-12 6:36am
v3

1 solution

You need to make proper packages.

Proper written code is organized in packages, that makes it possible to find something when an error appears.

I normally divide in several packages according of the function:

- XX.XX.app (app starter, general things)
- xx.xx.manager (for general, often data related classes like DB connector etc)
- xx.xx.handler (for action handling)
- xx.xx.view (for the GUI)
- xx.xx.view.workbench (I'm developing in RCP)

Each of these Packages has more packages underneath, so I get a pretty well organized workbench.
 
Share this answer
 
Comments
jiji2663 21-May-12 13:10pm    
file ->new file -> java pakage

tnx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900