Text Feilds

I cant find anything in the java.sun.com documentation, its too difficult to navigate. :(
anyway, i have created and applet that has textfeilds and buttons
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import java.lang.Math;
import java.net.*;and
        ButtonAction = new Button("Action");
        ButtonClear = new Button("Clear");
        TextString = new TextField("",100);I want to display the button as an image preferably without adding a MouseMotionListener and a getImage not a getIcon cause I couldnt find anygood info onthese either.

I cant find anything in the java.sun.com
documentation, its too difficult to navigate. :(You are going to want to practice and improve on this navigation. What part are you having trouble with navigating? Are you taking about the tutorials, the API?
I want to display the button as an image preferably
without adding a MouseMotionListener and a getImage
not a getIcon cause I couldnt find anygood info
onthese either.Why not just set the image when you create it? I don't understand how a mouse listener comes into this. Also is there a reason you are using AWT and not Swing?

Similar Messages

  • Dynamic Text Feild with Dynamic Scroll Bar

    I have a Dynamic Text Feild with a dynamic Scroll bar.
    It loads a simple ASCI text file with some html formating.
    but I still can not manage to get the text to format.
    The biggest problem with the format is a big space between
    paragraphs.
    I am not sure why but I think the Frame must need a var to
    render to html.
    Can anybody help please?

    My text had the following, similar but no parsing string.
    I guess
    yourstring.split("\n\r").join("\r").split("\r\n").join("\r");
    takes out the carrage returns or <br>?
    I notice the one I had just say's String.
    I assume that would be the text that is the string?
    Thank you for sharing your knowledge of this.
    var my_lv:LoadVars = new LoadVars();
    my_lv.onData = function(src:String) {
    if (src != undefined) {
    myTxtFeild.text = src;
    } else {
    myTxtFile.text = "Error loading text.";
    my_lv.load("CadnetPage1_html.txt");

  • Checkbox and date/text feild

    I need to create a form with a checkbox and a date/text feild in the same row. Is this possible?
    An example is below:
    Form
    [ check box ] name of document [date/text feild]
    [  ] document name [1/30/2014]

    Sure - you can add fields adjacent an existing field using the "+" sign on the right side of the field to bring up the add field toolbar to add a field to the side.  You can also do this through the right click menu item "Add field beside", and you can Drag and Drop fields where you want them by clicking on the left side of the field and holding the mouse button down while you drag it where you want it, a blue vertical bar shows where it will be placed, drag it to the right of a row to add it to the right of existing fields.
    Thanks,
    Josh

  • F-02 T.CODE TEXT FEILD MAKE IT REQUIRED ENTRY FIELD NOT FOR OBC4 AND OB41

    my end users want to when ever post a document through F-02 t code text feild make it required entry feild, how to configure
    pl halp me
    Moderator: Please, don't post in CAPITAL letters and search before posting

    Hi,
    Change the field status group for that GL account and make text field as required.
    Use T-Code OBC4
    Thanks
    Andy

  • Create single text feild to display in select list

    Hello, i am going round in circles with what i need to acheive. i have this on a previous post but not sure if what i was asking was correct
    what i need to do is have a item size select list for the end user BUT in the backend i need to have a text feild or text feilds that can be manually changed. the db has a prod table with
    ID
    Desc
    Price
    Size
    feilds, so i was thinking if it was on a single line text feild that could store all the sizes in one feild in the db and can be changed in the backend
    OR
    how paypal buttons do it where the backend has a add size function so you can add a set a
    mount of sizes and can manually change them  is need be, beacuse i will need the backend to show if a product has sold out and wanted to be able to type "sold out" then show that in the select list
    thanks in advance for any help

    ok i have made the table
    CREATE TABLE `hostprop`.`beauSizes` (
    `SizeID` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
    `name` VARCHAR( 80 ) NOT NULL , -
    `from` VARCHAR( 155 ) NOT NULL ,
    `to` VARCHAR( 155 ) NOT NULL ,
    `age` VARCHAR( 155 ) NOT NULL ,
    `size` VARCHAR( 200 ) NOT NULL ,
    `sold` VARCHAR( 20 ) NOT NULL
    ) ENGINE = MYISAM
    I have made the design number "name" rather than design number (this is the name of the feild in the product table)
    the product table looks like this
    ID
    int(11)
    No
    auto_increment
    name
    varchar(200)
    latin1_swedish_ci
    No
    price
    varchar(80)
    latin1_swedish_ci
    No
    desc
    text
    latin1_swedish_ci
    No
    imageSmall
    varchar(200)
    latin1_swedish_ci
    No
    imageLarge
    varchar(200)
    latin1_swedish_ci
    No
    CatID
    varchar(200)
    latin1_swedish_ci
    No
    SizesID
    varchar(200)
    latin1_swedish_ci
    Yes
    NULL
    does this look correct?

  • How can I set the text feild in a form to print out the entire feild?

    Right now it's only printing out what shows in the box, I want the box to expand when printed and show all the text entered in the field, how can I set it to do that?

    I think that the font size has to be set in the form itself, not the FDF.

  • Adobe acrobat text feild value changing when placing a cursor

    Hi,
    I am using adobe acrobat 9 for printing some letters.
    I have a pdf document in that there are bundle of letters. In all letter there are some common text fields are existing.
    Here issue is, the content of first letter values are appearing in all remaining letters common fields when i am placing cursor over the field.
    While i am printing also the first letter are appearing in all letters.
    But when i use adobe 5 the issue is not occurring.
    Please help me, to get rid of this issue.
    Thanks in advance.

    I have pdf document, which consists of multiple letters. All letters have common content but the date field, name of client, address and control number are differ for individual letter.
    Issue is, while i am looking at the letter everything is fine, i mean data is distinct for each letter. The i printed the pdf doc but all letters have same date field, name of client, address and control number which are as of first letter.
    And when i click on text field the content of field is changing and showing same as first letter. When i remove cursor its again distinct.
    For example in first letter date field is 15th feb 2015. In second letter its showing 16th feb 2015. But when i place cursor over the field its changing to 15th feb 2015. while i remove the cursor its showing 16th feb 2015. i printed the letter and its showing 15th feb 2015 in both letters.
    Here the issue is not with the batch program which is placing the data to the doc. As this issue is coming while using Adobe Acrobat 5 to generate the pdf doc.
    I am suspecting some properties change is causing this issue. i try to change one property of text field like back ground color, then the text field value is not changing and if i print also the value is not changing.
    I cant share the pdf document as it has some confidential information.
    please suggest me to resolve this issue.

  • Dynamic text feild

    works when exporting and publishing but when i "put" the file
    on my dreamweaver site it wont show up online. why is this
    happening and what should i do to fix it.
    this is the code i used according to a flash book with step
    by step sorrta stuff...
    thanks in advance

    well, one should use SWFObject js to embed rather than the
    standard <embed> and/or <object> tags, but the
    embedding method wouldn't cause the problem. the OP is making a
    loadVariablesNum call from Flash, to a plain text file, which
    wouldn't have anything to do with the embedding in the HTML.
    preferably, one should use LoadVars anyway, where you could
    use some event handlers, but it's likely, as kglad stated, that the
    call is being made previous to the init of the swf, that the file
    is not present or in the wrong directory.

  • Reseting an input text feild?

    Hey, I'm working on a quiz where essentially you see 3 pictures that reflect a particular continent, and you answer with which continent you think it is.
    It works really well with the first answer "Australia", but when i go to the next question of which "Europe" is the answer, it wont accept anything but australia, how do I fix this
    for clarification (answerTxt is the input box) and (resultTxt2 is where it says right or wrong)
    heres all the code i have so far,
    answerTxt.addEventListener(Event.CHANGE, testAustraliaText);
    function testAustraliaText(evt:Event):void {
        var answer:String = "Australia";    
        if(answerTxt.text == answer.substr(0,answerTxt.length)){
            resultTxt2.text = "Come on you can do it!";
            if(answerTxt.length == answer.length){
                resultTxt2.text = "That's correct!!";
        } else {
            resultTxt2.text = "Wrong :(";
    stop();
    next_btn.addEventListener(MouseEvent.CLICK, playClicked);
    function playClicked(evt:MouseEvent):void {
        gotoAndStop("europe");
    THANKYOU!

    What you want to do is make your code more genericx, and use a variable outside of the function that you reassign in each new frame.  The code you showed should only be in frame 1 on a layer that extends the full length of the timeline and should be changed to be...
    stop();  // this is a timeline command, not a coding execution command
    var answer:String = "Australia";
    answerTxt.addEventListener(Event.CHANGE, testAnswer);
    function testAustraliaText(evt:Event):void {
        var answer:String = "Australia";    
        if(answerTxt.text == answer.substr(0,answerTxt.length)){
            resultTxt2.text = "Come on you can do it!";
            if(answerTxt.length == answer.length){
                resultTxt2.text = "That's correct!!";
        } else {
            resultTxt2.text = "Wrong :(";
    next_btn.addEventListener(MouseEvent.CLICK, playClicked);
    function playClicked(evt:MouseEvent):void {
       play (); // to keep it generic
    Then on subsequent frames you would have...
    frame 2:
    stop();
    answerTxt.text = "";  // clear the previous answer
    answer = "Europe";
    frame 3:
    stop();
    answerTxt.text = "";  // clear the previous answer
    answer = "Asia";
    etc...
    The next_btn would also be on a layer that extends thru all the frames so that the same one can be used throughout the quiz

  • Date into text feild

    Hi all
    All I need to do is put a date into a text field. So when a new record is requested , today�s date will be placed into the date field.
    Can anyone tell me how you do this?
    Thanks to all
    Craig

    I have put your code into another file with the same results can you tack a look
    package test_date;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    * <p>Title: dbSwing: PickList and Editing Sample</p>
    * <p>Description: Your description</p>
    * <p>Copyright: Copyright (c) 1999</p>
    * <p>Company: borland.com</p>
    * @author JBuilder Team
    * @version
    public class Frame1 extends JFrame {
    private JPanel contentPane;
    private BorderLayout borderLayout1 = new BorderLayout();
    private JPanel jPanel1 = new JPanel();
    private JTextField Date = new JTextField();
    //Construct the frame
    public Frame1() {
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    //Component initialization
    private void jbInit() throws Exception {
    //setIconImage(Toolkit.getDefaultToolkit().createImage(Frame1.class.getResource("[Your Icon]")));
    contentPane = (JPanel) this.getContentPane();
    contentPane.setLayout(borderLayout1);
    this.setSize(new Dimension(400, 300));
    this.setTitle("Frame Title");
    jPanel1.setLayout(null);
    Date.setText("jTextField1");
    Date.setBounds(new Rectangle(136, 26, 131, 27));
    contentPane.add(jPanel1, BorderLayout.CENTER);
    jPanel1.add(Date, null);
    //Overridden so we can exit when window is closed
    protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    System.exit(0);
    DateFormat datef = new SimpleDateFormat("dd/MM/yyyy");
    OrderDate.setText(datef.format(new Date()));
    the error is in datef
    thanks

  • What's the code for applying CSS to an XML file, in a dynamic text feild

    Hi all,
    Very simply put, just like in the title.
    If you have a CSS ready, an XML file that already appears
    inside a dynamic text field, what AS2 code would you use to connect
    the CSS so it applies to the XML file which is now unstyled?
    thanks!!!

    ...sorry for thaking a while to get back to you. I pluged the
    code you provided and the exported flash does not deplay the text.
    instead it says "undefined" which to me means something in the xml
    files is work, which is strage since I tested the xml file in a
    browser and it works find. so i am providing both the AS code
    (below) and the xml and css file (attached). my hope is that you
    can direct me to what the problem is.
    THANK YOU AGAING FOR ALL YOU HELP!!!
    AS code:
    Scrolling Text XML by Digital Science |
    www.digitalscience.za.org
    /////////////Load XML Data/////////////
    function loadXML(loaded) {
    if (loaded) {
    xmlNode = this.firstChild;
    header = [];
    txt = [];
    total = xmlNode.childNodes.length;
    for (i=0; i<total; i++) {
    header
    = xmlNode.childNodes.childNodes[0].firstChild.nodeValue;
    txt
    = xmlNode.childNodes.childNodes[1].firstChild.nodeValue;
    gotoAndStop(11);
    } else {
    errorMsg.text = "Error loading XML";
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    xmlData.load("member_content_test.xml");
    stop();
    import TextField.StyleSheet;
    var ss:StyleSheet = new StyleSheet();
    ss.onLoad = function() {
    txt_mc.styleSheet=this; // where yourTF is your textfield
    ss.load("jokes.css"); // where yourSS.css is your css file.

  • How can i add & update records in a database by using text feild & buttons

    i ,ve a difficulty to make an application which should add,retreive,update,find&delete records to a database in SQL server2000.
    how can i do it easily plz reply me as soon as possible.

    Your question is WAY too broad. People are here to help with problems, not write programs for you. Do you know anything about AWT? Swing? JDBC? SQL? Databases? If not, I suggest you start working with the Tutorials to the left side of this page and come back when you have a specific question.

  • How to input several queries at once in a text field, query from it?

    Hi ,
    I am starting out in oracle development and am currently attempting to develop a tool which uses a text item which can be updated by cut and paste (~ie from a spreadsheet) and then can query several tables(each as blocks joined by relations with the primary key of the first block being that of each item in the text feild) pulling back one row for each item entered in the original text item and displaying all the results as usual in the joined data fields. The problem i am having is attempting to 1. inserting multiple data items into the query box (text item), as the focus stays in the first item and i want to insert say 20 for the query by cut and paste. Secondly when populated i want to be able to use all these items to query the database when i press a button , however it shall only query the first row in the text item . Is it possible to loop in a when button pressed trigger? If not then i thought about inserting the rows in the original text item into a database table then joining it to the other tables by relation for query, however how do i loop through the text time and insert into a table( in a trigger or in a called procedure? any help would be much appreciated.

    Hi
    I am not sure if I understood completely what you want to do,
    but if you want to query a block using a list of values,
    you can modify dinamically the block where clause and use
    the operator "in".
    For example, loop through the values in the text item and
    build a list of values - at the end you'll get in a varchar2
    variable the following:
    '10, 12, 17, 22'
    Let's say the variable is called vList. Then you can use:
    set_block_property('myblock', default_where, 'thecolumn in ('||vList||')');
    So the block will retrieve all and only the records in the list.
    By the way, I suggest you break such long posts with blank lines
    between the paragraphs, it's easier to read!

  • Adding Start and Stop characters to a text field???

    "For 1D bar codes, there are two options depending on the type of PDF form you want to use. Forms that you create in Acrobat (acroforms) can be set up to use a bar code font with a standard text field. If you want to include the standard start and stop character (*) and/or a check character, you can use JavaScript to add them. The check character would have to be calculated, but that can be easily done with JavaScript."
    How would i go about doing this. My current PDF form will pull a last name and first name onto the form in a Barcode format, but i need to add in *LNM to the start and another * at the end of the data that was pulled from a SQL data base.  example the pdf has a Text Feild named "borrower1_last_name" and that filed pulls the last name..  So i was thinking there should be an easy script like you said to add in to that feild properties.
    posting here now, becasue no one seems to be able to point me to the correct resourse on the reader forum.

    okay.. so now how do I change the space between the first name and middle inital (and even the last name) in that same field?
    something like this looks like it should work but doesnt seem to do anything.
    str.replace(/ /g, "_");
    // Add an asterisk to the beginning and end of the value
    if (event.value) event.value = "*FNM" + event.value + "*";
    //Replace black spaces with an Underscore
    str.replace(/ /g, "_");

  • Purchase order text that appear automatically in Goods Receipt Automotive

    Hello,
    I am looking for a possibility to add a text (header or position) to the purchase order
    which than later will be shown as a popup for example   before posting in Goods Receipt.
    E.g.
    The purchase order  could maintain a text like "when material arrives please immediately advice Mr. xxx" in order to achieve a certain flow of information in the goods receipt area.
    I have seen that you can define many different kind of texts  wihtin the PO but I hav not managed
    to pass this information through to where I need it , i.e. the   Goods receipt posting.
    Any ideas.
    Thanxs, Volker

    Hi Volker,
    i think this could not be Possible in MIGO.
    Since there are no text feilds Defined in MIGo to copy the same.
    you can do the same setting in MIRO,Defined in Standard.
    so for you Purpose.
    You can achieve te same in Print out of the GRN,where we can link the test in PO to the GRN output print.and user after the GRN can proceed with the note in the po.
    Again,i believe ,it could be possible to to copy the text to your Feild presnt in the MIGO.
    But it is is Abaper activity ,i am not sure of the Posibility we need to check and work wth the tech guy.
    Third thing is you need to customize your requirement,so you need again a tech guy for the same.
    Regards
    Anjanna

Maybe you are looking for