mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-10-09 14:31:13 +00:00
Added some missing static files
This commit is contained in:
parent
91be2d9667
commit
5097c69635
38 changed files with 3000131 additions and 30 deletions
|
@ -26,7 +26,7 @@ Buttons are created using the JButton component. The constructor takes the text
|
|||
JButton stopBtn = new JButton("Stop");
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
You can also add images inside a button. To do that you need to get the image and make it into an icon. The following code grabs the image file “smallpanda.jpg” from the current working directory.
|
||||
|
@ -51,7 +51,7 @@ this.add(stopBtn);
|
|||
this.add(feedBtn);
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
### Labels and Textfields
|
||||
|
@ -71,7 +71,7 @@ One of the most common forms of input is a text field, usually distinguished wit
|
|||
this.add(nameInput);
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
### Checkboxes
|
||||
|
@ -87,7 +87,7 @@ Checkboxes are commonly used when giving the possibility for multiple answers. S
|
|||
this.add(rice);
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
You can even replace the default look of the checkbox with an image. To do this, you need to make image icons for both when it's checked and when it's unchecked.
|
||||
|
@ -105,8 +105,8 @@ checkbox.setSelectedIcon(checkedIcon);
|
|||
this.add(checkbox);
|
||||
```
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
|
||||
### Text Areas
|
||||
|
@ -123,7 +123,7 @@ By default, when the someone inputs more text than the size can hold, it will au
|
|||
JScrollPane scrollPane = new JScrollPane(textarea);
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
### Radio Buttons
|
||||
|
||||
|
@ -147,7 +147,7 @@ this.add(radio2);
|
|||
this.add(radio3);
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
### JList
|
||||
|
@ -188,7 +188,7 @@ list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
|
|||
this.add(sp);
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
### JComboBox
|
||||
|
||||
|
@ -205,4 +205,4 @@ cb.addItem("Steak");
|
|||
this.add(cb);
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue