Concept explainers
When a selector name starts with a period in a JavaFX CSS style definition, it means the selector corresponds to _______.
- a. specific variable names in the application
- b. specific types of JavaFX nodes
- c. values that the user enters
- d. named constants in the application
When a selector name begins with a period in a JavaFX CSS style definition, the selector corresponds to “specific types of JavaFX nodes”.
Hence, the correct answer is option “B”.
Explanation of Solution
Type Selector Names:
- The selector names, which are starting with a period is type selector.
- Type selector is corresponding to a particular type of JavaFX nodes.
- These names are identical to the JavaFX class names to which they correspond.
- For example
- If the class name is “Button” then the corresponding type selector is “.button”.
- If the class name is “CheckBox”, then the corresponding type selector is “.check-box”.
Explanation for incorrect options:
a. specific variable names in the application:
It is not a valid one and it is not corresponds to specific names in the JavaFX CSS style definition.
Hence, the option “A” is wrong.
c. values that the user enters:
It is not a valid one and it is not corresponds to user entered values in JavaFX CSS style definition.
Hence, the option “C” is wrong.
d. named constants in the application:
It is not a valid one and it is not corresponds to named constant in JavaFX CSS style definition.
Hence, the option “D” is wrong.
Want to see more full solutions like this?
Chapter 13 Solutions
STARTING OUT W/JAVA PLUS ACCESS >IP<
- The following JavaFx code is called as event ________ Model Button btOK = new Button("OK"); OKHandlerClass handler = new OKHandlerClass(); btOK.setOnAction(handler); Window Display Delegation Dialogarrow_forwardAssignment 1: Design the below form using the Java Swing controls and JOptionPane Student Information First Name: Last Name: Title: Nickname: Display Format: [Item 1 Mail Format: Programming Language Skills : C HTML C Plan Text C ustom I Oracle Java ASP.NET E-mail E-mail Address: Print in TextArea Clear Exit Dispaly Welcome Note: Print in TextArea Button: must get all data from the controls in the design and display all in textArea each one in a new Line. Clear Button: clear all data in the form. Exit Button: Exit the Form with confirm dialog. Display Welcome Button: use Dialog box to display Welcome Dialog.arrow_forwardIn Visual Studio Code, I need to be able to enter data into the fields. But if the user hits the submit values button and a field is empty, they get an error message (As in the provided images). The code goes something like this. <html> <head> <title>Week2 GP1 - Michael Porter</title> </head> <body> <form method='POST'> <h3>Enter your name: <input type="text" name="name"></h3> <h3>Enter your date of birth: <input type="text" name="birth"></h3> <h3>Enter your favorite color: <input type="text" name="color"></h3> <h3>Enter your favorite place to visit: <input type="text" name="fav_place"></h3> <h3>Enter your Nickname: <input type="text" name="nickname"></h3> <input type="submit" value="Submit Values"> </form> <?php $name = ''; $birth = ''; $color = '';…arrow_forward
- use any language GUI The form should contain five command buttons, two labels only, and three picture boxes. The three picture boxes, each containing a flag, are on top of one another, but only one should be visible at a time. For each picture box: Be sure to add the image as a local resource. Set the Size property to 100, 50 Click the Size Mode list arrow, then click StretchImage in the list. For the Labels: One label will have your name as the programmer – see bottom left corner of the windows above. The other label will be used to display the name of the capital city. When a country button is clicked assign the name of the city into this label.arrow_forwardTheme : arithmetic application for primary school students. Write a new HTML form with JavaScript codes that accept the student's name, program, age, gender, and state ( may add other input as well). The HTML page accepts 2 numbers and the user will select one of the buttons to perform the selected function. It will allow user to repeat the task and display all input and result of calculation accordingly. It also allow user to exit the application and allow user to input numbers and select buttons that perform each of the following functions respectively : -Addition, Subtraction, Multiplication, Division, Modulusarrow_forwardTrue or False: You normally add JCheckBox components to a ButtonGroup object.arrow_forward
- An application has three paragraphs. What set of selector commands would NOT work for you to use to place red text color in the first paragraph and brown background color to the first paragraph , and then add blue background color to the second paragraph, green background color to the third paragraph, and the second and third paragraphs have a yellow text, as illustrated in the illustrated output immediately below The html commands are: <div class = "central"> <p class ="class1"> put text in first </p> <p class="class2">Put text in second</p> <p class="class3">Put text third</p> </div> a. p{color:red;} div p{ background-color:brown;} div.central p.class2{background-color:blue; color:yellow;} p.class3{background-color: green; color:yellow;} b. p{color:red;} div p{ background-color:brown;} div.central…arrow_forwardThe DOM describes the document’s elements as a set of __________. a. Events b. Functions c. Objects d. Propertiesarrow_forwardMost controls have a __________ property that determines whether the control is visible on the form at run time. a. Render b. Viewable c. Visible d. Drawarrow_forward
- 10. Create an application which will allow the user to type some text into a text box, and constantly display the number of words and the number of alphabetic letters that has been typed so far. By using HTML (the source code and the result of the program are recommended)arrow_forwardGood Evening In attachment is picture of C# net form. second picture has form in edit mode basically it needs following: Add and alter the following controls:Button Name: btnEditButton Name: btnDeleteButton Name: btnCanceltxtEmpName MaxLength: 30 Remarks: Should only allow letters A-Z, a-z, space and back space characters.txtEmpID MaxLength: 8 Remarks: Should only allow 0-9 and back space characters. next - When the program starts the two textboxes should be set to read only so the user can not alter the contents unless they are in add or edit mode. Also the cancel and save buttons should be disabled. next In add mode the listbox, add button, edit button, and delete button should be disabled. The two textboxes, cancel button and save button should be enabled. next In edit mode the listbox, add button, edit button, employee ID textbox, and delete button should be disabled. The employee name textbox, cancel button and save button should be enabled. next…arrow_forward10. Tic-Tac-Toe SimulatorCreate a JavaFX application that simulates a game of tic-tac-toe. Figure 15-55 shows anexample of the application’s GUI. The window shown in the figure uses nine ImageViewcomponents to display the Xs and Os. (You will find images for the X and the O in thebook’s Student Sample Files.)The application should use a two-dimensional int array to simulate the game board in memory. When the user clicks the New Game button, the application should step through thearray, storing a random number in the range of 0 through 1 in each element. The number 0 represents the letter O, and the number 1 represents the letter X. The application’s windowshould then be updated to display the game board. The application should display a messageindicating whether player X won, player Y won, or the game was a tiearrow_forward
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTEBK JAVA PROGRAMMINGComputer ScienceISBN:9781305480537Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,