HOW TO: Create a GUI "Hello World"

 </p>
This document describes how to create and run a very simple &quot;Hello World&quot;
Java GUI app using JDeveloper. The application will have one button and one
text field. Clicking the button will populate the text field with the message,
&quot;Hello World!&quot;</p>
Creating The New Application
In this section, we will create an application with an empty frame.</p>
<ol>
[*]Choose File | New Workspace.
</li>
[*]Choose File | Save Workspace.
</li>
[*]Enter <TT>HelloGui.jws</tt> as the name for the workspace.
This creates a Workspace called HelloGui. A workspace organizes all the projects
you need to work on at one time.
</li>
[*]Choose File | New Project.
The Project Wizard opens. This wizard will help you create a new project called
HelloGui. A project contains all the files that go together in one &quot;tier&quot;--for
example, all the files belonging to a single Java Application client, or all
the files belonging to an Enterprise Java Bean. Because we are working on
a simple, one-tier application, we will only need one project in our workspace.
</li>
[*]If the Welcome page appears, click Next.
</li>
[*]On the Project Type page, in the What is the Project's Filename?
field, change the filename to <TT>HelloGui.jpr</tt>. Leave the rest of the
path the same.
</li>
[*]Select A Project containing a new... and choose Application
from the dropdown list.
</li>
[*]Click Next.
</li>
[*]On the Project Options page, in the What is the name of the project's
default package field, enter <TT>helloGui</tt>.
</li>
[*]Click Next.
</li>
[*]On the Project Information page, you can enter any information about your
project that you wish.
</li>
[*]Click Finish.
The Application Wizard opens.
</li>
[*]In the Class field, enter <TT>HelloApp</tt>.
</li>
[*]Select the New Empty Frame radio button.
</li>
[*]Click OK.
The Frame Wizard opens.
</li>
[*]In the Class field, enter <TT>HelloFrame</tt>.
</li>
[*]Click OK.
JDeveloper creates an application, <TT>HelloApp</tt>, containing an empty
frame, <TT>HelloFrame</tt>. The source code for these classes appears in the
Navigator, which is the upper left-hand pane in the JDeveloper IDE.
</li>
[*]Choose File | Save All.</li>
</ol>
Adding a Panel to the Frame
In this section, we will now add a panel to the frame. In the next section,
we will add all the other components to this panel.</p>
<ol>
[*]In the Navigator, double-click <TT>HelloFrame.java</tt>.
A viewer opens. This viewer has four tabs at the bottom:
<ul>
[*]Source, the currently active tab, which displays the source code
of the selected class</li>
[*]Design, which invokes a visual layout designer</li>
[*]Class, which invokes an editor for the class' attributes, and
can help you stay JavaBean complient</li>
[*]Doc, which displays the class' JavaDoc
</li>
</ul>
</li>
[*]Click the Design tab.
The viewer now displays a grey square, a graphical mock-up of your frame.
Also, on the right-hand side of your screen, the Property Inspector opens.
This allows you to quickly set attributes and define events for components.
</li>
[*]In the component palette (the tabbed toolbar near the top of your screen),
select the Swing Containers tab.
</li>
[*]Click the blue square (described in rollover text as <TT>JPanel</tt>) and
click on your frame to add the panel.
The Property Inspector now displays attributes of the JPanel.
</li>
[*]In the Property Inspector, click twice inside the box beside the name
field.
</li>
[*]Change the name to mainPanel.
</li>
[*]Click the box beside the layout field.
</li>
[*]Choose XYLayout.
XYLayout is an easy-to-use Layout for prototyping. Later, we will change the
layout to a more portable one.</li>
</ol>
Adding Components to the Panel
In this section, we finish laying out a prototype UI. We will add polish and
portability to the UI later.</p>
<ol>
[*]In the Component Palette, select the Swing tab.
</li>
[*]Select the <TT>JTextField</tt> component, which looks like a text field
with a cursor.
</li>
[*]In your panel, click and drag the cursor to outline the text field.
Don't worry if the text field doesn't have exactly the right size or position.
We will adjust these later.
The Property Inspector now displays attributes of the JTextField.
</li>
[*]In the Property Inspector, change the name (just as you did for the
JPanel) to <TT>displayField</tt>.
</li>
[*]Change the text to nothing (erase the value that is already there).
</li>
[*]In the Component Palette, select the <TT>JButton</tt> component, which looks
like a button being clicked.
</li>
[*]In your panel, click and drag the cursor to outline the button.
The Property Inspector now displays attributes of the JButton.
</li>
[*]In the Property Inspector, change the name and action command
to helloButton.
</li>
[*]Change the text to <TT>Say Hello!</tt>.
</li>
[*]Choose File | Save All.</li>
</ol>
Wiring Up the UI
In this section, we wire the UI so that clicking the button causes &quot;Hello
World!&quot; to display in the text field.</p>
<ol>
[*]In the Property Inspector, select the Events tab.
</li>
[*]Click the box next to the Action Performed field and press the Enter
key.
This creates a method, <TT>helloButton_actionPerformed()</tt>, which will
be invoked when the button is clicked, and displays the source code for the
method stub in the viewer.
</li>
[*]In the viewer, add the following command to the body of the method:
<TT>displayField.setText(&quot;Hello World!&quot;);</tt>
</li>
[*]Choose File | Save All.</li>
</ol>
Testing the Prototype Application
<ol>
[*]Choose Run | Run &quot;HelloApp&quot;.
Your application appears, with a blank text field and a button labeled &quot;Say
Hello!&quot;
</li>
[*]Click the button.
The text &quot;Hello World!&quot; appears in the text field.
</li>
[*]Close your application.</li>
</ol>
Refining the UI
In this section, we polish the UI so that the components have the right size
and alignment, the text in the text field shows up red, and the panel uses the
portable GridBag layout instead of the JDeveloper-specific XYLayout.</p>
<ol>
[*]In the viewer, select the Design tab.
</li>
[*]Select your text field.
</li>
[*]Drag the edges of your text field until it is the size you want.
</li>
[*]Drag the center of the text field until it is the vertical position you
want.
</li>
[*]Right-click the text field and choose Align Center.
This centers your text field horizontally in the frame.
</li>
[*]In the property inspector, click the box next to the foreground field.
</li>
[*]Click the ellipses (...).
A color editor appears.
</li>
[*]Select Red from the dropdown list.
</li>
[*]Click OK.
</li>
[*]On your frame, select your button.
</li>
[*]Drag the right edge of your button until it is the horizontal size you want.
</li>
[*]Select your text field, and multi-select your button by control-clicking
it.
</li>
[*]Right-click your button or text field.
</li>
[*]Choose Same Size Vertical.
This sets the height of all selected components to that of the first selected
component (the text field).
</li>
[*]Right-click your button or text field.
</li>
[*]Choose Align Center.
This aligns the center of all selected components to that of the first selected
component (the text field).
</li>
[*]Select your panel by clicking anywhere on the grey background in the visual
designer.
</li>
[*]In the Property Inspector, click the box beside the layout field.
</li>
[*]Select GridBagLayout from the dropdown list.
</li>
[*]Choose File | Save All.</li>
</ol>
Running the Finished Application From Within JDeveloper
<ol>
[*]Choose Run | Run &quot;HelloApp&quot;.
Your application appears, with a blank text field and a button labeled &quot;Say
Hello!&quot;
</li>
[*]Click the button.
The text &quot;Hello World!&quot; appears in the text field, in red.
</li>
[*]Close your application.</li>
</ol>
Deploying the Application to Your File System
<ol>
[*] In the Navigator, right-click <tt>HelloGui.jpr</tt> and choose New Deployment
Profile.
The Deployment Profile Wizard opens.
</li>
[*]If the Welcome page appears, click Next.
</li>
[*]On the Delivery page, select Web Application or Command-Line Application
from the dropdown list, and click Next.
</li>
[*]On the Staging Area page, in the Deployment Destination field, enter
<tt><JDeveloper>/HelloGui</tt>, where <tt><JDeveloper></tt>
is your JDeveloper root directory. Click Next.
</li>
[*]On the Project page, select all the <tt>.java</tt> files and click Next.
</li>
[*]Skip the Archive page and Applet Tags page by clicking Next on each.
</li>
[*]On the Libraries page, shuttle all libraries from the Project Libraries
list to the Deployed Libraries list, and click Next.
</li>
[*]On the Finish page, name the profile <tt>HelloGui.prf</tt>, and click Finish.
</li>
[*]When JDeveloper asks you if you want to deploy now, click Yes.</li>
</ol>
JDeveloper will archive your application files and copy this archive and all
other required libraries to <tt><JDeveloper>/HelloGui</tt>.</p>
Running the Application from the Command Line
<ol>
[*]Open a command-line prompt.
</li>
[*]Enter the following script.
Note: You may want to create a batch file containing this script. Be
sure to replace JDeveloper_Home with your JDeveloper home directory.
<pre>set __CLASSPATH_ROOT_DIR__=JDeveloper_Home\HelloGui
set CLASSPATH=&quot;%__CLASSPATH_ROOT_DIR__%\HelloGui.jar&quot;
set CLASSPATH=%CLASSPATH%;&quot;%__CLASSPATH_ROOT_DIR__%\xmlparserv2.jar&quot;
set CLASSPATH=%CLASSPATH%;&quot;%__CLASSPATH_ROOT_DIR__%\classes12.zip&quot;
set CLASSPATH=%CLASSPATH%;&quot;%__CLASSPATH_ROOT_DIR__%\jdev-rt.zip&quot;
set CLASSPATH=%CLASSPATH%;&quot;%__CLASSPATH_ROOT_DIR__%\swingall.jar&quot;
cd JDeveloper_Home\HelloGui
jre -cp %CLASSPATH% helloGui.HelloApp</pre>
</li>
[*]Your application appears, with a blank text field and a button labeled &quot;Say
Hello!&quot;
</li>
[*]Click the button.
The text &quot;Hello World!&quot; appears in the text field, in red.
</li>
[*]Close your application.</li>
</ol>
</p>
 </p>
null

Hello,
I followed your instruction step by step to make this "Hello World", but when I run it, I got message "cannot find the runable node". What do I miss here? Thanks.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Avrom Faderman ([email protected]):
</p>
This document describes how to create and run a very simple "Hello World"
Java GUI app using JDeveloper. The application will have one button and one
text field. Clicking the button will populate the text field with the message,
"Hello World!"</p>
[b]Creating The New Application
In this section, we will create an application with an empty frame.</p>
<ol>
[*]Choose File | New Workspace.
</li>
[*]Choose File | Save Workspace.
</li>
[*]Enter <TT>HelloGui.jws</tt> as the name for the workspace.
This creates a Workspace called HelloGui. A workspace organizes all the projects
you need to work on at one time.
</li>
[*]Choose File | New Project.
The Project Wizard opens. This wizard will help you create a new project called
HelloGui. A project contains all the files that go together in one "tier"--for
example, all the files belonging to a single Java Application client, or all
the files belonging to an Enterprise Java Bean. Because we are working on
a simple, one-tier application, we will only need one project in our workspace.
</li>
[*]If the Welcome page appears, click Next.
</li>
[*]On the Project Type page, in the What is the Project's Filename?
field, change the filename to <TT>HelloGui.jpr</tt>. Leave the rest of the
path the same.
</li>
[*]Select A Project containing a new... and choose Application
from the dropdown list.
</li>
[*]Click Next.
</li>
[*]On the Project Options page, in the What is the name of the project's
default package field, enter <TT>helloGui</tt>.
</li>
[*]Click Next.
</li>
[*]On the Project Information page, you can enter any information about your
project that you wish.
</li>
[*]Click Finish.
The Application Wizard opens.
</li>
[*]In the Class field, enter <TT>HelloApp</tt>.
</li>
[*]Select the New Empty Frame radio button.
</li>
[*]Click OK.
The Frame Wizard opens.
</li>
[*]In the Class field, enter <TT>HelloFrame</tt>.
</li>
[*]Click OK.
JDeveloper creates an application, <TT>HelloApp</tt>, containing an empty
frame, <TT>HelloFrame</tt>. The source code for these classes appears in the
Navigator, which is the upper left-hand pane in the JDeveloper IDE.
</li>
[*]Choose File | Save All.</li>
</ol>
Adding a Panel to the Frame
In this section, we will now add a panel to the frame. In the next section,
we will add all the other components to this panel.</p>
<ol>
[*]In the Navigator, double-click <TT>HelloFrame.java</tt>.
A viewer opens. This viewer has four tabs at the bottom:
<ul>
[*]Source, the currently active tab, which displays the source code
of the selected class</li>
[*]Design, which invokes a visual layout designer</li>
[*]Class, which invokes an editor for the class' attributes, and
can help you stay JavaBean complient</li>
[*]Doc, which displays the class' JavaDoc
</li>
</ul>
</li>
[*]Click the Design tab.
The viewer now displays a grey square, a graphical mock-up of your frame.
Also, on the right-hand side of your screen, the Property Inspector opens.
This allows you to quickly set attributes and define events for components.
</li>
[*]In the component palette (the tabbed toolbar near the top of your screen),
select the Swing Containers tab.
</li>
[*]Click the blue square (described in rollover text as <TT>JPanel</tt>) and
click on your frame to add the panel.
The Property Inspector now displays attributes of the JPanel.
</li>
[*]In the Property Inspector, click twice inside the box beside the name
field.
</li>
[*]Change the name to mainPanel.
</li>
[*]Click the box beside the layout field.
</li>
[*]Choose XYLayout.
XYLayout is an easy-to-use Layout for prototyping. Later, we will change the
layout to a more portable one.</li>
</ol>
Adding Components to the Panel
In this section, we finish laying out a prototype UI. We will add polish and
portability to the UI later.</p>
<ol>
[*]In the Component Palette, select the Swing tab.
</li>
[*]Select the <TT>JTextField</tt> component, which looks like a text field
with a cursor.
</li>
[*]In your panel, click and drag the cursor to outline the text field.
Don't worry if the text field doesn't have exactly the right size or position.
We will adjust these later.
The Property Inspector now displays attributes of the JTextField.
</li>
[*]In the Property Inspector, change the name (just as you did for the
JPanel) to <TT>displayField</tt>.
</li>
[*]Change the text to nothing (erase the value that is already there).
</li>
[*]In the Component Palette, select the <TT>JButton</tt> component, which looks
like a button being clicked.
</li>
[*]In your panel, click and drag the cursor to outline the button.
The Property Inspector now displays attributes of the JButton.
</li>
[*]In the Property Inspector, change the name and action command
to helloButton.
</li>
[*]Change the text to <TT>Say Hello!</tt>.
</li>
[*]Choose File | Save All.</li>
</ol>
Wiring Up the UI
In this section, we wire the UI so that clicking the button causes "Hello
World!" to display in the text field.</p>
<ol>
[*]In the Property Inspector, select the Events tab.
</li>
[*]Click the box next to the Action Performed field and press the Enter
key.
This creates a method, <TT>helloButton_actionPerformed()</tt>, which will
be invoked when the button is clicked, and displays the source code for the
method stub in the viewer.
</li>
[*]In the viewer, add the following command to the body of the method:
<TT>displayField.setText("Hello World!");</tt>
</li>
[*]Choose File | Save All.</li>
</ol>
Testing the Prototype Application
<ol>
[*]Choose Run | Run "HelloApp".
Your application appears, with a blank text field and a button labeled "Say
Hello!"
</li>
[*]Click the button.
The text "Hello World!" appears in the text field.
</li>
[*]Close your application.</li>
</ol>
Refining the UI
In this section, we polish the UI so that the components have the right size
and alignment, the text in the text field shows up red, and the panel uses the
portable GridBag layout instead of the JDeveloper-specific XYLayout.</p>
<ol>
[*]In the viewer, select the Design tab.
</li>
[*]Select your text field.
</li>
[*]Drag the edges of your text field until it is the size you want.
</li>
[*]Drag the center of the text field until it is the vertical position you
want.
</li>
[*]Right-click the text field and choose Align Center.
This centers your text field horizontally in the frame.
</li>
[*]In the property inspector, click the box next to the foreground field.
</li>
[*]Click the ellipses (...).
A color editor appears.
</li>
[*]Select Red from the dropdown list.
</li>
[*]Click OK.
</li>
[*]On your frame, select your button.
</li>
[*]Drag the right edge of your button until it is the horizontal size you want.
</li>
[*]Select your text field, and multi-select your button by control-clicking
it.
</li>
[*]Right-click your button or text field.
</li>
[*]Choose Same Size Vertical.
This sets the height of all selected components to that of the first selected
component (the text field).
</li>
[*]Right-click your button or text field.
</li>
[*]Choose Align Center.
This aligns the center of all selected components to that of the first selected
component (the text field).
</li>
[*]Select your panel by clicking anywhere on the grey background in the visual
designer.
</li>
[*]In the Property Inspector, click the box beside the layout field.
</li>
[*]Select GridBagLayout from the dropdown list.
</li>
[*]Choose File | Save All.</li>
</ol>
Running the Finished Application From Within JDeveloper
<ol>
[*]Choose Run | Run "HelloApp".
Your application appears, with a blank text field and a button labeled "Say
Hello!"
</li>
[*]Click the button.
The text "Hello World!" appears in the text field, in red.
</li>
[*]Close your application.</li>
</ol>
Deploying the Application to Your File System
<ol>
[*] In the Navigator, right-click <tt>HelloGui.jpr</tt> and choose New Deployment
Profile.
The Deployment Profile Wizard opens.
</li>
[*]If the Welcome page appears, click Next.
</li>
[*]On the Delivery page, select Web Application or Command-Line Application
from the dropdown list, and click Next.
</li>
[*]On the Staging Area page, in the Deployment Destination field, enter
<tt><JDeveloper>/HelloGui</tt>, where <tt><JDeveloper></tt>
is your JDeveloper root directory. Click Next.
</li>
[*]On the Project page, select all the <tt>.java</tt> files and click Next.
</li>
[*]Skip the Archive page and Applet Tags page by clicking Next on each.
</li>
[*]On the Libraries page, shuttle all libraries from the Project Libraries
list to the Deployed Libraries list, and click Next.
</li>
[*]On the Finish page, name the profile <tt>HelloGui.prf</tt>, and click Finish.
</li>
[*]When JDeveloper asks you if you want to deploy now, click Yes.</li>
</ol>
JDeveloper will archive your application files and copy this archive and all
other required libraries to <tt><JDeveloper>/HelloGui</tt>.</p>
Running the Application from the Command Line
<ol>
[*]Open a command-line prompt.
</li>
[*]Enter the following script.
Note: You may want to create a batch file containing this script. Be
sure to replace JDeveloper_Home with your JDeveloper home directory.
<pre>set __CLASSPATH_ROOT_DIR__=JDeveloper_Home\HelloGui
set CLASSPATH="%__CLASSPATH_ROOT_DIR__%\HelloGui.jar"
set CLASSPATH=%CLASSPATH%;"%__CLASSPATH_ROOT_DIR__%\xmlparserv2.jar"
set CLASSPATH=%CLASSPATH%;"%__CLASSPATH_ROOT_DIR__%\classes12.zip"
set CLASSPATH=%CLASSPATH%;"%__CLASSPATH_ROOT_DIR__%\jdev-rt.zip"
set CLASSPATH=%CLASSPATH%;"%__CLASSPATH_ROOT_DIR__%\swingall.jar"
cd JDeveloper_Home\HelloGui
jre -cp %CLASSPATH% helloGui.HelloApp</pre>
</li>
[*]Your application appears, with a blank text field and a button labeled "Say
Hello!"
</li>
[*]Click the button.
The text "Hello World!" appears in the text field, in red.
</li>
[*]Close your application.</li>
</ol>
</p>
</p><HR></BLOCKQUOTE>
null

Similar Messages

  • How to create a gui pf status and guititle in module pool programming?

    hi frnds,
    how to create a gui pf status and gui title in module pool programming?
    my problem is i created a screen and wen execute the screen by a tcode.am nt able to activate SAVE BACK EXIT CANCEL COMMANDS?.how to do this can any one explain in detail procedure?
    plz gve step by step process.

    Hi,
    For Title:In PBO...just write
    SET TITLEBAR 'ZTITLE'.
    double click on 'ZTITLE'....give whatever title u want...save it...activate...and check...reward points if useful...
    PF means FUNCTION CODE
    ex; set pf-status 'zrstatus'.
    double click on the zrstatus expand the application server ,
    at the time of execution the default menu(ie system,help),application toolbar buttons like enter,help etc and function keys(by default there will be no function keys)as are there on the normal
    will appear on the screen.
    Details:
    PF-STATUS is used to set the GUI Status of a screen, ie you can control the options on your menu bar, application toolbar, the function keys assigned to various options etc.
    Implementing the status for a screen can be done in 2 ways:
    1) Create the GUI status using the object list of the program or by using the transaction SE41. Then, assign it to the screen using SET PF-STATUS statement.
    2) Create the GUI status by means of forward navigation, ie, use the SET PF-STATUS 'XXX' statement where 'XXX' is the name of the GUI status and double click on it to create it.
    Status names can have a maximum of 20 characters.
    After assigning a GUI status to a screen, this is inherited to all subsequent screens. In order to have a different status for each of the subsequent screens, you have to set a separate status for each screen.
    In transaction SE41,
    1) Give the program name and the status name and click on the Create button.
    2) Go to 'Function keys' and expand.
    3) On top of the save icon type SAVE, on top of the back icon type BACK, on top the the exit icon type EXIT etc ie on top of all the icons that you want to use, type the respective names that you want to give.
    Whatever you have typed now becomes the function codes of these icons and can be used in your program.
    For example you have a screen 100.
    In the 'Element list' tab of the screen, give "ok_code" as the name where "OK" is the type of screen element. Activate screen.
    The flow logic for the screen looks like this:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    Create the modules STATUS_0100 and USER_COMMAND_0100 in the main program by simply double clicking on them.
    The code for these modules can be something like this:
    MODULE status_0100 OUTPUT.
    SET PF-STATUS 'Example'. "Example is the name of the GUI status
    ENDMODULE.
    MODULE user_command_0100 INPUT.
    CASE ok_code.
    WHEN 'SAVE'.
    "call a subroutine to save the data or give statements to save data.
    WHEN 'BACK'.
    LEAVE TO SCREEN 0.
    WHEN 'EXIT'.
    LEAVE PROGRAM.
    ENDCASE.
    ENDMODULE.
    Regards,
    Shiva Kumar (Reward If helpful)

  • How to create custom GUI interface for Cisco router?

                       Hello,
    I am working on a Cisco solution and I have my router configured for the solution I need. However, if a non-cisco person needs to use my solution then I think he will need a GUI interface which will have few "buttons" which when clicked will run some Cisco commands on Cisco router to make it work. Is there a way to design such GUI interface which is compatible with Cisco routers? I know Cisco has SDM, but that is too involved and detailed, which is useful only for people who know atleast a little bit about Cisco. Here I am looking at crowd who will have 0 knowledge of Cisco.
    Please let me know if something like this can be done. If yes, how and how easily?
    Thank you.

    There are lots of ways to do this - you can use SNMP or even HTTP to push or pull commands from Cisco devices. How easy it is to create a GUI depends on your programming skills. I would guess a simple web page triggering backend scripts would be the easiest way to do this.

  • How to compile a simple "Hello World" program in Java by using Netbeans

    Hi all, I am very new to java programming arena. i am trying to learn the most demanding language for the time being. To program, i always use IDE's as it makes programming experience much easier by underline the syntax errors or sometimes showing codehint. However, I am facing some problem when i use Netbeabs to compile a simple "Hello world" program. my problem is whenever i write the code and press compile button, netbeans says "main class not found". Consequently,i am becoming frustated. So, i am here in this forum to get some kind help on How i can compile java programs in Netbeans. Please help me out, otherwise i may lose my enthusiasm in Java. please help me, i m stuck

    Go to http://www.netbeans.org/
    You should find tutorials there.

  • How to Create a Gui on Pocket PC

    Greetings ALL,
    I have been using the IBM J9 on my Pocket Pc recently. And I am able to run simple java programs BUT without a GUI. SO I am looking forward to build a Gui on a Pocket PC using J9
    I searched through the forum and found no clue regarding this issue.
    I'll be thankful in advance to have information about:
    - any tool to create such a Gui on PDA
    - Steps for creating simple Gui (including button or check box)
    - which libraries I must use on my PDA to run GUIs
    - And for any code samples online
    I'll be grateful and thankful for any idea and assist,

    The PP includes a decent subset of AWT, so you can use that without installing any libraries. There's a tutorial at http://java.sun.com/developer/onlineTraining/awt/contents.html
    Just remember to close and dispose() your windows before you call System.exit(), or J9 will around and you leak memory.

  • How to Create a GUI and reuse it on a Front Panel

    I have an application that will set data multiple times (15 times). The same data options are available (repeated) but it is a simple screen that shows the same options 15 different times.
    What I want to do is create ONE panel (sub vi, or .CTL or whatever is best) that I can then populate 15 times on the same front panel.
    This way if I make changes (i.e. move a control etc..) I do it once and not 15 different times.
    How is the best way to do this?
    Thanks
    Solved!
    Go to Solution.

    MoReese wrote:
    If I understand you properly, you are wanting to update any cosmetic changes made to a control on the front panel, not transferring the data from one panel to the next.  In this case, use a Strict Type Def control to make these changes.  For updating the data, either of the other suggestions already made should work.
    If whoever posted this remebers doing so please speak up since I should give you credit...
    Strict Type defs can impose some limitations on what we can do with with property nodes but on the other hand I want them all to look the same as when I edit the type def so to get the best of both worlds...
    In control editor;
    Set control as Strict
    File >>> Apply changes
    Set control as normal type def
    save and continue as normal.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to make a simple hello world c program in xcode???

    Hello..... I've learnt the basics of c programming recently, They use code blocks (ver 10.05) in my class. Im new to Xcode.. so please can you help me?

    Go to http://www.netbeans.org/
    You should find tutorials there.

  • How to create a array of GUI components?

    Hello, everyone!
    I need help or advice how to create an GUI components array. As I remenber in VB this possible just by calling two or more buttons (for example) with the same name. The API will authomatically create an array: Buton[0], Button[1], Button[2] and so on...
    In Java it possible as well:
    JButton button[];
    button = new JButton[10];
    for ( int i = 1; i < 10; i++ ){
    button[i] = new JButton();
    ....and so on....
    But my problem is that I use Forte for Java v. 3.0 and when I using Frame Editor it does not allow me to call two components with the same name and at the same time does not allow to change the initialization code painted in blue color...
    Does anyone knows how to avoid this, or how to create GUI components array in Forte for Java API using Frame Editor or Component Inspector???
    All that I need is few buttons accessible by index ( button[1], button[2] etc.) I will apreciate any help or advise.
    Thank you in advance,
    Michael

    I tried using Forte after having used Windows notepad and found that I
    like notepad much better. If you seem to be having problems with Forte,
    you might just try writing this portion of code in a regular text editor
    and compiling it with a command line compiler. Hope this helps some.

  • How to create a text file or XML file  and add content through  code into it...

    Hi Everyone,
    How to create a text file and add content through the code to the text file eform javascript ......orelse can we create a text file in life cycle designer...
    Else say how to create a new XML file through the code and how some content like Example "Hello World".

    You can create a text file as a file attachment (data object) using the doc.createDataObject and doc.setDataObjectContents:
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.450.html
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.528.html
    You can then export the file with the doc.exportDataObject method:
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.463.html
    This won't work with Reader if it hasn't been given the file attachment usage right with LiveCycle Reader Extensions.

  • Hello World plugin works in 32-bit, does not work in 64-bit

    I created a simple "Hello World" plugin by following the instructions in Adobe's guide: Getting Started with Adobe Illustrator CC Development, which is available as a pdf here.
    The plugin works in the 32-bit version of Illustrator CS6, but I get an error message while trying to launch the 64-bit version. "Error loading plugins. HelloWorld.aip"
    How can I fix this error?

    You need to build 64 bit version of plugin. Change the configuration to x64 in your visual studio (I am assuming windows) and build. It should work fine.

  • Basic hello world application is not running in SAP hana Studio

    Hi,
    I have successfully added the SAPUI5 development toolkit on my Hana studio (ver 1.80.3) and i created the sample hello world project as per the sap Hana developer guide (SPS08) but while the run the application using   web app preview it showing a empty page.Please guide how the run the SAPUI5 application on hana studio as well as please provide some sample code to understand in a better way.
    Note : Right now i can able to run as a html but not web app preview
    Thanks
    Gopinath

    I have something similar here: How to use SAP UI5 in HANA Studio rev. 60
    Maybe it can help you.

  • How to create a container in se51

    hi,
    i have two doubts
    1. how to create a container in se51.
    2. For eg: while calling a function i click on pattern which and give the function module name it will give the function module with the exporting and the importing parameter.
    My question is how to create an object.

    Hello Preethi,
    First in the code:
    DATA container TYPE REF TO cl_gui_custom_container.
    create the custom container
        CREATE OBJECT container
                      EXPORTING container_name = 'CUSTOM'.
    Second in graphical screen painter you must build an custom control with same name:  'CUSTOM'
    An example of this is the program: RSDEMO_CUSTOM_CONTROL
    Regards.

  • How to create a tray on a dynpro? NOT Web Dynpro!

    Hi there,
    I need to know how to create a gui container which you can show and hide by clicking a button like the way you use a tray in BSP or Web Dynpro. I am working on an ABAP system 6.20
    Can anybody help me, please?
    Kind regards,
    Daniel

    Hello there,
    I have the solution of creating trays in dynpros!
    It is really easy...
    You have to define subscreens on your main dynpro. After that, create for each subscreen area 2 dynpros. One has the content (fields, etc.) and the other one is empty.
    Create a button for each of the subscreens and give them function codes. In PAI you have to check which subscreen is shown and so you can switch to the other. The gui engine will arrange them automatically and it will look like a tray!
    Regards,
    Daniel

  • How to create fancy UI in j2me

    i download J2ME polish but i can't understand how to use it.
    Urgent replay on how to create fancy GUI in J2Me

    well, read here: http://www.j2mepolish.org/documentation.html

  • Steps To execute Simple Hello world programs of struts

    Hi,
    Can u tell me how to execute the simple hello world programs in struts by using eclipse ID..
    and send me the screen shots and what all the jar files we have to copy in lib folder.

    >
    Can u tell me how to execute the simple hello world programs in struts by using eclipse ID..
    and send me the screen shots and what all the jar files we have to copy in lib folder.
    >
    No. Post the question in an Eclipse forum.

Maybe you are looking for

  • Windows users:  Does you're iPhone show up in "My Computer?"

    Hi, I was wondering why some peoples phones show up under "my computer" in Windows when they plug their phones into their pc's and others don't? For the life of me I can't get my phone to show up under there and I don't know why it doesn't show up. I

  • Rotate square and bring it to the front

    Hi, i would like to draw a square which is displayed angular before and will be then brought to the front so you see it frontal. (for example by using a JSlider). i have here a little drawing where i tried do draw what i want to do bringingToFront do

  • Location issue when logging into a store site

    When I log into a store site (Walmart, Lowe's, etc), using my iBook G4, the store locator thinks I am up in Maine, so I change the locator to my home town.  And the next time I log in, I am back to the Maine location.   Is there a system profile item

  • HP Designjet Z3200ps Constantly on "Pause" and Driver Issue

    Hello. I have a Z3200ps 44-inch, which goes to "Pause" all the time and doesn't allow to print at all. Also I cannot see Paper/Quality menu in printer driver window. HP Printer Monitor shows the printer to be "Idle", which is its normal state. All th

  • ITunes ringtones disappear after update

    My ringtones which were purchased thru iTunes Store have disappeared even after doing the iOS 8.1.2 update, how do I get them back