How can i double click a box in GUI and simply open a text editor?

My case is that in my GUI frame, i have several boxes and if i double click on them, i want to open a text editor for these boxes and write the description for them then save them, and next time when i double click again, i can reopen this editor and see the description i did.
How can i do this? I'm stuck. If somebody can help me, i appreciate it very much!
Thanks a lot!

If the JOptionPane.showInputDialog is not enough then you would have to come up with your own JDialog and customize it to suit your needs.
For the saving aspect, if the items are online strings or short items, then consider using java.util.Properties for a name=value pair saving machinism. If your strings will be multiline, then consider using a textfile for each individual string set or use XML. The java.util.Properties class in JDK 1.5 provides and very simple XML storage and load feature for storing its name=value pairs.
Look into these and add dbulai's advice for a grand finish
ICE

Similar Messages

  • How can I double-click a file to open it in default app in my Visual Studio project without creating an installer?

    I have an app with code to open a file by double-clicking on it. The app in my Visual Studio project file should start automatically and then open the file automatically. I double-click on the file, then look for the app in my solution folder (I choose the
    .exe in the Debug folder). Am I choosing the correct .exe file?
    What I'm trying to do is test some code I wrote that will open the associated file type when I double click on it, as opposed to creating an installer, installing the app and then double-clicking on the file to see if it will open in the associated app automatically.

    Hi dudefromthebronx,
    Yes, I think you could doubt click the .exe file in your local machine.
    Of course, maybe you could get it in Bin\Debug or Bin\Release folder, it is related to the current project settings.
    But we would know some differences between them:
    http://stackoverflow.com/questions/11600162/difference-between-bin-debug-and-bin-release
    https://social.msdn.microsoft.com/Forums/en-US/0cde96e6-8dd8-4aa9-adcf-d7f45da13b66/debug-bin-release-folders?forum=vbide
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Firefox will not run - double click on icon, select icon and run/open, opening via start menu are all dead

    Problem started yesterday (9/28). While in Firefox, bookmarks stopped working. Closed out FF and tried to reopen the program, and nothing causes FF to launch. Tried double clicking on the desktop icon, single click on the bottom status bar (on XP), right click on icon to open or run, trying via Start -> All Programs -> Mozilla and neither regular or safe mode would launch. Only thing that seems to fix the problem is a full restart of the computer. Tried downloading the newest version via Chrome. When I clicked to run the install, kept getting a message to close all FF windows, even though there were no FF windows open.

    Check that you do not run Firefox as Administrator.
    Right-click the Firefox desktop shortcut and choose "Properties".<br />
    Make sure that all items are deselected in the "Compatibility" tab of the Properties window.
    * Privilege Level: "Run this program as Administrator" should not be selected
    * "Run this program in compatibility mode for:" should not be selected
    Also check the Properties of the firefox.exe program in the Firefox program directory.
    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    * https://support.mozilla.com/kb/Server+not+found
    * https://support.mozilla.com/kb/Firewalls

  • The font i used in my KEYNOTE presentation is not available when you upload it to the cloud.  So, now my  text boxes are all messed up.  How can I select ALL font boxes of presentation and change (at least) the font style?

    I have a large presentation that I need to access from the cloud THIS SATURDAY.  Now, after uploading from my iMac to Cloud, the font is all messed up because the font I selected on my mac is NOT available on the Keynote Cloud....so capitalization is wrong, inconsistent, etc.
    Is there a quick way to select all text and change the style?  Help..I am running out of time!

    What's the URL of the page?
    In the mean time clear the cache and reload the page.

  • How to avoid double-click to click-box

    Hello,
    until now I did not find a solution for this problem:
    I have created a training course for a specific application, and in this coure are some click boxes on which the user should click. On many click boxes should the user click only once but if he double-click the click box, in real application nothing happens. There is only one way to succes the action - one click. But in captivate when the user double-click the click box instead of one click it evaluate as success action (the click box is set only to one click, double-click checkbox is not checked).
    So my question is, is there any way how to avoid double-click in cases where the user should click only once? Or in case he double-click the click box to show failure caption?
    Many thanks.
    Lukas

    Hi all
    Interesting thread. Unfortunately, what would be needed here is some sort of a widget that would run some internal timer. Sure, you can try multiple Click Boxes and configure one with a Single Click and one with a Double Click. But the problem with that (as I see it) is regardless of what you might try, the Single Click will win out every time. Thus you would need a widget of some sort that would "listen" for a Double Click and respond appropriately.
    Tough call... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML   Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • I updated my iPad to ios 7.1, and now I can't double click on the home button to switch between apps, or to close them. What happened? How can I fix this?

    I can't double click on the home button to switch between apps, or to close them. This happened after I updated to ios 7.1

    Swiping up from the bottom of the screen with four fingers did not bring up the app preview. A single press on the home button still brings me back to the home screen, but a double press of the home button does nothing following updating to 7.1   Given that, when I added a software home button as suggested by DIAVONEX, I found that all of the apps WERE still open! So thank you DIAVONEX, and you should be careful, bobseufert, as your information was inaccurate.( I did try turning it off and that didn't change anything. ) I don't really want a software home button on my screen, but I guess I will use it until either there is another update to resolve this glitch or someone else identifies a quirky setting that I inadvertently activated...

  • How can i setup pages to automatically open when double clicked.  Currently when I double click it creates cpgz file and does not open.  The only way to open pages doc is to manually ask to open with pages.

    Currently when I double click it creates cpgz file and does not open.  The only way to open pages doc is to manually ask to open with pages.

    Hi Karen,
    Sounds like OS X has lost the association between Pages and its files.
    Start by quitting Pages, then going to Finder.
    In Finder, locate a .pages file. Click on it (once), then press command-I (eye, not one) to Get Info.
    In the Info window that opens, expand the Open With section.
    In this section, click on the pop-up menu and choose Pages (even if Pages is already shown).
    Click the Change All button to associate all files with the .pages extension with Pages.
    Close the info window.
    Double click any .pages file to check that Pages will now launch and open the file.
    Regards,
    Barry

  • How can I make the combo box turn to the value of black.

    When the show button is pressed (and not before), a filled black square should be
    displayed in the display area. The combo box (or drop down list) that enables the user to choose the colour of
    the displayed shape and the altering should take effect immediately.When the show button is pressed,
    the image should immediately revert to the black square, the combo box should show the value that
    correspond to the black.
    Now ,the problem is: after I pressed show button, the image is reverted to the black square,but I don't know
    how can I make the combo box turn to the value of black.
    Any help or hint?Thanks a lot!
    coding 1.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class test extends JFrame {
         private JPanel buttonPanel;
         private DrawPanel myPanel;
         private JButton showButton;
         private JComboBox colorComboBox;
    private boolean isShow;
         private int shape;
         private boolean isFill=true;
    private String colorNames[] = {"black", "blue", "cyan", "darkGray", "gray",
    "green", "lightgray", "magenta", "orange",
    "pink", "red", "white", "yellow"}; // color names list in ComboBox
    private Color colors[] = {Color.black, Color.blue, Color.cyan, Color.darkGray,
                              Color.gray, Color.green, Color.lightGray, Color.magenta,
                              Color.orange, Color.pink, Color.red, Color.white, Color.yellow};
         public test() {
         super("Draw Shapes");
         // creat custom drawing panel
    myPanel = new DrawPanel(); // instantiate a DrawPanel object
    myPanel.setBackground(Color.white);
         // set up showButton
    // register an event handler for showButton's ActionEvent
    showButton = new JButton ("show");
         showButton.addActionListener(
              // anonymous inner class to handle showButton events
         new ActionListener() {
                   // draw a black filled square shape after clicking showButton
         public void actionPerformed (ActionEvent event) {
                             // call DrawPanel method setShowStatus and pass an parameter
              // to decide if show the shape
         myPanel.setShowStatus(true);
                   isShow = myPanel.getShowStatus();
                                            shape = DrawPanel.SQUARE;
                        // call DrawPanel method setShape to indicate shape to draw
                                            myPanel.setShape(shape);
                        // call DrawPanel method setFill to indicate to draw a filled shape
                                            myPanel.setFill(true);
                        // call DrawPanel method draw
                                            myPanel.draw();
                             myPanel.setFill(true);
                             myPanel.setForeground(Color.black);
                   }// end anonymous inner class
         );// end call to addActionListener
    // set up colorComboBox
    // register event handlers for colorComboBox's ItemEvent
    colorComboBox = new JComboBox(colorNames);
    colorComboBox.setMaximumRowCount(5);
    colorComboBox.addItemListener(
         // anonymous inner class to handle colorComboBox events
         new ItemListener() {
         // select shape's color
         public void itemStateChanged(ItemEvent event) {
         if(event.getStateChange() == ItemEvent.SELECTED)
         // call DrawPanel method setForeground
         // and pass an element value of colors array
         myPanel.setForeground(colors[colorComboBox.getSelectedIndex()]);
    myPanel.draw();
    }// end anonymous inner class
    ); // end call to addItemListener
    // set up panel containing buttons
         buttonPanel = new JPanel();
    buttonPanel.setLayout(new GridLayout(4, 1, 0, 50));
         buttonPanel.add(showButton);
    buttonPanel.add(colorComboBox);
    JPanel radioButtonPanel = new JPanel();
    radioButtonPanel.setLayout(new GridLayout(2, 1, 0, 20));
    Container container = getContentPane();
    container.setLayout(new BorderLayout(10,10));
    container.add(myPanel, BorderLayout.CENTER);
         container.add(buttonPanel, BorderLayout.EAST);
    setSize(500, 400);
         setVisible(true);
         public static void main(String args[]) {
         test application = new test();
         application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    coding 2
    import java.awt.*;
    import javax.swing.*;
    public class DrawPanel extends JPanel {
         public final static int CIRCLE = 1, SQUARE = 2;
         private int shape;
         private boolean fill;
         private boolean showStatus;
    private int shapeSize = 100;
    private Color foreground;
         // draw a specified shape
    public void paintComponent (Graphics g){
              super.paintComponent(g);
              // find center
    int x=(getSize().width-shapeSize)/2;
              int y=(getSize().height-shapeSize)/2;
              if (shape == CIRCLE) {
         if (fill == true){
         g.setColor(foreground);
              g.fillOval(x, y, shapeSize, shapeSize);
    else{
                   g.setColor(foreground);
    g.drawOval(x, y, shapeSize, shapeSize);
              else if (shape == SQUARE){
         if (fill == true){
         g.setColor(foreground);
                        g.fillRect(x, y, shapeSize, shapeSize);
    else{
                        g.setColor(foreground);
    g.drawRect(x, y, shapeSize, shapeSize);
    // set showStatus value
    public void setShowStatus (boolean s) {
              showStatus = s;
         // return showstatus value
    public boolean getShowStatus () {
              return showStatus;
         // set fill value
    public void setFill(boolean isFill) {
              fill = isFill;
         // set shape value
    public void setShape(int shapeToDraw) {
              shape = shapeToDraw;
    // set shapeSize value
    public void setShapeSize(int newShapeSize) {
              shapeSize = newShapeSize;
    // set foreground value
    public void setForeground(Color newColor) {
              foreground = newColor;
         // repaint DrawPanel
    public void draw (){
              if(showStatus == true)
              repaint();

    Hello,
    does setSelectedIndex(int anIndex)
    do what you need?
    See Java Doc for JComboBox.

  • I can no longer create an event on iCal by double clicking on a time or date, nor can I double click on an existing event! HELP!

    I can no longer create an event on iCal by double clicking on a time or date, nor can I double click on an existing event! HELP!
    The only way I have to create an event is by using the "+" button, which is very limiting!
    I am running the latest version of Mac OS X and all the updates.
    Anyone know how I could get a proper use of my iCal ?
    Thanks

    Hi,
    If you list the steps you have taken to fix this it will help.
    Have you tried using the File > New Event menu item?
    Have you logged the user account out/ restarted the computer?
    Have you tried un-syncing any accounts synced to Calendar?
    Is there some change made to the computer that may have triggered this?
    Best wishes
    John M

  • Can't double click and add event in month view. HELP!

    For some strange reason, I can't double click to addevent on Ical Monthly view all of a sudden. Whenever I double click, nothing happens. Same thing happens on the year view.
    I can only add event now using the stupid + signs, or go into daily or weekly view. HELP!

    I have this problem too.  Just started today all of a sudden.  When I am in iCal on my Macbook, I double click - like I have been doing since ical was invented - and nothing happens, other than a quick "updating" message.  I tried clicking the "+" button but all it gives me is  "quick event" to add but nothing ever shows up in my iCal calendar on my mac.   When I log into to iCal in the Cloud - lo and behold! - I see dozens and dozens of "new event" entries all over my calendar!  What is going on and how can this be corrected?  At this point my computer's ICal program is basically now useless since I am prevented from adding anything to it. 

  • How can I get the book box in preferences' general tab to show up so I can start adding books to my ipad?

    How can I get the book box in preferences' general tab to show up so I can start adding books to my ipad? I am running OSX 10.9 and Itunes version 11.1.3(8) 64 bit.  I have tried re-installing Maveriks and reinstalling Itunes but the box for books is never there when I click on Preferences' General Tab.
    I am unsure what to do.  Please help.

    There is no "book box in preferences' general".
    There is a new iBooks application that appears on Mavericks' dock.  It looks like this:
    Go there to add books from your Mac to your iPad.

  • How can I check off multiple boxes in my inbox of Yahoo mail?

    How can I check off multiple boxes in my inbox of Yahoo mail? I think I've tried every possible keystroke combination. Using MacBook Pro OS10.8.2

    I'm trying to select a lot of emails to delete, not all of them and not necessarily all in order. On my older mac I think it was shift click on any of the check boxes I was going to delete. So far I haven't found any combination that works. I did try control click and option click.

  • How to handle double click in a table control?

    Hi,
    Can any one let me how to handle double click event in a table control in dialog programming?
    here i need to navigate to another screen when user double click on the table contols (emp number column).
    thanks in advance,
    PrasadBabu.

    to define double click in your table controlwhich is similar to 'PICK' function. Enable F2 in PF-status for this
    Table Control Question
    Check the above thread which was posted recently on SDN, please award points if found helpful

  • How to handle double click event in a text control

    Hi,
       Will u please send me information on handling double click events inside text control and also about locking and unlocking of DB tables for updation.
    Regards,
    Praba.

    Hi Prabhavathi,
    Here is how you handle double click events in Textedit control.
    1)Create a custom control in screen (say TEXT_CONTROL)
    2)In main program,
    a) Declarations:
    data: obj type ref to cl_gui_custiom_control.
          text type ref to cl_gui_textedit.
    b) Create the instance of custom container
    c) Create the instance of textedit control.
    3)Now to handle double click events , create a local class as follows.
    class shail_event definition.
    public section.
    methods:
    handle_doubleclick for event dblclick of cl_gui_textedit .
    endclass.
    class shail_event implementation.
    method handle_doubleclick .
    here do the coding for handling the double click.
    endmethod.
    endclass.
    4) Create an instance of the handler class(ie.ZSHAIL_EVENT).Let it be named hand.
    5) Define varibles for event.
    DATA: i_events TYPE cntl_simple_events,
          wa_events TYPE cntl_simple_event.
    SET HANDLER hand->handle_doubleclick for text.
    wa_events-eventid = cl_gui_textedit=>event_double_click.
    wa_events-appl_event = 'X'. "This is an application event
    APPEND wa_events TO i_events.
    6)
        CALL METHOD texte->set_registered_events
          EXPORTING
            events                    = i_events
          EXCEPTIONS
            cntl_error                = 1
            cntl_system_error         = 2
            illegal_event_combination = 3
            OTHERS                    = 4.
        IF sy-subrc <> 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    These are the basic steps needed for handling events in Textedit control.You can go to SE24 and type CL_GUI_TEXTEDIT to find the associated events of the class.
    If you want the program, kindly send your mail-id so that I can mail it to you.
    Regards,
    Sylendra.

  • Is it possible and if so how can I right click on the on screen touch keyboard

    Is it possible and if so how can I right click on the on screen touch keyboard.

    No it not design for that. I just tried it. Left click only. I recomend that you do not mess with setting with in the software it self you may end up causing the keyboard to malfunction and crashing your computer.I all so just double check our computers help and support On screen keyboard settings. There was no option given for switching the mouse clicker.  Just sticky keys and short cuts are listed. Sorry I hope this answered your question. I would all so not recomend trying to install other software you may find on switching key board setting unless it came from HP company design especially use on these types of computers. You may end up destroying your hard drive and computer all together.

Maybe you are looking for

  • Apple TV - iTunes Store Password

    My Apple TV continues to request my password, even though it's correct. What do do?

  • 32 pin connector? 30 pin connector??

    Hello everybody~! I am a new comer to use iPod. I found that there are 30 pin & 32 pin connector/docking. What is/are the difference?? And anyone knows the pin connection of 32 pin one? (I can found 30 pin only in the internet.) And I found that some

  • How to retrieve data from cluster

    Hi,     Can any body tell how to get the basic salary of an employee  using cluster.      I am doing a EPF/ETF calculation in which I need to get the basic salary of the employee for a particular month.I am new to HR abap.Kindly provide some sample c

  • BerkeleyDB + Tomcat + large number of databases.

    Hi all, for my bioinformatics project, I'd like to transform a large number of SQL databases (see http://hgdownload.cse.ucsc.edu/goldenPath/hg18/database/ ) to a set of read only BerkeleyDB JE databases. In my web application , the Environment would

  • Clear the Prompt values in dashboard page

    Hi Experts, In our Dashboard page has 5 different table view report with Prompt option for each reports and clear filters option, when I click the any clear filter option it affect all the (5) prompts. But I want to clear for each prompts separately,