Wanna create a gui for an app

greetz!
i wanna create a little gui for a commandline app. never done this before. does any1 know about some howto's online? i don't know much about these things at the moment, but i gotta start somewhere, and i'm not afraid to read and spend some time. things that cross my mind when thinking about creating a gui are python, c, gtk,...
any help, advice, links are very welcome! 
thanks in advance!

These should be helpful:
http://java.sun.com/docs/books/tutorial … index.html
http://java.sun.com/docs/books/tutorial … index.html
Basically, you start with a static main method, create a JFrame extension from in it, create the display, add events for buttons and components. To interface with a commandline app, you can use Runtime.getRuntime().exec(); take a look at the java api (under java.lang) for the various versions of the exec method.
You can e-mail me directly (dusty at buchuki.com) if you have questions, though for professional style advice, the forums at java.sun.com might be more effective (though perhaps not so friendly :-D)
Dusty

Similar Messages

  • Steps to create Connection pool for Oracle apps Adapter.

    Hi All,
    Could please tel me the steps to create connection pool for Oracle Apps Adapter.
    Thanks,
    Parker

    Steps are given in section "Configuring Connection Information" in Apps Adapter User guide at below link -
    http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10537/T430238T430340.htm#T464886
    Regards,
    Anuj

  • How to create apple id for mac app store without using credit card and there is no any option for payment none. please tell how to download free apps from mac app store

    how to create apple id for mac app store without using credit card and there is no any option for payment none. please tell how to download free apps from mac app store

    my problem solve by me
    first create apple id
    fill credit card details
    and complete your account creating  process.
    than go to app store or itune store
    login your acount
    click right side  - account button
    than again login for account setting
    next go to payment information and click edit button
    when u enter payment infomation
    click none button in payment method and click done button.
    than ur credit card has been removed.
    but rs. 60 will deducted in your account when u doing this process.

  • Yoga 11 - can not create an account for the App store,

    I can not create an account for the App store, I live outside of the USA and the only address option is in the USA. Can you help me
    Moderator Note: Edited subject to match content.

    Hi
    Welcome To Lenovo Community
    We are really sorry to hear about the issue you are facing,
    I have verified the Microsoft windows 8 app store has different regions listed
    And you can connect app store using an existing Microsoft account like Hotmail, msn etc.
    Please refer below link
    http://windows.microsoft.com/en-US/windows-8/explore-windows-store#1TC=t1
    Also if you can share the link or screen shot of the app store to help you further
    Do give this a try and let us know  
    Hope This Helps
    Cheers!!!
    WW Social Media
    Important Note: If you need help, post your question in the forum, and include your system type, model number and OS. Do not post your serial number.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
    Follow @LenovoForums on Twitter!
    How to send a private message? --> Check out this article.
                            English Community   Deutsche Community   Comunidad en Español

  • Creating a GUI for use on an Ethernet Network

    I'm designing a data logger to log voltage, current and temperature data on a reserve battery string while it's being charged. The logger will have the capability to be viewed remotely via Ethernet. With that said, I'd like some advice regarding the GUI for the remote PC which will be used to view the logger. Will it be easier to create the GUI using LabView or another high-level language  (Java, C++ etc)? (Note: I have some programming experience in C (though I've never written/created a GUI) and I've never used LabView).
    Solved!
    Go to Solution.

    Hi Joe1373.  In general, for a small one-off project, I would suggest you go with a language you know.
    In this case it sounds like whatever you choose you will have a learning curve, so I would recommend
    LabVIEW if that is a possibility cost-wise.  LV has a lot of built-in support for GUI development so
    you can make realtively sophisticated GUIs without a whole lot of work/learning.
    There are time-limited evaluation versions of LV available for download.  I would take a look there, especially
    the examples.  Find something a little similar to what you want to do, then change the GUI on the 
    example to more closely match your ultimate objective to get a feel for the GUI development in LV.
    This forum is a great resource with some very helpful developers, so come back with questions.
    There are also many professional developers available to assist if you have a budget or inclination
    towards that direction.
    Matt

  • Unable create Connection pool for Oracle apps Adapter.

    Hi All,
    We are trying to create a connection pool for Oracle Apps adapter in 11G SOA suite.
    However during the process getting the following error:
    An error occurred during activation of changes, please see the log for details.
    A <jndi-name> is specified for the resource adapter bean in weblogic-ra.xml, however no <resourceadapter-class> element is specified in ra.xml
    Can any one help us on this.
    Thanks
    Parker.

    Please refer section "Configuring Connection Information" at below link -
    http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10537/T430238T430340.htm#T464886
    Regards,
    Anuj

  • Using SWING to create a GUI for PC to Microcontroller connection...

    Hello,
    I am currently undertaking a project task regarding the connection of a microcontroller (uC) to a host pc. Our main task now is to create a GUI that would display information stored on the uC.
    I was just wondering if SWING will be able to accomodate the following:
    1) The uC will be hooked up either through ETHERNET LAN cable or a USB WIFI adapter. The host pc running Java will have a GUI that would be able to locate this IP address of the uC and connect to it.
    2) We have verified that a telnet connection from a pc to the uC works. We could successfully, get the necessary files needed from the uC.
    3) The contents of the files we want are just a bunch of serial numbers. We have uC run a code and store the output into a file. This file would then be transfered to the host pc.
    4) In the end, we want to send this data wirelessly, instead of using the LAN CABLE.
    My question now is would SWING be a good option in implementing this GUI. I have taken a JAVA course a 2 yeasr ago so I am still familiar with some JAVA basics but I have not delved into the networking aspects of JAVA, which I do know it has.
    I await your kind responses,
    thanks.

    Hi,
    By ?C do you mean ?C/OS-II?
    I don't know much about ?C/OS-II, I believe that you could
    make a program for that processor that would listen for connections
    on some ethernet port. Then your java program need to connect to that port
    and fetch the data.
    At the end of this article is a bit of info about sockets in ?C/OS-II.
    http://www.hardware.dibe.unige.it/Software/DynamicC/DynCUsersManual/14ucos.htm
    As pointed earlier, the GUI isn't your biggest problem.
    kari-matti

  • Somewhat new to Java -- Given the task to create a GUI for a test.

    Hello there, I am a freshman student, in a Java class; the semester is coming to an end. In our project, we were assigned three parts to complete a program, that basically hands out a test. [I believe someone else has asked questions about a similar problem before, but not towards my situation.]
    The topic I chose to work with was the GUI for the program,and I'm already hitting snags. The issue is..well, probably the fact I get sort of lost when it comes to calling other methods, or just stupid mistakes to begin with. Some of the options we're faced with that we can put into the program are, for example, creating back/next buttons so the user can scroll through given questions, a progress meter [which I have no idea how to go about], Add an answer sheet in a separate window, and some others, but if possible, I will get to those when the time is right.
    Also, a small note about the majority of the code; Most of it is from a mold that was given to us as an example in class, and the 'setUp' method came from another class. [QuizDriver] As of now, the code remains untouched, but the if loops that remain empty or rather messed up is my fault, as I hit a snag and..to be honest, I am quite lost.
    As of now, my code for the GUI is this.
    import javax.swing.*;     
    import java.awt.*;     
    import java.awt.event.*;
    public class ProjGUI implements ActionListener {     
         // class constants      
         private static final int WINDOW_WIDTH = 700; 
         private static final int WINDOW_HEIGHT = 200; 
         private static final int TEXT_WIDTH = 50;   
         private static final FlowLayout LAYOUT_STYLE =     
              new FlowLayout();          
         static Test exam = new Test("Sample Exam", "Select the correct answer for each question");
         private JFrame window = new JFrame("Project GUI: Test");     
         private JTextArea results = new JTextArea("");
         int counter;
         private JLabel QTag = new JLabel("The Current Question:");     
         private JTextField QText = new JTextField(exam.displayQuestion(0));     
         private JLabel AnsTag = new JLabel("Your Answer:");
         private JTextField AnsText = new JTextField(TEXT_WIDTH);     
         private JButton SubButton = new JButton("Submit");     
         private JButton backButton = new JButton("Back");
         private JButton advButton = new JButton("Next");
         private JButton clearButton = new JButton("Reset Answer Choice");
         // constructor      
         public ProjGUI()
              // configure GUI      
              window.setSize(WINDOW_WIDTH, WINDOW_HEIGHT);     
              window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     
              QText.setEditable(false);     
              QText.setBackground(Color.WHITE);     
              // register event listener      
              SubButton.addActionListener(this);     
              clearButton.addActionListener(this);
              backButton.addActionListener(this);
              advButton.addActionListener(this);
              // arrange components in GUI      
              window.getContentPane().setLayout(LAYOUT_STYLE);     
              window.getContentPane().add(QTag);     
              window.getContentPane().add(QText);     
              window.getContentPane().add(AnsTag);     
              window.getContentPane().add(AnsText);     
              window.getContentPane().add(SubButton);     
              window.getContentPane().add(backButton);
              window.getContentPane().add(clearButton);
              window.getContentPane().add(advButton);
              // display GUI      
              window.setVisible(true);     
         // actionPerformed(): run button action event handler
         public void actionPerformed(ActionEvent e) {     
              if (e.getActionCommand().equals("Submit"))
                   if(QText.equals(""))
                        QText = null;
                   if(e.getActionCommand().equals("Back"))
                        // Code for going back through the questions.
                   if(e.getActionCommand().equals("Next"))
                        // Code for advancing through the test
              // exam.answer(counter, ans);
              QText.setText(exam.displayQuestion(0+1));
              if (counter == exam.length())
                 exam.scoreExam(true);
                 results.setText("Your final score was " + exam.getScore() + "/" + exam.getMaxScore() + " points.");
                 results.setVisible(true);
              counter++;
         // main(): application entry point     
         public static void main(String[] args)
              setUp(exam);
              ProjGUI gui = new ProjGUI();     
         private static void setUp (Test t)
              TrueFalseQuestion x = new TrueFalseQuestion("The sky is blue.", "true", 2);
              t.addQuestion(x);
              x = new TrueFalseQuestion("The first FORTRAN compiler debuted in 1957", "true", 5);
              t.addQuestion(x);
              MultipleChoiceQuestion m = new MultipleChoiceQuestion("Which of the following is NOT a disk-scheduling algorithm?", "b", 4);
              m.addAnswerChoice("SSTF");
              m.addAnswerChoice("SJF");
              m.addAnswerChoice("FCFS");
              m.addAnswerChoice("All of the above are disk-scheduling algorithms");
              t.addQuestion(m);
               x = new TrueFalseQuestion("Spock was a Vulcan", "false", 3);
              t.addQuestion(x);
    }Feel free to tear it apart, as I am doing trying to figure out how exactly the buttons should work. Any feedback is appreciated.
    Edited by: Ereki on May 15, 2008 11:03 PM
    Edited by: Ereki on May 15, 2008 11:07 PM

    You may find java.awt.CardLayout and javax.swing.JProgressBar helpful.
    Generally if you have Swing-specific questions, you should ask on the Swing forum.

  • Creating Secondary Node for Oracle Apps

    I've got an interesting issue.
    Background -- We're running Oracle Apps 11.5.9 in an n-tier environment.
    Servers -- Running HP-UX 11i (for both DB tier, Application tier).
    Goad -- Implement MWA server. (mobile supply chain).
    We started an implementation before and it had problems. The MWA devices (wireless barcode scanners) kept on freezing and we could never find the processes to kill. The only way to fix was to restart the application tier (uncool). More testing went and we found lots of patches to apply and did so. Things seem to be working fine, but I'd like to create a secondary node JUST for the MWA devices.
    What it boils down to is creating a secondary node for Oracle Apps that ONLY the mobile devices will use. All other users will use the primary node. Once I've found that the MWA devices are working fine, then I'll load balance, but not for now.
    I'm fairly new to Oracle Apps (1 year exp -- boss just left ACK!) and I'm not certian on how to create the secondary node and make it unavailable to all other users.
    Any help is GREATLY APPRECIATED!
    Thanks in Advance!

    Hi Jeremy,
    Did you manage to solve your MWA devices (wireless barcode scanners) freezing by adding an extra node? there is a client that is experiencing the same problem, I have trive to increase the number of ports from 10200, adding 10202 & 10204 when I start the Mobile application and increasing memory from mx1024 - ms512 to mx2048 - ms1024 & all is fruitless, we rebbot our MWA everyday at night as the time goes on during the day approx 13h00 all hell break loose, slow response, freezing of barcode scanners, everything stops.
    Regards
    Sihle

  • Getting the following error while creating the model for webdynpro app.

    Plugin Name: Web Dynpro Model Editor Services
    Plugin ID  : com.sap.ide.webdynpro.service.modeleditor
    Class      :ap.ide.webdynpro.modeleditor.wizards.model.              creation.ModelDialog
    Method     : nextPressed
    Exception  : org.eclipse.swt.SWTException: Failed to  execute runnable (java.lang.NoClassDefFoundError)
    This is the error i am getting while creating the model for the webdynpro application. Can some one help ?
    Thanks & Regards
    Lalith

    hi
    This error occurs mainly due to the reason that particular plugin is not there in the NWDS.
    So please try to reinstall the NWDS or try tracing out whether that particular plugin is there or not.
    Thank,
    kris

  • Using LabView to create a GUI for Delta PLC

    Hi,
    I'm currently using a Delta PLC, programmed with the Delta WPL software, and I'd like to use LabView to create a very simple GUI which would allow the user to communicate with the PLC (basically, the PLC would be running but doing nothing til the user writes data in one of the coils). I don't know how to do that, and I don't even know if it's possible ?
    The PLC I'm using supports Modbus. I tried to use the Modbus library from LabView but I'm not sure it's useful for what I'm trying to do.
    Any idea ?
    Regards,
    Coline

    The Modbus library can certainly be used to read and write registers and coils. You just need to know the relevant details for your PLC (address, coil addresses, ASCII/RTU, etc.) and to make sure the PLC is configured to accept these commands.
    The Modbus library should have a couple of examples showing how to act as a Modbus master, which is what you want.
    Try to take over the world!

  • Create Tag cloud for web app ?

    I am creating an web app, in that i require tag clouds or tags (Not BC tags), how can i create field for it ?

    Thank you for your replies!
    What would be the best solution to create a pdf (with clickable images etc) to be embedded into a website?
    Thanks!

  • Can I create an icon for an app tab so that it is useful for the many tabs that don't generate their own?

    It's very simple. I've started using app tabs, and my first three are fine. Now I've created an app tab from my tab to the website http://www.thomasyoungcentre.org/index.html.
    However, its app tab only appears as a white page, which isn't very memorable, especially as I find that some other websites I use have the same blank app tab. So I wonder if I can make a little custom icon of some kind to identify this website for me on its app tab. Alternatively, what do I need to tell the website managers that will enable this feature for us.

    You must realize that the quality of sound has been compromised by the very fact of compression and equipment. You are never likely to experience the nature of a live event by listening on an iPod. The best solution is to get a better quality of earbuds/ earphones/ headphones to improve the playback experience. The higher quality headphones such as Bose, Sennheiser, Sony have capabilities to counter ambient interference ( Bose noise-cancelling for example), and they have a better quality speaker than the Apple earbuds. This standard issue bit of kit is more of a courtesy to iPod buyers so that they will have something right out of the box in order to listen to their music but they are not the highest audio quality. The best audio quality will cost every bit as much as, or even more than, the cost of an iPod. As for turning up the volume, that is a foolish undertaking that can have long-term consequences on your hearing. Tinnitus cannot be cured! You will live with it unto your last days.

  • How to create an icon for an app.

    Hi all, I'm new to this part of the forest. I'm trying to learn Applescript and with any language I try to teach myself, the hardest thing is where to go after the "Hello world" thing. I need something simple but useful to motivate myself. Anyway a few times I've been researching something on Safari and since my favourite in those circs is "File - New Window" I end up with 8 or so windows open. Then if I have to restart for any reason (e.g. needed the domestic power off to carry out electrical work) I want to go back to those web pages. I could of course bookmark them all or find them in Safari History, but I thought "wouldn't it be great (TM)" if I could click something and it would make a note of all those URLs then quit Safari; then later click and it would start Safari and return to those URLs. So after a bit of fooling around I've got an Applescript which does that. Just proof of concept at the moment, e.g. it doesn't test for being asked to quit Safari when it's not running or vice versa and it doesn't handle tabs (that's going to be in mark 2.0) but if anyone can assist I'd like to give it an icon other than the default applescript one. Can anyone advise please? I've tried copying and pasting images from Preview and even "mv" ing stuff around in Terminal but to no avail. (I'll put the script in a second post in case anyone's interested.

    Here's the script. It doesn't do the log file thing yet.
    set ckptFile to "Macintosh HD:Users:xxxx:Documents:safchekckpt"
    set URLlist to {}
    set logFile to "Macintosh HD:Users:xxxx:Documents:safcheklog"
    set dialog_msg to "Checkpoint Safari: this script can close Safari (non-tabbed) after noting " & ¬
    " the URLs of all open windows, or start Safari and re-open those windows. Only one list of " & ¬
    " URLs is kept so checkpointing and closing Safari loses the previous list of URLs. However " & ¬
    " a log file is kept to which each checkpoint's URL list is appended with timestamps."
    display dialog dialog_msg buttons {"start Safari", "close Safari", "Cancel"}
    set button_back to button returned of result
    if button_back = "start Safari" then
    tell application "Safari" to activate
    tell application "Safari" to close window 1
    try
    close access file ckptFile
    end try
    set f to open for access file ckptFile
    set URLlist to read f as list
    repeat with theUrl in URLlist
    tell application "Safari"
    make new document at end of documents
    set URL of document 1 to theUrl
    end tell
    end repeat
    end if
    if button_back = "close Safari" then
    tell application "Safari"
    set k to count of documents
    if k > 0 then ¬
    repeat with i from 1 to k
    set end of URLlist to URL of document i
    end repeat
    quit
    end tell
    try
    close access file ckptFile
    end try
    set g to open for access file ckptFile with write permission
    write URLlist to g as list
    close access g
    end if
    Apart from adding an icon, I would be grateful for any suggestions on where I should put the app and its file(s) [ obviuosly not in one user's Documents folder ] so that all users on the system can use it. TIA for any feedback. Terry. ( I bet someone tells me there's already an option in Safari to do this but it's just a learning exercise )

  • Create Custom Skins for Mobile Apps | ADC Presents | Adobe TV

    Developer Evangelist Piotr Walczyszyn walks you through how to create a custom SkinnableContainer Component for mobile applications using Flex and Flash Builder.
    http://adobe.ly/zdSUhM

    Piotr, are you Polish? It is a pity that you did not show how to create a background. Can I get the source somewhere? Great movie.

Maybe you are looking for

  • Change file from .tiff to .pdf?

    How do I change file from .tiff to .pdf? (I scanned in a large volume of items, and didn't realize they were not in.pdf).

  • Error while importing text file to Power Pivot via Table Import Wizard

    Hello there, I'm a rookie at handling Excel to be honest. I've been trying to import a .txt file to Excel (it contains around 14 million rows of information) but Excel won't let me since it can only handle around 1 million rows per sheet (too trouble

  • Oracle 10.2.0 and Java

    Hi All, I am experiencing a problem when executing stored procedures using oracle client 10.2.0 and retrieving a result set or return parameter. The previous version of the Oracle client does not create this problem. NOTE: I DO NOT RECEIVE THIS PROBL

  • Custom Field Searches in Acrobat possible?

    Hello, We have been given 2 projects to undertake. Project 1: Scan a number of annually published printed books to searchable (ocr) pdf format.  This isn't a problem. Project 2: The above annually published printed books are now required to be publis

  • Unable to find an entry point named 'OpsPrmAllocValCtx' in DLL 'OraOps10.dl

    .NET 2 (c#) Standalone application is failed to run on clean computer with subj application compiled on VisualStudio 2005 installed Software: .NET 2 redistribution ODAC10202Beta.exe The same application built with VS 2003 .NET 1 and installed ODAC101