Developing the optimal GUI

Hi all,
I am developing a program with a main window that appears at run. From there, the user can click on one of two buttons to tell the program which type of calculation he would like to perform. I am okay up to that point, no problem.
The next part of the program will have:
1. Screen where user sees a combo box and button
2. After hitting OK, user will see a larger screen that uses the combo box to determine the number of text fields the user will enter data in
3. After entering the data, different calculations will take place and different screens will display results using graphs or just text.
I was wondering, if between the different cards, would I be able to change the window size even if they went to the previous card? It would be pointless to have a combo box on a window the size 800 x 600, but 800 x 600 may be ideal for the next screen.
I've tried getPreferredSize() and had nothing but problems with it. Maybe I shouldn't use CardLayout? Or use JOptionPane for the first window, then use the cards for the rest of the program. Any ideas, suggestions, or help would be greatly appreciated.

Here is an example:
public class CopyDialog  extends JDialog implements ActionListener{
     private JTextArea dataArea= new JTextArea();
     /*Constructor*/
     public CopyDialog(JFrame parent){
          super(parent, "Copy", true);
          JButton ok = new JButton("OK");
          ok.addActionListener(this);
          JPanel buttonPanel = new JPanel();
          buttonPanel.add(ok);
          JPanel content = new JPanel(new BorderLayout());
          content.add(new JLabel("Enter data:"),
                    BorderLayout.PAGE_START);
          content.add(new JScrollPane(dataArea), BorderLayout.CENTER);
          content.add(buttonPanel, BorderLayout.PAGE_END);
          setContentPane(content);
          setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
          setSize(new Dimension(450,300));
          setLocationRelativeTo(parent);
          setVisible(true);
     public void actionPerformed(ActionEvent arg0) {
          setVisible(false);
     public List<String> getData(){
          return dataArea.getText();
}

Similar Messages

  • How develop the ITS application with R/3 tables

    Hi All,
    Can you please tell me what is the procedure to develop the ITS application
    My requirement is develop new screen with data from backend tables,
    After giving the input and clicking the submit button
    It should display details in the same screen
    For example if I give the input as purchase organization, it should display all the vendors under that purg organization.
    This is very urgent…
    Thanks in advance
    Rambabu.A

    Hi,
    I suggest to study the service /sap/bc/gui/sap/its/test/it/it00
    there is a simple example for a table control. Also useful is
    the wiki article about debugging.
    best regards
    Tobias

  • SQL Developer and Java GUI problems

    I am having a problem with all the java apps i use, including Oracle SQL Developer. When i load up SQL developer, the top of the "Connections" text is chopped off as well as all the table names in the list when I make a connection. Also the java buttons are rather large. Almost as if they have a carriage return in the text of the button.
    Its seems the gui configuration for java has been corrupted, but i cannot find where to modify those settings. I cant find anything on the internet on this. I have checked my video card settings and modified them to see if that is the issue, but it doesnt fix the problem.
    Since other java apps do the same thing, I know its a java issue, but Ive uninstalled all the JRE's and JDKs i have and reinstalled them, and I still have the problem.
    Im on an Windows XP box and running the JDK and JRE 1.5.0_09 versions. Any help would be appreciated. its very annoying to not be able to read some of the text in the java apps including sql developer due to the tops being cut off.
    I have an ATI RADEON 7000 on an DELL optiplex gx620.
    any help would be appreciated

    The first thing to try, if you haven't already, is to update your video driver.

  • Developing a JAVA GUI builder

    Hi,
    I've been a middle tier and back end developer mostly, and i've not much development on swing. By that i mean i did not get much into swing programming other than using netbeans gui designer or jdeveloper for front end user interfaces. I have a general knowledge about swing though, how to create a custom component and stuff like that.
    However, i have a personal project for which i'd really like to build a gui designer for myself. I know that i can find my through if i dig hard enough, but that means a lot of time. Yes, i can use one the existing gui builders, but this time i want to add a little bit of experience to my swing programming skills, so that i can develop tools for my own development more easily.
    Looking around, i see a lot of gui builders, some being open source, but none of them gives me the impressing of being a good example for me. Some of them (like netbeans gui building code) seems to large to examine, and not many simple examples for this seem to exist.
    In general, there appears to be a lack of guidance for this kind of development. Swing development resources are plenty, but what about a little more custimized goals like mine ?
    I want to create a simple designer with swing, but certainly this kind of task has it's tricks ? How should i represent components (txtbox, listbox, etc) on the designer ? Do i use swing components directly in the designer ? Or do i create representations of them ? What are the tips and tricks for this kind of task ?
    So, what kind of resources can i use for making this task easier for me ? Which books would be helpful ? Or any online resources for getting up to speed for creating a simple gui designer in java?
    I hope i could express myself clear enoug, and It'd be really appreciated if anyone could contribute about my next step
    Best regards

    If you actually do go about creating a visual GUi builder, 90% of your code will revolve around using the java.beans package. So you should start learning that first.
    Here is an example of how to build a visual GUI builder using the java.beans package:
    https://bean-builder.dev.java.net/guide/tutorial.html
    http://java.sun.com/j2se/1.4.2/docs/api/java/beans/package-summary.html

  • Manipulating the Oracle GUI with another program

    Hi, I have no idea where to post this question but if this is the right place, here is my problem
    I create programs to automate tasks that users perform repeatedly on a day to day basis, a lot like recording a macro in Excel. I write these programs in VB, Java or AutoHotKey depending on the situation. So, my problem is I'm not sure how to interface with the Oracle GUI, I want to be able to activate a button by sending a command not actually having to click the button. I know there is a way to do it but I just seem to be having an issue finding out how. I have tried the following options with no success
    Java Ferret
    Java Monkey
    Using Control commands (since it's a java applet there are no individual controls, the applet shows up as one whole control)
    Java Access Bridge
    The reason I'm not just accessing the Database for the information is because I make these programs for Customer Service Reps, technicians, assemblers, etc. and they do not have rights to do these things. Could someone please help me out? I have been trying to figure this out forever and I am left with having to do image searches, I take a crop of the titlebar and save it to a GIF and then I search the screen for that picture to find out if the window is open, it's not very reliable.

    Nope, this forum is for issues relating to the OTN forums/website itself.
    >
    Forum: Community Feedback and Suggestions (Do Not Post Product-Related Questions Here)
    Use this forum for feedback about OTN programs, Web site content, and systems - product-related questions will be deleted.
    >
    You may want the Application Server or Developer Tools forum (sub-forums) for your question.
    It's a little difficult to tell as you haven't specified what Oracle GUI you are referring to (web forms, client forms etc.).

  • Call SAP GUI txn from WD4A running in the SAP GUI

    I'm somewhat new to Web Dynpro and I'm trying to evaluate the use of WD4A as our main custom screen/txn platform.  I have written a simple application.  I created a transaction code that calls WDYID and launches my WD4A application in the SAP GUI. 
    Our company does a lot of "CALL TRANSACTION" in our normal dynpro development and I need to prove out that it is possible to do the same in WD4A.  I've used the following code to try and call a transaction:
      CALL METHOD lo_window_manager->create_external_window
        EXPORTING
          url           =
    'http://<host>:<port>/sap/bc/gui/sap/its/webgui?sap-client=<client>&~TRANSACTION=VA03'
         title          = 'Display Orderl'
    *    MODAL          = ABAP_FALSE
    *    HAS_MENUBAR    = ABAP_TRUE
    *    IS_RESIZABLE   = ABAP_TRUE
    *    HAS_SCROLLBARS = ABAP_TRUE
    *    HAS_STATUSBAR  = ABAP_TRUE
    *    HAS_TOOLBAR    = ABAP_TRUE
    *    HAS_LOCATION   = ABAP_TRUE
        RECEIVING
          window         = lo_wd_window.
    The problem with this is that when called from the SAP GUI, it launches a browser.  I would like for it to go directly to the WebGUI version of VA03. 
    Is this possible?

    Hi Adam,
    you should be able to suspend to an ITS call.
    - however you might fall foul of a bug - fixed in note 1255292 (Special characters not permitted for suspend/redirect)
    Not sure if this is what is causing the issue...
    Can you not pass parameters to the transaction using the CL_WDR_SAPGUI_INTEGRATION2->FIRE method?
    this is what is called by the FIRE_START_TRANSACTION method, but allows for additional parameters.(I've never used it myself so I'm not sure that it would work, but would be interesting to find out - could you let us know?)
    Cheers,
    Chris

  • I need some help to develop the action class.

    my total concept is , browse a file and upload then after i want save that file in some folder in my system with same formatte (if u browse a 1.txt file then i want to save that file same c: temp/1.txt same formate )how can i do that? i know i have to develop the code in action class but what kind of code i have to develop.
    i suceed to upload the file but i dont have the idea to save that file in my system. but i dont know how can i save my file in the c:temp folder.?
    please help me.

    The authentication is something you can do with either https (secure the transport) or with WS-Security (Secure the message). You can add that with JDeveloper by using the context menu on a webservice.
    To create a webservice:
    - specify the xsd
    - create the wsdl
    - Generate a Java webservice using JDeveloper
    - implement the class to return the content of the request.
    Regards,
    Lonneke

  • Is it possible to develop the control charts in WAD.

    Hi Gurus and Experts
    We need your suggestions to go futhure with our requirement.
    Right now KPI's are currently displayed in graphical form with the
    ability to drill down into WO's( Work orders) from the graph page. our
    new requirement is to get exactly the same set of information captured
    and presented in control chart form. This is to be an adjunct. to, not
    replace, the existing graphical set of data. Upper and lower control
    limits will be set initially by the business, and the same drill down
    functionality should be available from the control chart. The charts
    can be displayed seperately from the exisiting set of charts if this
    makes it easier.
    Can you please suggest us whether is it possible to develop the control
    charts and also have the functoinalities of the existing dashboards
    (example drill down of WO's using the control charts) in WAD or through
    viusal composer
    Waiting for your responses..
    Thanks
    Ravi...

    Hello dj_page!
    Thanks for the answer, but I know this already.
    My problem is, that the small picture in the side panel and the histogram in LR5 are bigger than in LR4.
    The two pictures are showing the difference between the versions.
    On the left hand (LR4) you can see a smaller preview and histogram than on the right hand (LR5).
    In each version you can change the size of the side panel only as small as the preview-window is.
    The pictures are also showing the smallest size of the side panel in each version.

  • My iPod Touch 4g is stuck in Apple Mode after attempting to install the Siri GUI. What can I do to restore?

    I have an 8GB, 4g iPod Touch. It has the lastest iOS on it (iOS 5). Yesterday I used Cydia to jailbreak it. I had no idea what I was doing but I followed step-by-step instuctions and it worked! Needless to say, I've messed up several times (while rebooting) and I am now a Pro!! Lol. Anyway, today, I was installing the Siri GUI software onto the iPod. It was a long and drawn out process and I'm assuming that I did it wrong. It was stuck in the black screen with the little (loading) loop. It sat there for about 30 minutes. Sometimes the loop would spin, sometimes it would just be there. Finally, I pushed the Home and Power buttons at the same time and I got the Apple Logo. And this is where I am stuck now.
    I have tried a number of things, such as:
    * Holding down the power button and hoping that the "slide to power off" screen would come up. No response.
    * Holding down the Power AND Home buttons at the same time thinking the "connect to iTunes screen" would come up. The screen just goes black and then the Apple Logo comes back up.
    * I've tried connecting to iTunes but it doesn't recognize my device. My laptop doesn't even "ding" when I plug it in. I've tried changing the USB port that I have the cord plugged into. I've tried uninstalling and reinstalling iTunes. I've restarted my computer. I've went through the Apple Support troubleshooter and dealt with the "third party conflicts".
    I'm not sure what else to do here. I realize that I probably should not be downloading, jailbreaking and attempting to 'mod' my iPod- I don't even know what DFU mode, GUI or most of the other hi-tech words mean. I am just pretty good at following directions, lol.
    Can someone please help??
    I'm using a Windows 7 OS on my laptop, not MAC.

    I suggest try getting it back to your stock iOS and forget about jailbreaking.
    http://support.apple.com/kb/TS1538
    Try a manual install (using DFU Mode), as outlined in the link below.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

  • What is the OPTIMAL version of the OS for a 2010 Mac mini?

    Searching for expert opinions on which is the optimal (not necessarily the latest) version of OS X to run on a 2.4GHz Mac mini 4,1 2010 model, built in Feb of 2011?  It's currently on Snow Leopard 10.6.8.  This is my wife's machine.
    Additionaly, if it happens to be 10.7.5, are there any considerations when attaching an external FW800 2-GB hard drive regarding partitioning the drive?
    Thanks in advance.

    Ramón G Castañeda wrote:
    Thanks for this information!
    You are welcome!
    I assume you are satisfied that the worst bugs in ML have been fixed.
    Yes, Mountain Lion runs as well as Snow Leopard.
    We're upgrading my wife's Mac mini to 4 GB and hope that will be fine for her, as she's not a Photoshop user, does not do video or play games.  I hope the ML OS is not such a resource hog that it requires the *8GB you have.
    Mountain Lion and Safari are both pretty big RAM hogs and will pretty much use the better part of 4GB. If she plans on running Mail, iTunes, iPhoto, etc. at the same time, then your going to want to fix her up with 8GB.
    For Example: besides the basic Mountain Lion processes, Safari and iTunes I'm using a little over 4GB.
    However if I open other App's like iPhoto, OpenOffice, Google Earth for example's, I can easily use 6GB+

  • Using the SAP GUI from the NW2004s SneakPreview Download

    Hello,
    does anyone else have major problems with the SAPGUI from the NW2004 SneakPreview download page?
    Im getting a runtime error when logging on:
    Runtime Errors         MESSAGE_TYPE_X                                                                 
    Date and Time          24.12.2005 00:34:11                                                                               
    Short text                                                                               
    The current application triggered a termination with a short dump.                                                                               
    What happened?                                                                               
    The current application program detected a situation which really                                
         should not occur. Therefore, a termination with a short dump was                                 
         triggered on purpose by the key word MESSAGE (type X).                                                                               
    Error analysis                                                                               
    Short text of error message:                                                                     
         Control Framework : Error processing control                                                     
         Technical information about the message:                                                         
         Message classe...... "CNDP"                                                                      
         Number.............. 006                                                                               
    Variable 1.......... " "                                                                               
    Variable 2.......... " "                                                                               
    Variable 3.......... " "                                                                               
    Variable 4.......... " "                                                                               
    Trigger Location of Runtime Error                                                                    
         Program                                 CL_GUI_CFW====================CP                         
         Include                                 CL_GUI_CFW====================CM002                      
         Row                                     23                                                       
         Module type                             (METHOD)                                                 
         Module Name                             FLUSH                                                                               

    Hello Rich,
    the sap gui from the NW2004s SneakPreview page is on patchlevel 8. The problem is when i use the latest sap gui from the service marketplace (full install!) i cant event call the gui. Getting a error when doubleclicking on the SAP Gui icon.
    'The procedure entry point 'RfcResetTraceDir' could not be located in the dynamic link library 'LIBRFC32.dll' .'
    So actually since i installed the NW2004s on my local notebook the only sap gui "working" (at least i can call it) is the one from the NW2004s Sneakpreview page but im getting this error mentioned here on all systems! not only on the NW2004s system
    regards,
    Markus

  • ACS IS WORKING, BUT NOT THE WEB GUI

    I have an ACS ver 5.4.0.46.7 running on an applicance, ACS-1121-K9. After rebooting a Win2008-controller it stopped working and someone in my Department rebooted the ACS. It looks like the authentications are working now, but I can't Access the web gui. It responds to ping and ssh. I did a show acs-config-web-Interface and the view-Interface was disabled, I enabled it but still it isn't working:
    TBGACS02/admin# show acs-config-web-interface
    migration interface is disabled
    ucp interface is disabled
    view interface is enabled
    rest interface is disabled
    TBGACS02/admin# show application status acs
    ACS role: PRIMARY
    Process 'database'                  running
    Process 'management'                running (HTTP is nonresponsive)
    Process 'runtime'                   not monitored
    Process 'adclient'                  running
    Process 'ntpd'                      running
    Process 'view-database'             running
    Process 'view-jobmanager'           Execution failed
    Process 'view-alertmanager'         running
    Process 'view-collector'            running
    Process 'view-logprocessor'         running
    I could try to reboot again but I'd prefer not if possible..

    As a basic troubleshooting we can restart the services or server completely. However if that doesn't help, then we can also review the size of /opt to ensure accumulation of view database is not causing this issue. From the logging perspective we can look at management and ade/ADE logs. 
    In Majority of cases customer reset the application configuration and restore the last good backup. This always help them resolve the issue quickly without going through the troubleshooting process. 
    HTH
    -Jatin

  • What are the latest updates in the SAP GUI patches?

    Hi All,
    Can anyone let me know what are the major updates in the SAP GUI 730.
    Any note that says this..The release note with each patch is too grainy and i cannot consolidate what are the major updates.
    We are currently on patch level 1 and SAP GUI have patch 8 released?
    Can someone kindly assist in identifying the major updates in SAP GUI 730?
    Thanks,
    Deep Desai

    Hi,
    You can see in the info section what are the new notes added in that patch.
    Please see the below screenshot for your reference.
    Regards
    Sudhir Sadhu

  • Need suggestion on Develop the Hierarchical Structure OAF page--priority

    Hi experts,
    i need to develop the hierarchical structure of OAF page, for this devlopment i need suggestions from you side.
    please find below diagram how to develop the OAF page.
    CEO
    |
    vice president vice president
    | |
    managers managers managers managers
    | | | |
    developer develoer developer developer developer
    Like that i need to develop the OAF page please give me some inputs. Is it feasible in OAF.

    CEO
    |
    vicepresident vicepresident
    |
    manager manager manager manager manager
    | | | | |
    develper developer developer developer

  • How can I go back to the optimized version of the photo after I have viewed it on my iPad?

    Hello,
    The reason why I chose the iCloud services (I'm on a 200GB plan), is that I wanted to be able to have on-demand access to my photo library and view my pictures, without having to store them on the device itself.
    Now It seems like every time I access a picture that is stored on the cloud from my iPad, the original full resolution version of it is downloaded on my device and it stays there. This can cause my iPad's storage to be full by only viewing a few of the albums that I have stored on the iCloud!
    There must be a way to go back to the optimized version of the photo after you've viewed them on your device. Can anyone please help me with that?
    Thanks very much!

    https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox
    https://support.mozilla.com/en-US/kb/Opening+PDF+files+within+Firefox

Maybe you are looking for

  • Volume keys not working on wireless keyboard

    Hi guys! My f10-11-12 keys are not working for volume purposes. I went into prefereces, keyboard, uncheck/check the "use F1, F2... blahblah" and the problem is still there. I am using a macbookpro 13" 10.6.6. By the way, if I try to do the same in th

  • DB statistics for BW DSO table

    Hello, We have performance problems with one of our DSO tables which contains 16m rec of CATS data. The ABAP program reads from the DSO table by sec.index (trace shows that the index is used) but still we get like 500k cpu and 280 iocost. I was looki

  • Problem in cforeach tag

    Hi friends, I have the following code to add array list values in to select list of HTML... I am using cforeach tag to iterate the array list but the tag is not working properly.. I am not getting any values in the select list. <%ArrayList capital =

  • I'm required to use Bluefire on my iPad to download the book but it keeps telling me that I used a different account

    The message reads: "the application is authorized with-..account. This item was originally downloaded with a different user account or Adobe ID. To continue, please add that account" I am trying to download an ebook from my university's library that

  • Why does my .vi not work when used as a sub vi

    I have a vi that produces a picture on the front panel. Displayed in the picture are solid grey levels for testing. Two grey levels are chosen inside the vi and then the picture flickers betwen the two. When I run the vi by itself it runs wonderfully