I am trying to import a bunch of java-related APIs into my Android project, but when I import them, it says that it cannot find the package
Here is an example of what I'm trying to import
import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JFileChooser;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JSpinner;
import javax.swing.SpinnerNumberModel;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
all classes javax.swingshow an error. When I go where the java JDK was installed and look at the file src.zip, I see all these classes there, what am I doing to get them working?
tyczj source
share