Coding qs Flashcards

1
Q

Draw two wireframes of the application’s GUI (should not include login and registration
GUIs). Using Java GUI, write code to produce these two wireframes, ensuring one can
switch from one to the other through some GUI component.

A

xk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

With the 6 steps of connecting an application to the database using JDBC in mind, use
Java to write code to connect one of the GUI forms in (b) with a MySQL database that
will enable it to perform any CRUD functionalities

A

k

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

As a UI designer within a given firm, you have been tasked to create a simple dialling
interface comprising of 12 dial pads (numbers 0 to 9, and three buttons for calling, deleting, and
cancelling). Using knowledge accrued in class, identify the appropriate layout to use in the
design for this task, and using Java, write code that will create this simple interface.

A

kld

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Among the three EJB types mentioned as in a), there is one that represents real world objects
that interact with the system in different aspects. Identify this EJB type, and using Java, write
code that will declare any three of these objects, providing two-parameter constructors that will
be used to create objects for the respective objects, and any two methods that will define the
behaviours of these objects within a software ecosystem

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

b) The following is a simple interface implemented using Java’s GUI to create one of the
common layouts. Write code that produces that interface. (Hint: The layout used is
BorderLayout). March 2019

A

jf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

implementing radio buttons javafx

A
// create a label
        Label l = new Label("This is a Radiobutton example ");
        // create radiobuttons
        RadioButton r1 = new RadioButton("male");
        RadioButton r2 = new RadioButton("female");
        RadioButton r3 = new RadioButton("others");
    // add label

    r. getChildren().add(l);
    r. getChildren().add(r1);
    r. getChildren().add(r2);
    r. getChildren().add(r3);
How well did you know this?
1
Not at all
2
3
4
5
Perfectly