class is not public in my package and cannot be accessed from outside package
问题 I am using the following ControlFX project. Hence, created a Dialogs.java class in my package and pasted the code from there. Since I am not Inside the package org.controlsfx.dialog , I have to do the following: import org.controlsfx.dialog.LightweightDialog; And I am getting the following error as shown in the image below: When I went inside the package org.controlsfx.dialog and opened, LightweightDialog.class , I wasn't able to make the class public. How should I overcome this situation?