Make the console text frame window in the JavaFX UI have these 1 -Styleable text frame. Should be

Aug 17th, 2016
Studypool Tutor
Price: $10 USD

Tutor description

Make the console text frame window in the JavaFX UI have these 1 -Styleable text frame. Should be able to programmatically alter the style of text (by the word) using bold, italics, underline, and color. Should be able to alter font styles and sizes per console (this does not need to handle per-word font differences, although it's good if it does). Should be able to clear all text, remove text, and add text with specified style information (see above). Should provide methods to retrieve text, and alter it using the above methods. 2- Make hotkey so user can clear console

Word Count: 526
Showing Page: 1/3
Answer-------------1public class Console extends OutputStream{private Console(ResourceBundle resourceBundle) throws IOException {FXMLLoader loader = new FXMLLoader(this.getClass().getResource("Console.fxml"),resourceBundle);controller = loader.getController();Scene scene = new Scene((Parent) loader.load());stage = new Stage();stage.setScene(scene);show();}@Overridepublic void write(int b) throws IOException {controller.append(b);}public static Console getInstance(ResourceBundle resourceBundle) {if (console == null) {try {console = new Console(resourceBundle);} catch (IOException e) {e.printStackTrace(); //To change body of catch statement use File | Settings | FileTemplates.}}return console;}public void show() {stage.show();}private static Console console = null;private ConsoleController controller;private Stage stage;}controller file:public class Consol

Review from student

Studypool Student
" Goes above and beyond expectations ! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1830 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors