package access level problem

S

sujee

Hi,
i am doing a project in java.
I have an package called PkMain.Inside that i have 2 sub packages
PkC(It contains the classes related to my program. i have define access
level of those classes within that package bec of security reasons) and
PkGUI(this package is swing classes have 1-1 connection with classes in
PkC classes).
for eg i have a table customer(database level),customer class(java
level) and customer form swing class. objects of the customer entity
exits on all three levels.
when user fill information in swing form i will create an customer
object.i have methods of customer class that related to database. so i
will call one of the method 'insert' to insert into customer table.
my problem is i am unable to create a customer object from swing form,
since access level of customer class is limited.
could u pls help to solve this solution.
i want to manage swing and my core classes into two different package
while access level of core classes are limited to that package.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top