Professional Documents
Culture Documents
Xi Practical File
Xi Practical File
Xi Practical File
The top right part of the dialog changes according to the choice made for
the hyperlink category in the left panel. A full description of all the choices
and their interactions is beyond the scope of this chapter. Here is a
summary of the most common choices.
For an Internet hyperlink, choose the type of hyperlink (Web, FTP, or
Telnet), and enter the required web address (URL).
For a Mail and News hyperlink, specify whether it is a mail or news
link, the receiver’s address, and for email, also the subject.
For a Document hyperlink, specify the document path (the Open File
button opens a file browser) or leave this blank if you want to link to
a target in the same document. Optionally specify the target in the
document (for example a specific slide). Click on the Target in
Document icon to open the Navigator where you can select the
target; or if you know the name of the target, you can type it into the
box.
For a New Document hyperlink, specify whether to edit the newly
created document immediately (Edit now) or just create it (Edit
later), enter the file name, and select the type of document to create
(text, spreadsheet, and so on). Click the Select Path button to open a
file browser and choose where to store the file.
The Further settings section in the bottom right part of the dialog is
common to all the hyperlink categories, although some choices are
more relevant to some types of links.
Set the value of Frame to determine how the hyperlink will open.
This applies to documents that open in a Web browser.
Form specifies if the link is to be presented as text or as a button. A
hyperlink button is a type of form control. See Chapter 15 of the
Writer Guide for more information.
Text specifies the text that will be visible to the user. If you do not
enter anything here, OOo uses the full URL or path as the link text.
Note that if the link is relative and you move the file, this text will not
change, though the target will.
Name is applicable to HTML documents. It specifies text that will be
added as a NAME attribute in the HTML code behind the hyperlink.
Events button : click this button to open the Assign Macro dialog
and choose a macro to run when the link is clicked.
3. What is formula? Write the various method to create the basic
formula in Calc.
Formula- It is an equation that makes calculations based on the
data in your spreadsheet. Formulas are entered into a cell in your
worksheet. They must begin with an equal sign, followed by the
addresses of the cells that will be calculated upon, with an
appropriate operand placed in between.
Creating formula using direct values.
Example : Adding data in two numbers and storing the result in cell
Step 1: In cell D6, type the equal sign (=). This informs Calc that D6
will contain a formula.
Step 2: Now type 4+5
Step 3: Press Enter Cell D6 will contain 9. You can see the formula
(=4+5) in the Input line in the formula toolbar
2. Enter Form Example 1 as the Class Name. This will be the name of
your form.
3. Enter Book as the package. This should be the name given while
creating the Project. 4. Click
4. Finish.
Netbeans creates The Form Example1 form within the application and
opens the form in the
Builder. Now we are ready to add components to our form.
Adding a Button Component to a Form
We want to add a button so follow the given steps to add a JButton to the
form:
1.In the Palette window, select the JButton component from the Swing
Controls category displayed in Figure .
2.Move the cursor over the Form. When the guidelines appear (as displayed
in Figure 5.22) indicating that the JButton is positioned in the desired
location, click to place the button. The JButton is added to the form as
displayed in Figure 5.22. Note that as soon as the button is added on the
form, a corresponding node representing the component is added to the
Inspector window.
9. Design a GUI application in Java to display a message “ Hello!
Good Morning” on clicking the jbutton.
Ans- The aim of the application is to display the meesage on the click of
a button.
21. Press the run button or F6 file to execute the code to view the output.
11. Design a GUI application to calculate the simple intrest.
Ans- The aim of the application is to accept the principal amount, rate
and time in three separate text fields and calculate the simple interest
on the click of a button.