Pressing enter instead of clicking on a button

Hey all, this is rather simple but the search term 'enter' is very common so i'm having a hard time searching for my solution!
I'm basically writing a search program that finds customers, at the moment I have a screen where the user types in a name then clicks on a button I have which executes the search.
I'd like to be able to have it search by pressing enter as well as being able to click on the button.
I tried debugging to see what the sy-ucomm was when I pressed enter but apparently that doesn't change.
Can anyone direct me to what I should be researching to implement this?
Just a few basics to get me on my way would be great,
Thanks

Hi Mate
In your PAI okcode module you can include '/00' or 'ENTE' to capture the enter keypress. 
This will solve your problem.
Regards
Gareth

Similar Messages

  • When the printer dialog shows up is there a way to print by pressing enter instead of using the mouse?

    Right now, I have to click with the mouse: I don't have to do in in Firefox: Just press enter!

    I just tried it in Thunderbird and it worked for me.
    Try holding the shift key while you start Thunderbird to disable add-ons and see if that could be the cause.

  • When I open an email, instead of clicking on the button 'html view mode', how do I set it permanently so I won't have to click on it each time?

    How do I keep html view mode on in email, instead of clicking on it each time?

    Hi linktogen,
    In order to test this, can you please provide the webmail you are using for further testing?
    Thank you!

  • Enter key instead of clicking on the button

    Build JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923
    Hi,
    I have input text and a submit button. After I made my entry in the input text I want to press the Enter key and the action is executed.
    How can i do it??
    best regards

    We can use ADF component with out using ADF form.
    Sample
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core">
    <af:panelGroupLayout id="pgl1">
    <af:inputText label="Created User" id="itCreatedUser"
    binding="#{pageFlowScope.historyBean.itCreatedUser}"/>
    <af:commandButton text="Search" id="cbSearch" action="userDetails"
    actionListener="#{pageFlowScope.historyBean.cbSearchAL}"/>
    <af:inputText label="Label 1" id="it1"/>
    </af:panelGroupLayout>
    </jsp:root>
    Edited by: sameera.sac on Jun 29, 2011 4:33 PM

  • Windows XP crashed and Firefox 5.0 closed improperly. When I relaunched it, I mistakenly clicked New Session button instead of Restore previous session. How can I get that session back now? Thanks

    I am on Windows XP/Firefox 5.0 Computer crashed overnight closing Firefox improperly. When I relaunched I got choice to restore previous session. By mistake I clicked on Start New Session. Now I cant restore that session through Menu, relevant buttons are greyed out. I cant see any pertinent information online either. I appreciate any help. Currently I am digging through the history but for some of these tabs I dont know when I opened them (may be a while ago).

    I don't have a good sense of what is going wrong.
    Was Firefox stable in step 3 -- open with no sessionstore.js file and then exit?
    If that was stable, it might be easiest to cull the open URLs from your sessionstore.js file and re-open the most important ones manually. You will lose the ''detail'' of your session on those pages (e.g., data you had entered into a form), but if that's okay, it might be the next step.
    I found a script on mozillaZine that will extract URLs from the sessionstore.js file; I just changed the formatting of the output. To run the script:
    (1) Return to your profile folder and rename sessionstore.js to sessionstore.old again, then copy it to a convenient location
    (2) Start Firefox (it should be in a new session)
    (3) Open the following link, select all (Ctrl+a), copy (Ctrl+c) to copy the script to the clipboard: http://dev.jeffersonscher.com/sessionstore_reader.txt
    (4) Open the <s>Error Console</s> <u>Browser Console</u> (Ctrl+Shift+j), click next to <s>Code</s> <u>the caret (>>)</u> and paste, then press Enter <s>or click Evaluate</s>
    (5) A file selection window should appear. Navigate to the convenient location and open sessionstore.old from there.
    (6) As long as the file is not corrupted, a new tab should open with a list of all the URLs the script found in the file. You can save this page for future reference if desired. Also, you can close the <s>Error</s> <u>Browser</u> Console now.

  • By pressing enter key on button?

    By pressing ENTER key on key board on button(SUBMIT) how i get action perform.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class loginform {
         public static void main(String a[]) {
              loginform1 s = new loginform1();
              s.setSize(800, 600);
              s.setVisible(true);
    class loginform1 extends JFrame implements ActionListener {
         JTextField user;
         JPasswordField pass;
         JButton submit;
         public loginform1() {
              setLayout(null);
              Container c = getContentPane();
              JLabel JLabel1 = new JLabel("User Name:");
              c.add(JLabel1);
              JLabel1.setBounds(220, 205, 90, 20);
              JLabel JLabel2 = new JLabel("Password:");
              c.add(JLabel2);
              JLabel2.setBounds(220, 245, 90, 20);
              user = new JTextField();
              c.add(user);
              user.setBounds(300, 205, 130, 20);
              setVisible(true);
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        user.requestFocus();
              pass = new JPasswordField();
              c.add(pass);
              pass.setBounds(300, 245, 130, 20);
              submit = new JButton("Submit");
              c.add(submit);
              submit.setBounds(320, 290, 80, 20);
              submit.addActionListener(this);
              WindowListener l = new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(0);
              addWindowListener(l);
         public void actionPerformed(ActionEvent ae1) {
              if (ae1.getSource() == submit) {
                   String s1 = user.getText();
                   String s2 = pass.getText();
              System.out.println(s1);
              System.out.println(s2);
    }how to get that one.
    thanks in advance
    raja

    add this to loginform1's constructor
    this.getRootPane().setDefaultButton(submit);

  • Pressing PLAY instead of ENTER

    Hello,
    I created a menu with buttons. On a "normal" stand alone DVD player I can press the PLAY button to start the film, in Apples DVD Player I need to press ENTER in order to activate the button - pressing the PLAY button does not do anything.
    Is there a way to create the DVD so Apples DVD Player "understands" PLAY?

    Hi Max,
    It's kinda like Gary said, but different.
    The Apple DVD Player, as well as several set top players out there, will map the Play remote key to the "Still Off" User Operation. So, If you're in a Menu or Track with video in motion, the play remote key won't do anything because there's no still; the Apple Player's Play remote key turns into a Pause key, in that case.
    But if you're in a still Menu in Apple DVD Player, and you've enabled the Still Off User Operation for the menu (it's 'denied' by default), then pressing the play remote key will launch your button's target.
    Take care,
    Trai
    Trai Forrester
    TFDVD Research Labs
    DVD Verification, Proofing, Pre-mastering

  • RE: PRESSING ENTER KEY TO MOVE TO A NEW LINE INSTEAD OF SENDING TEXT MESSAGE ON Q5

    I'd rather use the enter key to move to a new line than to send message. I previously used this on curve 9300 and I'm frustrated right now I'm unable to figure how to move to the next line on this Q5. I thought the Q5 will be an improvement on the curve. I'll will be disappointed if there is no way about this. Can somebody help please?
    Solved!
    Go to Solution.

    Hi curio
    From Blackberry Hub, tap three dots at bottom right > Setting > Text Messages > Use enter key to send > OFF. It will make a new line if you press enter key.
    • Click Likes to appreciate those who helps you
    • If your issue solved, mark the best post in your thread as Solution

  • How to stop firefox from going to a URL your most is hovering over when you type in a URL and press enter.

    When you open a new tab and begin to type a url to visit, if your mouse is hovering over any of the suggested results when you press enter, instead of firefox going to the url you have typed, it goes to the url that the mouse was hovering over.
    Is there a way to disable this functionality as it is annoying when you are say, trying to access youtube or google, but then you goto a completely different page from your history because your mouse was hovering over a suggested result.

    @philipp:
    I restarted in safe mode with all add-ons disabled and the problem still persists. Apparently a friend also seems to have this problem.
    How to reproduce (to the best of my knowledge)
    1) click on url bar
    2) start typing part of a url which generates many results from history
    3) mouse over one of the results (usually the first as thats where the mouse is after clicking on the url bar)
    4) press enter with autofilled url in url bar
    What happens is say that i start typing "goo" for google.com, firefox will auto complete with http://google.com, but since my mouse is hovering over a historic google search result it opens what ever my mouse is hovering over even though the url bar says "http://google.com"

  • How to maintain dynamic rows with data when click on Previous button?

    Hi,
    I have 1 aspx page and divided into 3 pages using panels.Each panel has "Next" and Previous buttons
    I have created and deleted dynamic table rows when click on Add button using javascript. whenever i click on Next button it will navigate to same page of next panel.
    when i click on previous button then it goes to previous panel but whatever i have added dynamic table rows in 1st panel that got removed.
    Can u please help me for how to maintain state of dynamic table rows with entered data when click on Previous button?
    How to get dynamic table rows with entered data in previous panel when click on Previous button?
    Please find the below javascript code:
    function insertRow() {
    if (index >= 2) {
    document.getElementById('deleteRow').style.display = "inline";
    else { document.getElementById('DeleteRow').style.display = "none"; }
    var table = document.getElementById("myTable");
    var row = table.insertRow(table.rows.length);
    cell1 = row.insertCell(0);
    t1 = document.createElement("select");
    t1.options[t1.options.length] = new Option('--Select--', '0');
    t1.id = "ddlYear" + index;
    cell1.appendChild(t1);
    for (var i = 1975; i <= 2015; i++) {
    opt = document.createElement("option");
    opt.value = i;
    opt.text = i;
    t1.add(opt);
    t1.style.width = "155px";
    var cell2 = row.insertCell(1);
    t2 = document.createElement("Select");
    t2.options[t2.options.length]=new Option('--Select--','0');
    t2.options[t2.options.length]=new Option('State Board','1');
    t2.options[t2.options.length]=new Option('CBSE','2');
    t2.options[t2.options.length]=new Option('ICSE','3');
    t2.options[t2.options.length] = new Option('Others', '4');
    t2.style.width = "155px";
    t2.id = "ddlCourse" + index;
    cell2.appendChild(t2);
    var cell3 = row.insertCell(2);
    t3 = document.createElement("input");
    t3.id = "txtCity" + index;
    cell3.appendChild(t3);
    var cell4 = row.insertCell(3);
    t4 = document.createElement("input");
    t4.id = "txtInstitute" + index;
    cell4.appendChild(t4);
    var cell5 = row.insertCell(4);
    t5 = document.createElement("Select");
    t5.options[t5.options.length] = new Option('--Select--', '0');
    t5.options[t5.options.length] = new Option('English', '1');
    t5.options[t5.options.length] = new Option('Hindi', '2');
    t5.options[t5.options.length] = new Option('Telugu', '3');
    t5.options[t5.options.length] = new Option('Others', '4');
    t5.style.width = "155px";
    t5.id = "ddlMedium" + index;
    cell5.appendChild(t5);
    var cell6 = row.insertCell(5);
    t6 = document.createElement("input");
    t6.id = "txtSpecialization" + index;
    cell6.appendChild(t6);
    var cell7 = row.insertCell(6);
    t7 = document.createElement("input");
    t7.id = "txtFnl" + index;
    cell7.appendChild(t7);
    index++;
    function DeleteRow(index) {
    var table = document.getElementById("myTable");
    table.deleteRow(index);
    // if (index = 2) { alert("There is no rows added.Please add the new row"); }
    Design:
    <tr style="font-size: 12pt" id="trSecond" runat="server">
    <td colspan="3">
    <table id="myTable" width="100%" border="0">
    </table>
    <tr>
    <td colspan="3" align="right">
    <input type="button" title="Add" value="Add" onclick="insertRow();" />
    <input type="button" id="deleteRow" title="Delete" value="Delete Row" onclick="DeleteRow(this);" style="display:none" />
    </td>
    </tr>
    Thank you.

    Put the button click into an action listener and build the new frame there. The code I have below isn't exactly what you're doing (it's amazingly oversimplified), but it's probably similar enough to get your wheels turning in the right direction.
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class sample
         public static void main(String[] args)
              JFrame frame = new JFrame("Sample");
              frame.setSize(400,400);
              Container content = frame.getContentPane();
              content.setLayout(new FlowLayout());
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              final JTextField text = new JTextField(10);
              content.add(text);
              JButton button = new JButton("Send");
              content.add(button);
              frame.setVisible(true);
              button.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        JFrame myframe = new JFrame("Results");
                        myframe.setSize(200,200);
                        Container mycontent = myframe.getContentPane();
                        mycontent.setLayout(new FlowLayout());
                        String mytext = text.getText();
                        JLabel label = new JLabel();
                        label.setText(String.valueOf(mytext));
                        mycontent.add(label);
                        myframe.setVisible(true);
    }

  • Why does firefox 16.0.1 not allow me to click on buttons in the top 40mm below the banners, though i can get to them by tabbing to a buttons then press "Enter"?

    It doesn't matter what web-page I'm on, the top 40mm or so of the screen is a dead area for clicking on buttons or links. e.g. in Google I can click on a link lower down the page and get transferred to the new article - but if I were to move the item up nearer the top of the page the link would no longer operate.
    I can move to a link by repeated operation of the "Tab" key until the link or button is indicated, and then press "Enter" to use the link, but this is potentially very time-consuming if there are a lot of links on the page.
    I'm using a Toshiba Satellite L750 loaded with Windows 7, and Firefox 16.0.

    Problems with buttons and links at the top of the page not working can be caused by an extension like the Yahoo! Toolbar or a Babylon extension that extents too much downwards and covers the top part of the browser window and thus makes links and buttons in that part of the screen not clickable.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode

  • Y cant i press enter at the web broser.... i have to click search button using mouse.... ? y cant i just press enter

    Well, the new firefox is kindda coll... but the prob is, i cant press enter at the web browser... but the older version of firefox can..

    That indicates that you are using an add-on that is not compatible with Firefox 4. For details of how to troubleshoot this to find out what one is causing the problem see https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Press enter puts column break instead of line break in

    does anyone know why pressing enter puts column break instead of line break in - I loaded InDesign on my Windows 8 notebook?

    Edit > Keyboard Shortcuts... and make a new set.
    Change the Product Area dropdown to Type and Tables, then scroll down the list to Insert Break Character: Paragraph Break and then put your cursor in the new shortcut box. Press the Enter key on the numpad and change the context to Text. You'll get a warning that the shortcut is already assigned below the shortcut field, but just click the assign button.
    If you want a new shortcut for the column break, scroll back up to that one, then type in a new shortcut. You can use the ctrl, alt and shift modifier keys if you like, along with anything other than a key on the numpad.

  • ENTER instead of pressing a JButton

    Currently I add text from a JTextField into a JTextArea when I press a JButton.
    Now I want this also when I press the ENTER-button instead of clicking on the JButton.
    How does this work?

    HI,
    Hope this piece of code will help :
    yourButton.registerKeyboardAction(
    new ButtonEnterKeyListener,
    KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0, false),
    JComponent.WHEN_FOCUSED);
    * Causes any Button it is attached to to respond to the Enter Key
    * selection.
    private class ButtonEnterKeyListener implements ActionListener
    public void actionPerformed(ActionEvent event)
    Object source = event.getSource();
    if (source instanceof AbstractButton)
    AbstractButton button = (AbstractButton) source;
    if (button.isEnabled())
    button.doClick();
    Hope this helps
    --j                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Problem in custom jsp page when pressing enter button

    Hi to all,
    <pre>
    I am created a cutom jsp page. When i am clicking on a button it working fine, but if i am pressing
    Enter key it redirecting to home page and showing an exception in cosole.
    <b>Exception is </b>
    18:00:50,718 ERROR [WEBAPP] Class/Method: tcActionBase/execute encounter some problems: {1}
    java.lang.NullPointerException
    at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(Unknown Source)
    at com.thortech.xl.webclient.actions.tcActionBase.execute(Unknown Source)
    at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
    at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:110)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    at java.lang.Thread.run(Thread.java:619)
    18:00:50,718 ERROR [WEBAPP] Class/Method: tcAction/execute encounter some problems: {1}
    java.lang.NullPointerException
    at com.thortech.xl.webclient.actions.tcActionBase.execute(Unknown Source)
    at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
    at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:110)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    at java.lang.Thread.run(Thread.java:619)
    18:00:50,718 WARN [RequestProcessor] Unhandled Exception thrown: class java.lang.NullPointerException
    18:00:50,718 ERROR [[action]] Servlet.service() for servlet action threw exception
    java.lang.NullPointerException
    at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
    at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:110)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    at java.lang.Thread.run(Thread.java:619)
    </pre>
    Edited by: iceman513 on Aug 11, 2010 7:14 PM
    Edited by: iceman513 on Aug 24, 2010 10:32 AM
    Edited by: iceman513 on Aug 24, 2010 10:33 AM

    once you click a button, say, "Draw Rectangle", it should draw a rectangleYes, but you need to repaint() the component (in your case panel) to see the change.
    The error is: The method paintComponent(Grpahics) is undefined for the type ObjectThe compiler never lies. As far as your code goes, you have added a method paintComponent(...) to a class that implicitly extends Object. Perhaps you wanted to create an anonymous subclass of JPanel.JPanel panel = new JPanel() {
      public void paintComponent(Graphics g) {
        super.paintComponent(g);
        myPaint(g);
    };Note the changes in brace and semicolon placement.
    Also:
    1. You're setting a FlowLayout to a JPanel, which is anyhow the default layout manager. And when using a layout manager, setSize calls are redundant and effectively ignored.
    2. For a JFrame to be centered on the screen, setLocationRelativeTo(null) after setting the size, not before.
    3. To void visual artifacts, setVisible(true) after all other properties are set.
    It looks to me like you've been throwing together bits of code from here and there without adequate understanding. I recommend you go through the Swing tutorials linked from the topic listing page for this forum.
    db

Maybe you are looking for