-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some changes in channel tab and some CSS styles
- Loading branch information
Showing
9 changed files
with
105 additions
and
1,356 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,44 @@ | ||
package mainwindow; | ||
|
||
public class Channel { | ||
import javafx.event.ActionEvent; | ||
import javafx.fxml.FXML; | ||
import javafx.fxml.Initializable; | ||
import javafx.scene.control.ChoiceBox; | ||
import javafx.scene.control.ColorPicker; | ||
import javafx.scene.control.TextField; | ||
import javafx.scene.paint.Color; | ||
|
||
import java.net.URL; | ||
import java.util.ResourceBundle; | ||
|
||
public class Channel implements Initializable{ | ||
|
||
@FXML | ||
private TextField nameText; | ||
@FXML | ||
private TextField unitText; | ||
@FXML | ||
private ChoiceBox channelBox; | ||
@FXML | ||
private ColorPicker colorPicker; | ||
|
||
@Override | ||
public void initialize(URL location, ResourceBundle resources) { | ||
channelBox.getItems().add("Channel 1"); | ||
channelBox.getItems().add("Channel 2"); | ||
channelBox.getItems().add("Channel 3"); | ||
channelBox.getItems().add("Channel 4"); | ||
channelBox.getItems().add("Channel 5"); | ||
channelBox.getItems().add("Channel 6"); | ||
channelBox.getItems().add("Channel 7"); | ||
channelBox.getItems().add("Channel 8"); | ||
} | ||
|
||
public void onSetAction(ActionEvent actionEvent) { | ||
String channel=(String)channelBox.getSelectionModel().getSelectedItem(); | ||
String name=nameText.getText(); | ||
String units=unitText.getText(); | ||
Color color=colorPicker.getValue(); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
.buttons{ | ||
-fx-border-radius: 5; | ||
-fx-background-color: #DFB951; | ||
-fx-border-color: #222222; | ||
-fx-text-fill: #333333; | ||
-fx-background-color: #CCCCFF; | ||
-fx-border-color: #000066; | ||
-fx-text-fill: #000066; | ||
} | ||
.background{ | ||
-fx-background-color: #000066; | ||
} | ||
.labels{ | ||
-fx-text-fill: white; | ||
-fx-font-size: 12px; | ||
} |