javax.swing.text

Trying to create a GUI using java but not able to implement them the way i wanted

江枫思渺然 提交于 2019-12-25 12:55:09
问题 import javax.swing.*; import java.awt.*; public class SQlUI { public static void main(String[] args){ SQlUI user=new SQlUI(); user.go(); } public void go(){ //Creating a Frame JFrame frame=new JFrame(); //Creating three Panels JPanel panel0=new JPanel(); JPanel panel1=new JPanel(); JPanel panel2=new JPanel(); //Creating three Buttons JButton button0=new JButton("INSERT"); JButton button1=new JButton("UPDATE"); JButton button2=new JButton("DELETE"); //Adding panel0 to the frame which contains

How do I add the javax.swing.* packages to my libs for my android project?

拥有回忆 提交于 2019-12-02 11:21:15
问题 First of all I'd like to mention I am very new to Java programming. This Android project is my first experience with Java. So for one task I need to strip HTML tags from a string. I was thinking about using this answer Remove HTML tags from a String to do this task. In order to do this I need to be able to import javax.swing.text.html.* and javax.swing.text.html.parser.*. I went to the properties of my project and attempted to add this library to my project. I read that this was included in