@SangeetS/

SimpleUI

Java Swing

No description

fork
loading
Files
  • Main.java
  • CheckBox.java
  • ComboBox_TxtArea.java
  • ImgToolbar.java
  • SalutonFrame.java
  • ScrollPane.java
  • Slider.java
  • Text_Buts_Labels.java

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.786138377343619","path":"Main.java","file":{"path":"Main.java","content":{"asEncoding":{"base64":"Ly9OT1RFOiBpZiBhIGNsYXNzIHlvdSBtYWtlIGlzbid0IG1ha2luZyBhbnkgY29tcG9uZW50cyBsaWtlIGJ1dHRvbnMgb3IgZmllbGRzLCB0aGVuIHlvdSBkb24ndCBuZWVkIHRvIHNwZWNpZnkgYSBjb25zdHJ1Y3Rvci4gCgovKkphdmEncyBBYnN0cmFjdCBXaW5kb3dpbmcgVG9vbGtpdCBhbmQgaXRzIHN3aW5nIHBhY2thZ2UoYSBjb2xsZWN0aW9uIG9mIGphdmEgY2xhc3NlcyB0aGF0IHJlcHJlc2VudHMgYWxsIGJ1dHRvbnMsIHRleHQgZmllbGRzLCBzbGlkZXJzLCBhbmQgb3RoZXIgY29tcG9uZW50cyB0aGF0IGNhbiBiZSBwYXJ0IG9mIGEgR1VJIGFzIHdlbGwgYXMgdGhlIGNsYXNzZXMgbmVlZGVkIHRvIHRha2UgaW4gdXNlciBpbnB1dCBmcm9tIHRoZXNlIGNvbXBvbmVudHMuIFlvdSBoYXZlIHRvIHNheSAiaW1wb3J0IGphdmF4LnN3aW5nLiogIikgaXMgdGhlIGZvdW5kYXRpb24gb2Ygb2YgdGhlIGRldmVsb3BtZW50IAoqLwovL0EgSlBhbmVsIGlzIHRoZSBzaW1wbGVzdCBraW5kIG9mIGNvbnRhaW5lciAtIGl0IGlzIGluc2lkZSBvdGhlciBjb21wb25lbnRzIC0gaXRzIHNvbGUgam9iIGlzIHRvIGRpdmlkZSBhIGNvbnRhaW5lciBpbnRvIHNtYWxsZXIgY29udGFpbmVycy4gaXQgZG9lc24ndCBuZWVkIGEgdGl0bGUsIGEgc2V0VmlzaWJsZSwgb3IgYSBsb29rIGFuZCBmZWVsLiBZb3UgbWFrZSBhIGNsYXNzIGV4dGVuZCBKUGFuZWwgdG8gbWFrZSBpdCBhIHBhbmVsIGFuZCBjYWxsIHRoZSBjbGFzcyBpbiBhIHdpbmRvdyBvciBhIGZyYW1lLiBZb3UgY2FuIGFsc28ganVzdCBtYWtlIGEgSlBhbmVsIG9iamVjdCBpdHNlbGYgaW5zdGVhZCBvZiBtYWtpbmcgYSBjbGFzcyB0aGF0IGlzIGEgY2hpbGQgb2YgSlBhbmVsLgoKLypKYXZhJ3MgdXNlciBpbnRlcmZhY2UgY2xhc3NlcyBpbmNsdWRlOiBidXR0b25zLCBjaGVjayBib3hlcywgbGFiZWxzLCB0ZXh0IGZpZWxkcywgc2xpZGVycywgcHVsbCBkb3duIG1lbnVzLCBwb3AtdXAgbWVudXMsIHdpbmRvd3MsIGZyYW1lcywgZGlhbG9nIGJveGVzLCBwYW5lbHMsIGFuZCBhcHBsZXQgd2luZG93cy4qLwpjbGFzcyBNYWluIHsKICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKSB7CiAgICAgIENvbWJvQm94X1R4dEFyZWEgc2FsPSBuZXcgQ29tYm9Cb3hfVHh0QXJlYSgpOwogIH0KfQ=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
//NOTE: if a class you make isn't making any components like buttons or fields, then you don't need to specify a constructor. 

/*Java's Abstract Windowing Toolkit and its swing package(a collection of java classes that represents all buttons, text fields, sliders, and other components that can be part of a GUI as well as the classes needed to take in user input from these components. You have to say "import javax.swing.* ") is the foundation of of the development 
*/
//A JPanel is the simplest kind of container - it is inside other components - its sole job is to divide a container into smaller containers. it doesn't need a title, a setVisible, or a look and feel. You make a class extend JPanel to make it a panel and call the class in a window or a frame. You can also just make a JPanel object itself instead of making a class that is a child of JPanel.

/*Java's user interface classes include: buttons, check boxes, labels, text fields, sliders, pull down menus, pop-up menus, windows, frames, dialog boxes, panels, and applet windows.*/
class Main {
  public static void main(String[] args) {
      ComboBox_TxtArea sal= new ComboBox_TxtArea();
  }
}