Creating a DB2 � GUI

Hi,
I was hopping that someone with some DB2 experience might be able to give me a hand
What I have right now is a script, using a bat. And .cmd file to do a DB2 export � import process. I have to download a DB that is on the mainframe to a laptop. What I want to do is create a GUI, so that the client can monitor the process (the black command window is not very appealing). I�ve noticed that the DB2 Control Center uses a Java GUI, so there is got to be a way to do it.
So my question to you is:
How do I create such a GUI? Is the �Runtime.getRuntime();� the right way to go? Or does an API already exist (can JDBC help me do this)?
Can you give me some code examples or point me in the right direction?
Thank you in advance.
Johnny

Hi,
I was hopping that someone with some DB2 experience might be able to give me a hand
What I have right now is a script, using a bat. And .cmd file to do a DB2 export � import process. I have to download a DB that is on the mainframe to a laptop. What I want to do is create a GUI, so that the client can monitor the process (the black command window is not very appealing). I�ve noticed that the DB2 Control Center uses a Java GUI, so there is got to be a way to do it.
So my question to you is:
How do I create such a GUI? Is the �Runtime.getRuntime();� the right way to go? Or does an API already exist (can JDBC help me do this)?
Can you give me some code examples or point me in the right direction?
Thank you in advance.
Johnny

Similar Messages

  • Creating a little GUI with adding DNS record functionality

    Hi all,
    Creating a DNS record (A record) is pretty straight forward in Powershell. I wonder if somebody knows how to create a little GUI with the powershell commands in the background to create DNS records.
    For example something like a HTML form in where u can enter the DNS name, the Zone and the IPv4 address. Click Add and Powershell will add it on the background. I cannot find any good information on this when i google on it.
    Thanks!

    Hi Bennekommer,
    I‘m writing to check if the suggestions were helpful, if you have any questions, please feel free to let me know.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Where to create an applets GUI?

    Hi, i'm interested in some comments on where to create an applets GUI.
    Recently, i had to use JBuilder 7 to create an applet, and the wizard creates a jbInit() method to create the GUI and calls this method inside the applets constructor.
    Up to now, i used to build the applets GUI inside the applets init() method (as practiced by the Java Tutorial).
    Any comments on these two different approaches?
    Thanks in advance.
    Markus

    Just for the files: after reading the following paragraph in the Java Tutorial, i have decided to go with the init method:
    'The init method is useful for one-time initialization that doesn't take very long. In general, the init method should contain the code that you would normally put into a constructor. The reason applets shouldn't usually have constructors is that an applet isn't guaranteed to have a full environment until its init method is called. For example, the Applet image loading methods simply don't work inside of a applet constructor. The init method, on the other hand, is a great place to call the image loading methods, since the methods return quickly.' (Trail: Writing Applets, Lesson: Overview of Applets, Methods for Milestones)
    HTH, Markus

  • How to create good looking GUI workflows without Infopath forms

    Hi All,
    I have to create Good looking GUI without using Infopath Forms for use in workflows.
    Since Infopath support will gradually go off I want to use some other technique so that it can be used in long run.
    Please let me know a good solution.
    Regards,
    Navy

    You can use Visio to obtain nice visual flows.. for your workflow.. In 2013 you can use visual designer..
    Please refer link below..
    http://blogs.msdn.com/b/sharepointdesigner/archive/2012/10/22/introducing-the-new-visual-designer.aspx
    Nintex or K2 are good options specifically nintex if you can afford them..

  • Component integration: Control framework / create your own gui controls

    Hi,
    Does anyone know where to find documentation about creating your own gui controls, like cl_gui_picture.
    For example we would like to make a zcl_gui_movie !!!
    Kind regards
    Keld Gregersen

    Hi Keld,
    Check out /people/thomas.jung3/blog/2004/09/01/using-net-windows-controls-in-the-abap-control-framework
    And
    /people/thomas.jung3/blog/2005/05/11/using-classic-activex-controls-in-the-abap-control-framework
    I have been able to create and use my own control in the SAP GUI - but I'm still trying to figure out how to handle any events raised by that control.
    If all you need to do is use the control to display something (like a movie!) it should work...
    If you can get some form of event processing working PLEASE let me know!!!
    Cheers,
    N

  • Create a runnable GUI

    hello,
    I have a small program which only runs once. I want to create it so that the ouput appears on a GUI (swing class)
    and this should run continously till user clicks exit. so just to give u some idea the output is:
    ACLineStatus: Online
    Battery Flag: Lowthe battery capacity is at less than 33 percent
    Battery Life: 3265sec
    Battery Left: 32%
    So the program should continously run and execute my programme every 5 mins so the above infor is refreshed.
    is this possible. pls can you help me wit this. some code would be helpful. thankyou

    > {quote:title=moh_1_and_only wrote
    > the other program is also written is java. BUT do we also need to use Threads. if anyone has similar code pls post.thanks:}{quote}
    Yes you will need Threads but most of them are handled for you and you don't even know it.
    A java.util.Timer or a javax.swing.Timer is more or less a glorified Thread.  This class will be assigned an interval, lets say every 5 minutes and then you assign it an ActionListener object that dictates what will happen after every 5 minutes.
    The first thing to do is to envision what you want your GUI screen to look like and then draw it on paper.  Then look at Swing classes and create just the GUI classes and run it to see how it looks.  You can always go back and add your behavior and Timer later.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Help needed in creating Front End GUI

    Hello all,
                 Iam trying to develope a Front end Gui. Reading data from a spread sheet,  which has the following data 6 cloumn's 1) Parameter 2) Group 3) Max value 4) Min value 5) Default value 6) Value. Group is pretty much again classified in to 4-types. 
    a) Temperature group  --- Slide
    b) Switch   --- Push button
    c) Sensor group (voltage or pressure)  ---- Knobs
    d) Digital Inputs  --- Numeric Input
       From the spread sheet,for each parameter based on what type of group I should to create either a slider, or a switch or a knob or a Digital Input. And Based on 3rd and 4th column information, scale should be adjusted. 5th column should be used to set a default value and 6th column to assign a value
    to that parameter.
     Some one  pls give me any suggestion how to approach, begin with this process. Iam worried how to classify the parameters in to group's.
    -Lucky. 

    You could set up 15 to 20 controls of each type on your front panel.  You will need to work with references to each control to get and set properties since there will be no way to wire them up to any specific functions on your block diagram since which controls mean what will vary during run time.  So you would move the block diagram terminals for the 15-20 controls of each type off to the side of your diagram.
    When you go through your setup spreadsheet, you can set the visibility and front panel coordinates of each control you want to use.  For any you don't want to use, you will make them invisible.  Use property nodes to set the properties of each control.
    When you want to read from or write to a control, you will need use the reference of the particular control with a property node to get or set its value.
    This is not an easy archtitecture.  You will need to maintain arrays of references for each type of control.  You will also need to maintain a cross reference array so that you if want to access Control C (for example), you know which reference to index out which might happen to be element 1 in the array of slide references.  Perhaps control G would be element 4 of your array of knob references.
    But with good organization of your control references and perhaps some good subVI's for setting and obtaining the references so you can index them out of the appropriate array, it can be done.  I would recommend looking at Ben's Action Engine Nugget for ideas of how to store the references in a functional global variable.
    Message Edited by Ravens Fan on 07-25-2009 11:40 AM

  • Group changes when file is created in the GUI

    Hello All,
    Here is a outline of my situation. On a 10.5 or 10.6 client machine if I go to System Prefs, Accounts and click on the "+" and change to "group" and add a new group called "video" and set the GID to 264, it will create the new group.
    Then I create a new user, right click on the user and go to Advanced Options, change the UID to the number below, and change the GID to 264.
    Now if I launch the terminal and create a new file from the terminal, and then ls -la that file all is well(see below). Then I go back to the desktop and open Text Edit, create a new file and save it, the new file belongs to the wheel group. ???
    I found some info that said to get the umask to work proper I needed to create a file in /etc called launchd-user.conf and add the entry "umask 0007" to it. I did that, and now the permissions seem to work proper, just not the group.
    Am I missing a step here somewhere along the way? Any help or ideas would be great!
    Thanks
    John
    On command line (Terminal):
    Last login: Wed Oct 27 15:58:47 on ttys000
    3032973:~ jnichol2$ cd Desktop
    3032973:Desktop jnichol2$
    3032973:Desktop jnichol2$ id -a
    uid=986638623(jnichol2) gid=264(video) groups=264(video),102(com.apple.sharepoint.group.2),9001(testgroup),101(com.app le.sharepoint.group.1),20(staff)
    3032973:Desktop jnichol2$ touch . foo
    3032973:Desktop jnichol2$ ls -ld foo
    -rw-rw---- 1 jnichol2 video 0 Oct 27 16:01 foo
    Everything looks good here, but....
    Launch GUI tool, e.g. Textedit; save file “bar”
    3032973:Desktop jnichol2$ ls -la bar.rtf
    -rw-rw----@ 1 jnichol2 wheel 318 Oct 27 16:01 bar.rtf
    Notice, the permissions and group are not what we expect. I hope this helps understand the problem. Let me know if you need more info.

    Two things are going on here.
    When a new file or folder is created, the group specified is inherited from its parent folder. So if some folder "foo" has the group "video" specified, then all new files created in that folder will also get group "video". It seems like you know this already.
    The problem you are having with TextEdit is that manner in which it saves new files. TextEdit creates a temporary directory first, saves the file there, and then moves the file to its proper destination folder as a final step. This is why it isn't getting the "video" group setting applied to it - it gets the "wheel" group from the temporary folder that it's really being created in. Some other Apple apps behave this way too - Safari when saving a web page to disk, for example.
    I have filed a bug report to Apple about this a long time ago. The report I filed was listed as a "duplicate". I don't know when, if ever, this will be fixed.

  • Creating my own GUI

    I want to create a GUI out of graphic that the graphic designer in my company has made. How do I connect the image to the source code? I don't want to create a JApplet or JFrame because I only want to see the graphic, not a window around it.

    You'll need some sort of window around it, but you can remove the title bar with
    [url http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Frame.html#setUndecorated(boolean)]setUndecorated(true);
    Or, you could look into [url http://java.sun.com/docs/books/tutorial/extra/fullscreen/index.html]full-screen exclusive mode
    And you'll need to [url http://java.sun.com/docs/books/tutorial/uiswing/painting/usingImages.html]load the image somehow.
    Have fun,
    Radish21

  • How to create a DB2 database on the fly?

    Hi,
    The DB2 JDBC connection string requires a name of an existing database:
    jdbc:db2://server_name:port_number/database_name
    Is there a way to connect DB2 thru JDBC without the database name
    and then create a database afterwards?
    Thinks for any input.

    I definitely agree with this, but my small little open source app is meant for developers - and it's nice to have the ability to create databases from an environment they're familiar with (Ant). This is definitely NOT something that would be used for production. Most likely, it'll only be used for creating databases on local machines. Right now, I have support for doing it in MySQL, and I can't seem to get it to work for any other database types (db2 or postgresql), so I just tell those users to do it manually (which sucks IMO).
    Matt

  • Creating a Java GUI for a C/C++ program

    I'm tasked with creating a GUI for a multi-threaded C++ network server program that has it's main function running with a while loop that checks for keystrokes from the user. The C++ code for the loop is basically:
    while(i!='q')
    if(kbhit())
    i=getch();
    processkey(i);
    }And the processkey function performs different actions based on the key that was pressed.
    I was reading up on ways to interface between Java and C/C++ and heard of JNI, but I also found someone who suggested using the Java Robot class to send the keystrokes from my GUI to the C++ program.
    I've been trying to make a small test case application using the Robot class before trying to implement it in my larger project.
    I created a program with a JFrame with two buttons, one starts a simple C++ program that loops, waiting for keypresses and which will close when 'q' is pressed, like my main program.
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
            try {
                Runtime.getRuntime().exec("C:/Users/Administrator1/Desktop/Untitled2.exe");
                // TODO add your handling code here:
            } catch (IOException ex) {
                Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
            // TODO add your handling code here:
        }The other button creates a Robot instance and tells that robot to send a key press of 'q', which should terminate the C++ program.
    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
            try {
                Robot robot = new Robot();
                // Creates the delay of 5 sec so that you can open notepad before
                // Robot start writting
                //robot.delay(5000);
                robot.keyPress(KeyEvent.VK_Q);
            } catch (AWTException e) {
                e.printStackTrace();
        }It isn't working though. Could it be because when the program is started from my Java app, it runs in the background rather than opening in a new command prompt window? Or is Robot not the way to go, and if so, are there any examples and/or tutorials online that could help me?

    When you clicked the button, what application do you think has the focus at that point? So what do you think consumes the keystroke that you emulated? Hint: It wouldn't be the application you intended it to go to.

  • Help with where to begin creating a custom GUI?

    Links to good tutorials helpful.
    Basically I have never created a GUI for java beyond your basic text box, radio button, button etc.
    I need to create a GUI using custom images for the buttons, images etc. I kind of don't know where to begin since all I have done prior is create a GUI with functionality already present in java. I need drop down menus etc.
    Any help is appreciated.

    All of this functionality that you are mentioning is available with Swing. You can do a google search for java Swing tutorials; if you need further help, please visit the Swing forum.

  • Trying to create Netbeans Swing/GUI component

    Hello,
    I'm trying to create a GUI component from the following code. The main idea is to create a component consisting of a checkbox and a panel. The panel can contain several other swing components. By checking or unchecking the checkbox I want all by components in the panel to be enabled or disabled.
    The important thing is that this component should work in the Netbeans GUI designer. I'm using Netbeans 5.5.
    My problem is the following:
    When adding my swing component to the Netbeans swing component palette and dragging onto a new form, I cannot assign other components to the main panel of my component. Even if I use the Inspector tree to drag components to be children of my component, the mouse icon shows a denying icon.
    If I add swing components programmatically, it works.
    Can somebody give me an advice what I should change in my code to make it work with the Netbeans GUI designer?
    Below you can find the current code of my standalone component. It includes a main() method so one can give it a try.
    Many thanks in advance!
    package test.swing;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class JEnabler extends JPanel {
        private JCheckBox checkEnabler = new JCheckBox();
        private JPanel contentPane = new JPanel();
        public JEnabler() {
            super.setLayout(new BorderLayout());
            checkEnabler.setSelected(true);
            checkEnabler.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
            checkEnabler.setMargin(new Insets(0, 0, 0, 0));
            checkEnabler.setVerticalAlignment(SwingConstants.TOP);
            checkEnabler.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    checkEnablerActionPerformed(evt);
            super.addImpl(checkEnabler, BorderLayout.WEST, -1);
            super.addImpl(contentPane, BorderLayout.CENTER, -1);
        private void checkEnablerActionPerformed(ActionEvent evt) {
            Component[] list = contentPane.getComponents();
            for (int i=0; i<list.length; i++)
                list.setEnabled(checkEnabler.isSelected());
    protected void addImpl(Component comp, Object constraints, int index) {
    contentPane.add(comp, constraints, index);
    public LayoutManager getLayout() {
    return contentPane.getLayout();
    public void setLayout(LayoutManager mgr) {
    if (contentPane!=null)
    contentPane.setLayout(mgr);
    public void remove(Component comp) {
    contentPane.remove(comp);
    public void remove(int index) {
    contentPane.remove(index);
    public void removeAll() {
    contentPane.removeAll();
    public static void main(String args[]) {
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    JFrame frame = new JFrame();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JEnabler enabler = new JEnabler();
    JTextField tf = new JTextField("Test");
    enabler.add(tf);
    JButton test = new JButton("Click");
    enabler.add(test);
    frame.getContentPane().add(enabler);
    frame.pack();
    frame.setVisible(true);

    Can anyone tell me what I am missing?
    public void paintComponents(Graphics g)you're not 'missing' anything, in fact you've gained an 's'

  • How to create "hole" in GUI

    Anyone know how to create a hole in the GUI that allows you to interact with the background? Any idea where to start learning? If there's no simple solution, can anyone tell me if I might be able to use 2d graphics to draw out of the GUI in order to produce the same effect?

    It sounds like you want to actually interact with the background rather than just seeing through it with the transparency. For transparent effects, start by looking at resources like [Hacking Swing: Translucent Windows|http://www.onjava.com/pub/a/onjava/excerpt/swinghks_hack41/index.html] and [Java SE 6 Update 10|http://java.sun.com/developer/technicalArticles/javase/java6u10/]. To actually have a hole in your HMI that allows for interaction with whatever is behind the HMI is beyond anything I've seen.

  • Creating a custom GUI

    Hi all,
    I'm looking at making a touchscreen jukebox application for one of my user interface classes; Something like what the iPhone and iTouch have where you can flip through lists of albums or songs, plus the ability to drag a track from one side of the screen into the playlist and position it appropriately by dragging. The touchscreen part i'm not terribly concerned with as it will need to respond to a mouse as well and the tablet PC or touch screen should emulate that. This will require a custom interface with graphics and such.
    My question for all of you is how feasible is this project? Could I utilize libraries like the 2D ones to create this application, or would this require a ton of work. I have about 3 years experience with java, mainly small projects for course work, some command line only apps for myself, and a bit of GUI work, nothing on this scale though. The other people in my team have taken the basic Java I and II courses here, but I don't think they have much more experience than that. We have the entire semester to work on the project, so what I'm trying to do now is decide if it would be best to pursue something else or if this project is do-able in the time frame along with other classes.
    So, what are your thoughts? Is this project do-able with the technical abilities and time limits of myself and my teammates?
    If this should be posted in a different forum please either move it or let me know. Thanks!

    That book looks to be very helpful. I actually drove down to Barnes & Noble to look at it and it covers quite a bit of material. I especially liked an example they included, Aerith ( https://aerith.dev.java.net/ ). That app shows a very custom interface and overall looks very smooth.
    One of my main hesitations with this project is getting it to work as more then a simple click kind of program; I would like to be able to do stuff like click and drag a graphical representation of the track into the playlist. For example, you would press and hold on the track on the right side of the screen, and when you start to drag it towards the left it would essentially clone the little bar with the track info, change the opacity down to like 30% for a faded effect, and drag the whole thing to the playlist. How difficult do you think getting that part of the system to work would be?
    I'm wondering if we remove some of the advanced interface aspects and make it behave slightly more traditionally (or choose a simpler program to make) if it wouldn't be a more reasonable project.

Maybe you are looking for