How to put a little textbox in a regular applet window for user input

Hi i was just wondering if anybody knows how to draw a text box, (for user input), in a applet window and be able to put it in a specific spot, like when you draw a rectangle.
I have searched the web and have not found any answers, but i have seen projects that do this but they dont have the source code.

JTextField?

Similar Messages

  • How can I shut off all of the pop-up windows for all the Firefox updates?

    How can I shut off all of the pop-up windows for all the Firefox and Thunderbird updates?
    Apparently now Mozilla creates new versions of their browser and email apps every two weeks instead of just creating updates... I'm tired of all of the pop-up requests for these constant installation requests and all the problems that the new version installations create... I just want to use the software and be left alone.
    I can't find a way to make Firefox and Thunderbird stop with the pop-up requests for new installations... is there a way to do this or has Mozilla just got it rigged so one can't just use the software without re-installing a new version every two weeks and running in to new plugin issues and missing features every time?
    Help!
    Thanks,
    numetro

    Is it possible that her computer is infected with malware.
    Do a malware check with several malware scanning programs on the Windows computer.
    Please scan with all programs because each program detects different malware.
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender:<br>http://windows.microsoft.com/en-us/windows/using-defender
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • How to prompt for user input in Forms

    How do I prompt for user input in Forms?
    I am writing a piece of code where the user may choose, by clicking either of three buttons on an alert, to have the system assign a value to a variable, to input a value or to do neither?
    If the user chooses to input the value I want to update a set of database fields with the value.
    I have thought about showing a view where the value may be entered into a field displayed on that view. The value will be assigned to the variable by the user clicking a command button. The question I have in this case though, is whether, after the command button is clicked, control will be passed back to the code that called the view in the first place?

    Desgordon,
    This can be accomplished by displaying your message to the user using an Alert. I use 3 different Alerts (Note, Caution and Stop) in my forms and they are inherited from a central source file (such as an Object Library or a Template Form) so they can be used by all of my Forms. You can set the text of the Alert using the SET_ALERT_PROPERTY() built-in and capture what button the user presses with the SHOW_ALERT() built-in. Additionally, if you need more than one button to be displayed in an alert, you use the SET_ALERT_BUTTON_PROPERTY() built-in to rename the default button or to add up to a total of three buttons in the alert. Here's an example:
    DECLARE
       Alert_ID       ALERT;
       v_AlertType    VARCHAR2(10) := 'CAUTION';
       v_AlertTitle     VARCHAR2(25);
       v_AlertText    VARCHAR2(150);
       n_AlertButton  NUMBER;
    BEGIN
       v_AlertTitle := 'Title of Alert';
       v_AlertText := 'This is message to the user.';
       /* Code leading up to the decision point. */
       alert_id := FIND_ALERT(v_AlertType);
       /* Note: I only set the Label of Button 2 because the default button 1 label is 'OK' */
       SET_ALERT_BUTTON_PROPERTY(v_AlertType, ALERT_BUTTON2, LABEL, 'Cancel');
       SET_ALERT_PROPERTY(Alert_ID, v_AlertTitle, v_AlertText);
       n_AlertButton := SHOW_ALERT(Alert_ID);
      /* Now I can test the value of n_AlertButton for 1 or 2 to find out what button the user selected. */
      IF ( n_AlertButton = 1 ) THEN
         /* Do something, because the user selected 'OK' */
      ELSE
         /* It is assumed at this point that the user selected 'CANCEL' */
         /* Stop processing any further. */
         RAISE form_trigger_error;
      END IF;
    END:Hope this helps.
    Craig...
    -- If my response or the response of another answers your question, please mark the response accordingly. Thanks!

  • How to prompt for user input in PL/SQL

    How do I prompt for user input in PL/SQL?
    I am writing a piece of code where the user may choose, by clicking either of three buttons on an alert, to have the system assign a value to a variable, to input a value or to do neither?
    If the user chooses to input the value I want to update a set of database fields with the value.
    I have thought about showing a view where the value may be entered into a field displayed on that view. The value will be assigned to the variable by the user clicking a command button. The question I have in this case though, is whether, after the command button is clicked, control will be passed back to the code that called the view in the first place?
    Edited by: desgordon on Sep 3, 2008 10:33 AM

    desgordon wrote:
    How do I prompt for user input in PL/SQL?
    I am writing a piece of code where the user may choose, by clicking either of three buttons on an alert, to have the system assign a value to a variable, to input a value or to do neither?OK, you're doing that in Forms...
    >
    If the user chooses to input the value I want to update a set of database fields with the value.Write PL/SQL procedure for this purpose...
    >
    I have thought about showing a view where the value may be entered into a field displayed on that view. The value will be assigned to the variable by the user clicking a command button. The question I have in this case though, is whether, after the command button is clicked, control will be passed back to the code that called the view in the first place?Not clear what you mean with view?
    But if you call your procedure in that button then yes 'control will be passed back to the code'...
    Cheers!
    Edited by: Faust on Sep 3, 2008 7:57 PM
    Too slow...

  • How to handle form close event or escape key press event for user defined f

    Experts,
    Please let me know how to handle form close event or escape key press event for user defined form...
    Thanks & Regards,
    Pravin.

    Hi
    You can catch the form close event like this
    If ((pVal.FormType = 139 And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_CLOSE)) And (pVal.Before_Action = True)) Then
          Try
                   SBO_Application.SetStatusBarMessage(pVal.EventType.ToString())
          Catch ex As Exception
                    SBO_Application.SetStatusBarMessage(ex.Message)
            End Try
          End If
    Hope this helps
    Regards
    Arun

  • How do you keep a VI running while waiting for user input?

    I have a VI that:
    1.  The user enters set points.
    2.  The user starts the VI and the VI sends the set points to an external process via a serial interface.
    3.  The VI  stops running.
    4   The user waits for the external process to complete.
    5.  Repeat sequence. Go to Step 1.
    This works well except for one small problem.  Starting the VI in step 2 causes an external micro controller to reset.  During the reset it will ignore set point commands.  To get around this problem a delay has been added between when the VI opens the serial port and when the VI sends the set points to the external process   Is it possible to keep a VI running continuously in this type of application, thereby eliminating the start up and shut down of the serial interface?
    If yes, how do you keep a VI running while waiting for user input?
    Howard

    The ones for the event structure specifically. I'm posting from my phone. Look at the basic ones for user input. even a simple while loop with a boolean and a case statement would work.

  • How to put PageItems like textbox as placeholders in an image in a region?

    I have this problem that I am facing in an application that I am building.i have read your article that you presented in the oracle users conference in November 2007 “Steal the Show with Apex” but the problem comes to this.
    a)     I have an image that has placeholders for information display. I would like to distinctly put the page items directly at where the placeholders are in the image. Was wondering how to do this . I have already set the fields for where the placeholders are to be for loading information from the database. The question is this if possible how do I do this.? With this fact that I have edit the region template to put the sample code u see below there
    Thanks hope to hear from you soon thanks
    This is a sample of home the place holder looks like.
    SAMPLE
    ==================
    <div align="left" id="voter_card">
    <table width="448" height="263" border="0" cellpadding="0" cellspacing="0" background="#APP_IMAGES/voter_id_real.jpg">
    <tbody><tr>
    <td height="45" colspan="3"> </td>
    <td colspan="8"> </td>
    <td width="159"> </td>
    </tr>
    <tr>
    <td height="40" colspan="3"> </td>
    <td width="34" align="right" valign="bottom"><strong>PLACE HOLDER 1</strong></td>
    <td width="25" align="center" valign="bottom"><strong>PLACE HOLDER 1</strong></td>
    <td width="24" align="center" valign="bottom"><strong>PLACE HOLDER 1</strong></td>
    <td width="24" align="center" valign="bottom"><strong>PLACE HOLDER 1</strong></td>
    <td width="23" align="center" valign="bottom"><strong>PLACE HOLDER 1</strong></td>
    <td width="20" align="center" valign="bottom"><strong>PLACE HOLDER 1</strong></td>
    <td width="26" align="center" valign="bottom"><strong>PLACE HOLDER 1</strong></td>
    <td width="30" valign="bottom"><strong> </strong></td>
    <td rowspan="6" valign="top"><table width="133" border="0" cellspacing="2" cellpadding="0">
    <tbody><tr>
    <td width="42" height="28"> </td>
    <td width="42"> </td>
    <td width="41"> </td>
    </tr>
    <tr>
    <td height="158" colspan="3" align="center"><img src="../gvive_java/gvive_imgs/61/22081761000.jpg" width="124" height="143" alt="Photo"></td>
    </tr>
    </tbody></table></td>
    </tr>
    <tr>
    <td height="36" colspan="3"> </td>
    <td colspan="8" rowspan="3" align="center" valign="bottom"><span class="style5">PLACE HOLDER 1</span></td>
    </tr>
    <tr>
    <td width="53" height="31" align="right" valign="middle"><strong>2</strong></td>
    <td width="7"> </td>
    <td width="23" align="left" valign="middle"><strong>1</strong></td>
    </tr>
    <tr>
    <td height="24"> </td>
    </tr>
    <tr>
    <td height="19" align="right" valign="top"><strong>M</strong></td>
    <td height="19"> </td>
    <td height="19"> </td>
    <td colspan="8" align="center" valign="bottom"> </td>
    </tr>
    <tr>
    <td height="51" colspan="3"> </td>
    <td height="51" colspan="8" align="center" valign="middle"><strong>PLACE HOLDER 1 </strong></td>
    </tr>
    <tr>
    <td height="5" colspan="12"> </td>
    </tr>
    </tbody></table>
    </div>
    Hope you have an idea of what I am saying, please feel free to respond for further clarification,
    Thanks

    To the first question i put across, it works , but the problem now is to load the image that comes with the table into the specific part of the image in question.i chose a Display Image as the page item, the datatype is obviously a blob. would it still hold ?
    i am selecting this based on another pageitem called search.which searches for a particular ID, wondering how i can do that need help.
    Thanks
    Please note that facialimage is the BLOB and its of Display Image pageitem
    How do i get the database to show it in the placeholder.It doesnt work even if i just do a demo of select the BLob from the database using the Display Image if i has to wait for a parameter.On load of the page there is an error.
    SAMPLE
    ====
    begin
    select ,facialimage
    into :P1_IMAGE
    from voter_v where voterid = :P1_VOTERSEARCH;
    end;
    OR
    begin
    select voterid,fullname,sex,facialimage
    into :P1_VOTERID,:P1_FULLNAME,:P1_SEX,:P1_IMAGE
    from voter_v where voterid = :P1_VOTERSEARCH;
    end;
    Edited by: TopNedd on 04-Jun-2012 05:51

  • How to put sound in an application (not an applet)

    i was wondering how to put sound in a application.
    what code do i need and where should i put it

    Please do not create duplicate threads. Abandon this one and continue to post in your original here:
    http://forum.java.sun.com/thread.jspa?threadID=5203167&messageID=9810376#9810376

  • How to edit planning table so that only promote option comes for user

    how to edit planning table so that only promote option not aproove, comes for user for process management in planning unit state first pass.
    i am using 11.1.1.3 planing version, i have to do this customization very urgently.
    guys pls give some clue...thanks in advance!

    Hi John,
    a lot of thanks for your valuable help on this forum.
    if u see first pass state options, it gives only two options(promote,approve) but for other states it give >2 options so they must have put some condition on first pass state by restricting it to two options only.
    do u have any idea in which table this condition has been put so that i can restrict it further to 1 option only.
    thanks.

  • How does the jvm handle drawing images outside an applet window?

    I have a question about an applet I want to optimize.
    Essentially the applet allows the user to scroll through a large map while viewing only a small portion of the map through the applet window.
    The map has a large array of circles with coordinates on the map that are drawn in their appropriate place in the applet window when the user scrolls the map.
    As it stands, the paint method loops through every circle in the array to draw them, but most of them are not visible in the window and end up getting drawn in a negative coordinate or a very large coordinate.
    My question is are these circles that are not seen in the applet window but are still calling drawCircle in the paint method putting a strain on the computer's graphics card?
    Would it be better if I looped through all circles and only called the drawCircle method on circles whose coordinates would be visible? Or would the extra step of checking each circle's coordinates before drawing be not worth as efficient?
    Any help would be appreciated.

    If the amount of stuff being rendered outside of the clip rectangle is small then it's usually not worth it to attempt to figure out what's being clipped and not draw it. If the clip rectangle represents only a small portion of the entire canvas that can be drawn, however, it's usually worthwhile to put in some logic to only draw what is necessary.
    Take JTextArea, for example. It could be displaying a text document thousands of lines long. Instead of rendering every line of text on every repaint operation, it contains the following logic:
    1. Get the current clip bounds (i.e. what part of the text area is "dirty" and must be repainted).
    2. Figure out what lines are displayed in the clip bounds. Some lines may be only partially visible (a line "halfway" scrolled down), but they need to be repainted too. If word wrap is disabled this is a very quick and cheap operation, but if word wrap is enabled, it's a little more complex.
    3. Only repaint those lines.
    This way, in the best-case scenario JTextArea only repaints a single line (the line the user is typing in). Worst case, it repaints the number of lines that can fit on the screen. But it never repaints too much.
    Anyway, I guess my advice would be: If it's cheap and easy to determine if something is out of the clip bounds, do it. If it's difficult to determine, do it only if you have a noticeable performance issue in your rendering code.

  • How to force sql developer to prompt for user input for every execution ?

    Hi Folks,
    Environment: Oracle 11g (on Windows 7)
    SQL Developer: *3.1.07*
    I am executing a PL/SQL code off Sql Developer. The code uses substitution variables to prompt user for input. However,I am only prompted for the user input for the very first run of the code. For the subsequent executions, the code simply picks up the user input from the very first run. This behavior persists for all subsequent runs of the code.
    I have executed the same piece of code from SQL*PLUS and the behavior seems normal (i.e. I am prompted for fresh input for every execution)
    How can flush out the old user input so I can be prompted for new user input for every run of the code in sql developer?
    Thanks in advance
    rogers42

    Hi Rogers42,
    1/try
    undefine
    undefine fred
    select '&&fred' from dual;
    [run this multiple times]
    [prompts gere]
    old:select '&&fred' from dual
    new:select 'a' from dual
    'A'
    a
    [prompts here]
    old:select '&&fred' from dual
    new:select 'b' from dual
    'B'
    b
    2/try
    exit (requires recent version of sql developer: tools->preferences->Database->worksheet->Re-initialize on script exit command)
    select '&&fred' from dual;
    exit
    run this multiple times
    [prompts here]
    old:select '&&fred' from dual
    new:select 'x' from dual
    'X'
    x
    Commit
    [prompts here]
    old:select '&&fred' from dual
    new:select 'y' from dual
    'Y'
    y
    Commit
    3/use &fred instead of &&fred
    For background see
    http://totierne.blogspot.co.uk/2010/04/substitution-and-bind-variables.html
    -Turloch
    SQLDeveloper team

  • How to put data into textbox using JSP

    How can I put data into a textbox using JSP?
    This code prints to a html page but I want it inside an text area:
    // Print out the type and file name of each row.
            while(ftplrs.next())
                int type = ftplrs.getType();
                if(type == FtpListResult.DIRECTORY)
                    out.print("DIR\t");
                else if(type == FtpListResult.FILE)
                    out.print("FILE\t");
                else if(type == FtpListResult.LINK)
                    out.print("LINK\t");
                else if(type == FtpListResult.OTHERS)
                    out.print("OTHER\t");
                out.print(ftplrs.getName() +"<br>");
            }I have tried with the code below:
    <textarea name="showDirectoryContent" rows="10" cols="70">
    <%
           // Print out the type and file name of each row.
            while(ftplrs.next())
                int type = ftplrs.getType();
                if(type == FtpListResult.DIRECTORY)
    %>
                    <%= "DIR\t" %>
    <%            else if(type == FtpListResult.FILE) %>
                    <%= "FILE\t" %>
    <%            else if(type == FtpListResult.LINK)  %>
                    <%= "LINK\t" %>
    <%            else if(type == FtpListResult.OTHERS) %>
                    <%= "OTHER\t" %>
    <%            String temp = ftplrs.getName() +"<br>");
                  <%= temp > <br>
    %>
    </textarea>I get the following error:
    Location: /myJSPs/jsp/grid-portal-project/processviewfiles_dir.jsp
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile Note: sun.tools.javac.Main has been deprecated.
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\processviewfiles_dir_3.java:151: 'else' without 'if'.
    else if(type == FtpListResult.FILE)
    ^
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\processviewfiles_dir_3.java:165: 'else' without 'if'.
    else if(type == FtpListResult.LINK)
    ^
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\processviewfiles_dir_3.java:179: 'else' without 'if'.
    else if(type == FtpListResult.OTHERS)
    ^
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\processviewfiles_dir_3.java:193: ';' expected.
    String temp = ftplrs.getName() +"");
    ^
    4 errors, 1 warning
         at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:898)
         at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:733)
         at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:506)
         at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:875)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
         at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
         at java.lang.Thread.run(Thread.java:536)
    Please help???

    Yes indeed this works:
    <textarea name="showDirectoryContent" rows="10" cols="70">
    <%
           // Print out the type and file name of each row.
            while(ftplrs.next())
                int type = ftplrs.getType();
                if(type == FtpListResult.DIRECTORY)
    {%>
                    <%= "DIR\t" %>
    <%}            else if(type == FtpListResult.FILE)  {%>
                    <%= "FILE\t" %>
    <%}            else if(type == FtpListResult.LINK)  {%>
                    <%= "LINK\t" %>
    <%}            else if(type == FtpListResult.OTHERS) %>
                    <%= "OTHER\t" %>            
                  <%= ftplrs.getName() %>
    <%
    %>

  • How to Put together all SAP Transactions that are used a single User

    Dear Friends,
    In our client place, each user will be given a set of transaction codes, (like Sales Order Creation, Invoice Creation etc....). Each user role differs with other user role.
    Our client requirement is to put together all transaction codes on which his role is assigned, for instance transaction coeds like VA11, VA15N, VA21, VA25N, VL01N, VL06O, Print command. and customer generated report 'Z' codes should be placed together in a single transaction.
    I heard about area menus but I dont know how to call that functionality within the Sales Transactions. Could any one of you help me to resolve this issue. Your suggestions will be highly appreciated.
    Thank you,
    Raghu Ram

    HI,
    In case of your requirement , you can create an Area Menu (SE43) based on the role and assign all the required transactions.
    Later you can assign that Area Menu as the default parameter to the User ID (SU01).
    Whenever the user will logon he will see that area menu instead of initial SAP screen.
    Please check with the same and confirm.
    Regards,
    Harsh

  • How do I link a textbox with a date so that I can input mm/dd/yy and in the next box have it read the month ie December?

    Basically, I want to know how to do this:
    INPUT:  12/04/2014
    OUTPUT1: December
    OUTPUT2: 04
    OUTPUT3: 2014
    If there's java scripting involved, I'll need a guide, but I have some programming experience. 

    That can only be done using JavaScript.
    The input date is a character string and needs to be converted to the JavaScript date object, from which the month and year can be extracted using one of many different methods.
    var cDate = this.getField("input").valueAsString; // get the date string value;
    var oDate = util.scand("mm/dd/yyyy", cDate); // convert date string to date object;
    var cFullMonth = util.printd("mmmm", oDate); // get full month text from date object;
    app.alert("OUTPUT1: " + cFullMonth, 3, 0);
    var nDate = util.printd("dd", oDate); // get 2 digit month;
    app.alert("Output2: " + nDate, 3, 0);
    var nFullYear = oDate.getFullYear(); // get the 4 digit year;
    app.alert("Output3: " + nFullYear, 3, 0);

  • How do i make program wait for user input in some dialog box?

    basicly function public UserData getUserData()
    displays window and returns a value when somebody has pressed OK in JFrame. How?

    Extend from JDialog instead of JFrame and it'll give you the waiting that you need.
    To use a JFrame is a little more involved.
    I had to the other day also. I wanted to have a dialog that would be both a dialog and a JFrame. Reason: when the app started up, I wanted to get some data from it (and have it appear in the task bar for normal application selection), and also wanted the app to call the same window when running but as a dialog (ie: no extra task bar icon). However only the JDialog stopped the calling thread for the dialog.
    To get the JFrame to do the same, I invoked a thread and piled all of the logic into that, and when the user did all that I wanted them to, closed the Frame and released the thread with all of the statefull stuff that I wanted.
    Worked a treat.

Maybe you are looking for

  • Can not open JAR file?

    Hello, My friend and I are working on a Calculus Project in which he made a Java applet that shows how a function's derivative is found... regardless! He made this file on a Linux based computer and saved it as a .jar file and sent to me via email. I

  • Error during application of scm 7.0 support pack

    While applying support pack to our SCM 7.0 system (New Installation), We encountered a SPAM error in xpra_execution phase, due to automatic termination of job RDDEXECL scheduled by user id DDIC on client 000. The details of the error are: Message id:

  • Sharing a DB connection

    Hi, I have created a Database connection for a single page in my site but now I need to use that same connection for other pages. When I open the page I want to use it on it is not listed in the Database tab of the Application panel. How can I share

  • PE7/How to change the menu's background?

    and put a jpeg or mpeg that I already produced?? Thanks in advance.

  • 508 Compliance w/ Graphs

    <p>I'm currently developing a proof-of-concept using HyperionPerformance Suite 8.3 for a federal client and need to achieve 508compliancy with my graphs and reports.  Specifically, Iplanned on displaying my reports in color as is the default withHype