Button listener help pls.

pls help.
private void EntityButtonActionPerformed(java.awt.event.ActionEvent evt) {                                            
<--------------------------------------- what should i put here? T_T
what lines should i put in order for my button to call another form that is from another file. they are already using the same package.
this is the form that i'm trying to call.
package my.dbd;
public class NewEntity extends javax.swing.JFrame {
public NewEntity() {
initComponents();
private void initComponents() {
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new NewEntity().setVisible(true);
private javax.swing.JButton CancelButton;
private javax.swing.JButton CreateButton;
private javax.swing.JLabel jLabel1;
private javax.swing.JPanel jPanel1;
private javax.swing.JTextField jTextField1;
// End of variables declaration
thanks.

1) Swing related questions should be posted in the Swing forum.
2) Use the "Code" formatting tags when posting code so the code is readable.
what lines should i put in order for my button to call another form that is from another file.How to you create and show your NewEntity frame? You created an instance of the class and set it visible.
So there is no difference showing another frame or dialog that is defined in a separate class. You simply create an instance of the class and make it visible.

Similar Messages

  • I can't install any app because my install button wont work pls help

    I can't install any app because my install button wont work pls help, what shall I do?

    - What do you mean it does not work? Could it be that the app ere not compatible with your model iPod and its iOS?
    - Try going to Settings>Store and sign out and sign back in.

  • My lockscreen did not showing me time and it lags, help PLS!  it´s only black background with unlock button and it lags when i unlocking it  pls help

    My lockscreen did not showing me time and it lags, help PLS!
    it´s only black background with unlock button and it lags when i unlocking it
    pls help

    It's not an Apple issue and Apple has nothing to do with it.
    The only way to buy an iPhone officially refurbished by Apple is to buy it from an Apple store or via Apple's website.
    Refurbished iPhones sold via other retailers are not refurbished by Apple.
    Sounds like Wireless Wave did all they could... they refunded your money.
    Your only issue is with them.  Stop getting all worked up over it.

  • Sound on my phone has gone so when someone calls me they can hear me but i cant hear them.The ticks cant be heard when you press the keyboard. I've checked the settings and they are ok. can still hear music thru headphones but not without. Any help pls.

    sound on my phone has gone so when someone calls me they can hear me but i cant hear them.The ticks cant be heard when you press the keyboard. I've checked the settings and they are ok. can still hear music thru headphones but not without. Any help pls.

    Hey shahbazfromgbr,
    Thanks for the question, and welcome to Apple Support Communities.
    I understand you are having issues with sound output on your iPhone 4S. For troubleshooting steps, the following article provides the best information:
    iPhone: Can't hear through the receiver or speakers
    http://support.apple.com/kb/TS1630
    1. Verify that there is nothing plugged in to the headset jack, including headsets, headphones, or adapters.
    2. Make sure the Ring/Silent switch is not switched to silent.
    3. While on the Home screen, adjust the volume buttons. If you see the icon below, indicating that headphones are attached, there may be debris or an object lodged in the headset jack:
    4. Check the headset jack. If there is an object lodged in the headset jack that is not easily removed, have the iPhone serviced to remove object.
    5. For Original iPhone: If there is light debris, such as lint, in the headset jack, try connecting a pair of headphones to the headset jack and then remove the headphones. Repeat this several times to remove the debris.
    6. If you have installed a protective film on the display, either ensure that the receiver is not covered or remove the film completely.
    7. Check the receiver mesh (which is on the top front of the device, above the display). If it appears blocked, use a clean, small, dry, soft-bristled brush to carefully and gently brush away any debris.
    8. If you have paired with a Bluetooth headset that is nearby, either use the headset or turn Bluetooth off (choose Settings > General > Bluetooth).
    9. Restart the iPhone.
    10. If restarting the iPhone doesn't resolve the issue, try restoring the device.
    11. If the issue persists, go to the Service Answer Center - iPhone for information on service.
    Thanks,
    Matt M.

  • HT201272 Can't restore previous purchase from old iPhone to new iPhone. It says all purchases are downloaded when it's not. No download icon on the screen, can't re-download as it says "purchased". Help pls!

    I've never really had problems on syncing one device to another. However, this time time I can't seem to restore it to the 5s. When I check iTunes it says that all purchases has been downloaded, but of course it's not. When I try to find it so maybe I can re-download it, it reflects as purchased so I can't download it anymore. Help pls...

    And you are looking in the Purchased tab in the iTunes store app on them ? On that tab you've selected Music at the top of it, then 'Not on this iPad' and 'all songs' ?
    Is that what you are seeing in the Purchased tab, or is there not a Music button at the top of it or are you not seeing anything listed there ?

  • Java.lang.NoSuchMethod: main - Help pls

    This is the code i got off a book but it seems like it's not working. I got an error which says 'java.lang.NoSuchMethod: main' Help pls...
    import java.io.*;
    import java.util.*;
    class PostfixInterpreter {
         private String postfixString, outputString;
    private boolean isOperator(char c) {
         return (c == '+' || c == '-' || c == '*' || c == '/' || c == '^' );
    private boolean isSpace(char c) {
         return (c == ' ');
    }//end isSpace
    public void interpretPostfix() {
         Stack evalStack= new Stack();
         double leftOperand, rightOperand;
         char c;
         StringTokenizer parser = new StringTokenizer(postfixString,"+-*/^ ", true);
         while (parser.hasMoreTokens()){
              String token = parser.nextToken();
              c = token.charAt(0);
              if ((token.length() == 1) && isOperator(c)) {
                   rightOperand = ((Double)evalStack.pop()).doubleValue();
                   leftOperand = ((Double)evalStack.pop()).doubleValue();
                   switch (c) {
                        case'+': evalStack.push(new Double(leftOperand+rightOperand));
                                       break;
                        case'-': evalStack.push(new Double(leftOperand-rightOperand));
                                       break;
                        case'*': evalStack.push(new Double(leftOperand*rightOperand));
                                       break;
                        case'/': evalStack.push(new Double(leftOperand/rightOperand));
                                       break;
                        case'^': evalStack.push(new Double(Math.exp(Math.log(leftOperand)*rightOperand)));
                                       break;
                        default:
                                       break;
                   }//end of switch
              }else if((token.length() == 1)&& isSpace(c)){
              }else {
                   evalStack.push(Double.valueOf(token));
              }//end if
         }//end while
    // remove final result from stack and output it
    output("value of postfix expression = " + evalStack.pop());
    }//end interpretPostfix
    private void output(String input){
         postfixString = input;
         }//end setInput
    public String getOutput(){
         return outputString;
    }//end getOutput
    }//end class PostfixInterpreter
    /*Stack class*/
    class Stack {
         private int count;
         private int capacity;
         private int capacityIncrement;
         private Object[] itemArray;
    //the following defines a no-arg constrcutor for Stack objects
    public Stack() {
         count = 0;
         capacity = 100;
         capacityIncrement = 5;
         itemArray = new Object[capacity];
         public boolean empty() {
              return (count ==0);
         public void push(Object X) {
              //if the itemArray does not have enough capacity
              //expend the itemArray by the capacity increment
                   if(count == capacity) {
                        capacity += capacityIncrement;
                        Object[] tempArray = new Object[capacity];
                        for (int i=0; i<count;i++){
                             tempArray[i] = itemArray;
                   itemArray=tempArray;
              //insert the new item X at the end of the current item sequence
              //and increase the stack's count by one
                   itemArray[count++]=X;
    public Object pop() {
         if(count==0){
              return null;
         }else{
              return itemArray[--count];
    }//end of pop()
    public Object peek() {
         if (count == 0){
              return null;
         }else{
              return itemArray[count-1];
    }//end peek()

    First, when posting code in the future, use the code /code tags. Just highlight the code and click the code. button.
    The error probably occurred when you tried to launch the class as an application by entering "java PostfixInterpreter" The java application launcher looks for a method in the PostfixInterpreter class whose signature is exactly public static void main(String[] args)(except 'args' can be any legal variable name). Since your PostfixInterpreter class doesn't have this method, you get the error. If you want this class to run, you have to include the method and code inside the method that runs the application.

  • I saw a message "cannot get mail. The connection to the server failed". Anybody can help pls?

    I saw a message "cannot get mail. The connection to the server failed". Anybody can help pls? I did try to delete the account and add back. Also tried to reset/ reboot the iPad but still effortless.

    Hi all, I finally solved the issue. Here I wish to share with you all. First, I delete my hotmail account from mail account. Secondly I reboot my ipad2 with holding sleep and home button at once untill the apple logo is appeared. Then I add back the hotmail account. Done. Hope it helps. Thank you.

  • Help pls,error 21 when i'm try'ng to do restore at iphone 3g

    help pls,error 21 when i'm try'ng to do restore at iphone 3g

    Try this, copied from http://support.apple.com/kb/TS2802
    Display shows a white screen
    Try turning iPhone off and then on again.
    If the iPhone will not turn off, try to reset it. Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until either the Apple logo or battery symbol appears. If the battery symbol appears, continue to charge iPhone until it is fully charged.
    If that doesn't work, try restoring the device.

  • I Downloaded ios 6.0.1 on iPad 3 now can't get links or images in mail, can anyone help pls.

    Can anyone help pls, I downloaded ios 6.0.1 on iPad 3 and now can no longer see images or links in e-mail?

    Try a reset:
    Hold the Sleep and Home button down for about 10 second until you see the Apple logo.

  • How to create matrix template help pls

    hi frs,
    i have generated xml file after creating matrix report in report builder.
    i want to know how to create matrix template(rtf) in word document.
    if i use wizard or insert> all fields i am not getting rtf like matrix.
    help pls
    Thanks
    Rajesh

    This issue is really becoming a problem for us. Does anyone have any examples of label templates. The label when generated automatically converts from pontrait to landscape. If you increase the size of the template then word complains about the page and margin size before printing.
    Anyone have any ideas?
    Thanks

  • My ipod touch screen is totally unresponsive and i have been using it under normal conditions. ihave tried the reset and restore but to no avail.everything works as it would normally do  on the screen.help pls????

    my ipod touch screen is totally unresponsive and i have been using it under normal conditions. ihave tried the reset and restore but to no avail.everything works as it would normally do  on the screen.help pls????

    Might want to post your question in the correct forum.  This is the iPHONE forum.

  • I have a MacBook Pro 15" laptop with Retina running OSX 10.8.5. It will not recognize that my android device (Samsung Galaxy Note3). I am using the standard USB that came out of the box to connect my device to my MAC. Deleted Kies 4 MAC. Help Pls!

    I have a MacBook Pro 15" laptop with Retina running OSX 10.8.5. It will not recognize that my android device (Samsung Galaxy Note3). I am using the standard USB that came out of the box to connect my device to my MAC. Deleted Kies 4 MAC. Help Pls!

    Dee002 wrote:
    MacBook's only have 2.0 USB ports.
    Wrong. 
    If you're not going to provide correct advice then don't repsond at all.
    http://www.apple.com/macbook-pro/specs-retina/

  • I made a mistake. i installed windows using boot camp without os x lion dvd. what should i do? help pls

    i made a mistake. i installed windows using boot camp without os x lion dvd. what should i do? help pls
    Re: can i install windows for pc on my mac or do i need the windows for mac? 

    There is no Lion DVD. Start Boot Camp Assistant and select the menu item to download the Windows Support Software.
    Read and follow the Boot Camp Installation Guide. http://manuals.info.apple.com/en_US/boot_camp_install-setup_10.7.pdf

  • I have Firefox 10.0.2. and OSX 10.6.8. and the latest PDF adobe reader, and still can not open with the browser PDF files.Can someone help,pls?Thanx

    Dear Ones,
    I have Firefox 10.0.2. and OSX 10.6.8. and the latest PDF adobe reader, and still can not open with the browser PDF files.Can someone help,pls?Thanx

    see if this is helpful : [http://support.mozilla.org/en-US/kb/Opening%20PDF%20files%20within%20Firefox Opening PDF files within Firefox]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • "Adobe Illustrator cs5 quit unexpectedly" error message. After I upgratded my imac to Mavericks I can't open Illustrater CS5. Help pls.

    "Adobe Illustrator cs5 quit unexpectedly" error message.
    After I upgrated my imac from Snow Leopard to Mavericks I can't open Illustrator CS5. (No problem with PS)
    Every opening attemp crashes. May this be possible because of third party plug-ins. (eg. Esko Artwork)
    Help pls.
    Thank you.

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    For this step, the title of the Console window should be All Messages. If it isn't, select
    SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
    View ▹ Show Log List
    from the menu bar at the top of the screen.
    In the top right corner of the Console window, there's a search box labeled Filter. Initially the words "String Matching" are shown in that box. Enter the name of the crashed application or process. For example, if iTunes crashed, you would enter "iTunes" (without the quotes.)
    Each message in the log begins with the date and time when it was entered. Select the messages from the time of the last crash, if any. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    ☞ The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    ☞ Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    In the Console window, select
    DIAGNOSTIC AND USAGE INFORMATION ▹ User Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of crash reports. The name of each report starts with the name of the process, and ends with ".crash". Select the most recent report related to the process in question. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.
    ☞ If you don't see any reports listed, but you know there was a crash, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    ☞ Please don’t post other kinds of diagnostic report—they're very long and rarely helpful.

Maybe you are looking for

  • Computer doesn't recognize my printer since upgrade

    my computer doesn't recognize my printer since upgrade to yosemite

  • [SOLVED] Black screen after grub in Virtualbox guest install

    Hi everyone, I thought I'd give Arch a try and wanted to install it as a guest VM in Virtualbox. I downloaded the 2013.11.01 release ISO (checked md5 sigs) and went to install in my Virtualbox environment. I'm currently running Gentoo as the host (64

  • Can't use encoder from Premiere to encode an mpg

    Okay, this is a big problem as I'm on a really tight deadline.  Does anyone have any solutions?  I am a fairly new Premiere user, about 4 months.  Is there any fix for the encoder?  I tried the reainstall, changing the file name to lower case with no

  • Ipod touch update problem :(

    Whenever I try to update my ipod touch with the newest update , I receive an error message saying my network timed out could not complete download I have no idea what to do it constantly says the same thing. It let me update itunes to the newest vers

  • Command line arguments to a string

    I run a script on CLI with n number of parameters like this... <pre>bash myScript one two three four</pre> How can I get within the script a string represented as "onetwo+threefour"