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.
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.