I'm making a small application. I have a JFrame
and there is a desktop pane in it.
I want to load a JInternalFrame
to it.
My code is as below.
void dpload(){
Patients patient = new Patients();
dp_patient.add(patient);
patient.setVisible(true);
}
Patients = JInternalFrame
patient = created object
*dp_patient = desktopPane*
When I test it for the first time, it compiles fine. But if I do any modification for the JInternalFrame
and run, it does not change its modifications.
But when I change the object name (patient) and run again, changes happens.
for an example;
i changed the size of a button in JInternalFrame. When i run the project, size has not changed. If i change the object name (patient>>> patients) size change is taken place.
How can I fix this?