Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 67 pts When creating an application using JavaFX, what class does the m

ID: 3827869 • Letter: Q

Question

Question 67 pts

When creating an application using JavaFX, what class does the main class need to extend?

Question 68 pts

What is happening at lines 70, 75, 80, and 85 in class DatabaseJavaFx?

Question 69 pts

What is happening at line 95 in class DatabaseJavaFx?

Question 70 pts

What is happening at line 133 in class DatabaseJavaFx?

Question 71 pts

What is happening at line 176 - 178 in class DatabaseJavaFx?

Question 72 pts

What object stores the results of a database query DatabaseJavaFx?

Question 73 pts

What is purpose of class XmlParser?

Question 74 pts

What is purpose of class ConnectionData?

Question 75 pts

What is purpose of class FilmDAO?

Question 76 pts

What is purpose of class PostgreSQLConnect?

Question 77 pts

What is purpose of file properties.xml?

Question 78 pts

What is method toString() in class ConnectionData doing?

Question 79 pts

What is Javadoc?

Question 80 pts

What is the correct format of Javadoc comments?

C:/Users/kwhiting/Documents/NetBeansProjects/DatabaseJavaFx/src/databasejavafx/DatabaseJavaFx.java

43
44 /** 45 *

* @param args

46
47
48
49 {

50 lh()

1.1 of 5 2016.11.30 14:25:23

C:/Users/kwhiting/Documents/NetBeansProjects/DatabaseJavaFx/src/databasejavafx/DatabaseJavaFx.java

56 /**

57 * set up the tableView

59 */

60

65

72

77

82

87

90

91 // same as a JButton in swing

93

96 {

99 {

2.1 of 5 2016.11.30 14:25:23

C:/Users/kwhiting/Documents/NetBeansProjects/DatabaseJavaFx/src/databasejavafx/DatabaseJavaFx.java

99 {

102 }

103 });

104

107 // create a JPanel type of class like in swing

111

117

118 // set up the UI

120 // create the Scene using the layout manager

124 } 125 /**

145 /**

3.1 of 5 2016.11.30 14:25:23

C:/Users/kwhiting/Documents/NetBeansProjects/DatabaseJavaFx/src/databasejavafx/DatabaseJavaFx.java

149 *

153 */

155 {

158

163

175

176 String select = "SELECT title, rental_rate, rating, description " +

184

186 {

193

195 }

98

4.1 of 5 2016.11.30 14:25:23

C:/Users/kwhiting/Documents/NetBeansProjects/DatabaseJavaFx/src/databasejavafx/DatabaseJavaFx.java

5.1 of 5 2016.11.30 14:25:23

C:/Users/kwhiting/Documents/NetBeansProjects/DatabaseJavaFx/src/inputOutput/XmlParser.java

10 import javax.xml.parsers.DocumentBuilder;
11 import javax.xml.parsers.DocumentBuilderFactory;
12 import javax.xml.parsers.ParserConfigurationException; 13 import org.w3c.dom.Document;
14 import org.w3c.dom.Element;
15 import org.w3c.dom.Node;
16 import org.w3c.dom.NodeList;
17 import org.xml.sax.SAXException;
18
19 /**
20 *
21 * @author kwhiting
22 */
23 public class XmlParser
24 {

27 private static final Logger logger = Logger.getLogger(XmlParser.class.getName());

28
29 /** 30 *

41 DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();

42
43 try 44 {

47

50 document = db.parse(ClassLoader.getSystemResourceAsStream(fileName));

* @param file

1.1 of 3 2016.11.21 23:02:58

C:/Users/kwhiting/Documents/NetBeansProjects/DatabaseJavaFx/src/inputOutput/XmlParser.java

51

53 NodeList nodeList = document.getDocumentElement().getChildNodes();

62 //for each <driver> element get text or int values of

64 String type = node.getAttributes().getNamedItem("type").getNodeValue();

77 {

78 String content = cNode.getLastChild().getTextContent().trim();

80 { 81
82

100 }

2.1 of 3 2016.11.21 23:02:58

C:/Users/kwhiting/Documents/NetBeansProjects/DatabaseJavaFx/src/inputOutput/XmlParser.java

100 }

} }

} }

}

/** *

* @return

}

3.1 of 3 2016.11.21 23:02:58

C:/Users/kwhiting/Documents/NetBeansProjects/DatabaseJavaFx/src/inputOutput/ConnectionData.java

23
24 /**

31 /**

38 /**

return type;

39 * @return the url 1.1 of 4

2016.11.21 23:03:34

C:/Users/kwhiting/Documents/NetBeansProjects/DatabaseJavaFx/src/inputOutput/ConnectionData.java

40 41

return url;

52 /**

59 /**

66 /**

73 /**

74 75 76 77

return port;

2.1 of 4 2016.11.21 23:03:34

C:/Users/kwhiting/Documents/NetBeansProjects/DatabaseJavaFx/src/inputOutput/ConnectionData.java

pp;

78 } 79
80 /**

81 82

94 /**

95
96
97
98
99 }

100
101 /**

108 /**

115 /**

3.1 of 4 2016.11.21 23:03:34

C:/Users/kwhiting/Documents/NetBeansProjects/DatabaseJavaFx/src/inputOutput/ConnectionData.java

122 /**

130

123

*

* @return

4.1 of 4 2016.11.21 23:03:34

C:/Users/kwhiting/Documents/NetBeansProjects/DatabaseJavaFx/src/inputOutput/PostgreSQLConnect.java

40 } 41

42 /** 43 *

* @param data

50 }

1.1 of 1 2016.11.22 00:59:07

C:/Users/kwhiting/Documents/NetBeansProjects/DatabaseJavaFx/src/dataModel/FilmDAO.java

39 */

41 {

46 }

1.1 of 3 2016.11.30 14:24:19

C:/Users/kwhiting/Documents/NetBeansProjects/DatabaseJavaFx/src/dataModel/FilmDAO.java

46 }

47
48 /** 49 *

56
57 /** 58 *

* @return

65
66 /** 67 *

74
75 /** 76 *

* @return

83
84 /** 85 *

* @return

2.1 of 3 2016.11.30 14:24:19

C:/Users/kwhiting/Documents/NetBeansProjects/DatabaseJavaFx/src/dataModel/FilmDAO.java

92
93 /** 94 *

110
111 /**

*
* @return */

119 }

3.1 of 3 2016.11.30 14:24:19

C:/Users/kwhiting/Documents/NetBeansProjects/DatabaseJavaFx/src/inputOutput/properties.xml

15 </driver>

1.1 of 1 2016.11.09 15:03:43

a. JFrame

Explanation / Answer

Answering first 4 as per policy.. Answers are in bold.

Question 67 pts

When creating an application using JavaFX, what class does the main class need to extend?

e. Scene

For javaFx application Application needs tobe extended.

Question 68 pts

What is happening at lines 70, 75, 80, and 85 in class DatabaseJavaFx?

Question 69 pts

What is happening at line 95 in class DatabaseJavaFx?

Question 70 pts

What is happening at line 133 in class DatabaseJavaFx?

a. JFrame
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote