Swing-Based Form Refresh

I'm working on a database querying tool using Java Swing and AWT for the GUI. One thing I'm having a problem with is refreshing the window after data on the form has changed. So if I change a fields data by use of "setText()", how do I get the window to refresh with that new information?
A temporary solution I came up with is sort of a "double buffer" technique in which I have two frames in main and I set one to null and create a new window with the other, and swap out every time I need to do that, while keeping track of the window's size and location. The problem is that I get a flicker every time it needs to change which can get annoying.

The way I've always created forms is through the constructor. (Is there any other way?) You create a new frame of that type that extends JFrame in main, and in the constructor, all the components are created, then added to the panel. So let's just say I have a JTextField that I type into and want that information displayed on the window appended to another JTextField (there is a purpose for this)...if I do this in the documentListener:
textField2.setText(textField1.getText());
this hasn't been automatically updating it. I also need other things like JLabels and ImageIcons to update when their information is changed, but that isn't happening either. Would a simple repaint() call to the super do the trick?

Similar Messages

  • Why do I have to select "continue allowing" every time I visit certain sites in order to be able to type into flash based form fields?

    Why do I have to select "continue allowing" every time I visit certain sites in order to be able to type into flash based form fields?
    See attached image for reference to what button I am referring to. Until i hit the "continue allowing" button I can not type into the form fields. I have tried removing and reinstalling flash. refreshing firefox, and clearing cache and cookies, and deleting the permissions.sqlite file. Nothing has worked. This issue just started happening a few days ago. Please let me know what I might be able to do to fix this.

    That full page including the form is a Flash object.
    I didn't see this doorhanger opening when I tried the URL in a new profile.
    Did you previously created an exception or is the default selected if you check the permissions for the Flash plugin?
    You can inspect and manage the permissions for the domain in the currently selected tab:
    *Click the "[[Site Identity Button|Site Identity Button]]" (globe/padlock) on the location/address bar
    *Click "More Information" to open "Tools > Page Info" with the Security tab selected
    You can go to the Permissions tab (Tools > Page Info > Permissions)
    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
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Error in generating PDF Based form - SUI Report

    Hi,
    We are running Quarterly reports for Unemployment reporting at USA using tax reporter.
    We are not able to see the complete spool output for the Wage Type Listings but only just 1 page. In the tax reporter log we get the error "Error in generating PDF Based form HR_F_WLIST_CA" for respective states.
    Any idea how to resolve this.
    We are on ERP 6.04.
    Thanks,

    Hi,
    I think its  Basis problem.Ask basis gyus to repair the connection and try again.
    Regards,
    Manoj.

  • JRE1.6 in Windows Vista for Swing based application

    Hi,
    I am running a Swing based and applet based application in Windows VISTA using JRE 1.6_U13. The text font is appearing bold in JRE 1.6_U13 whereas it is appearing normal while using JRE 1.5, though the style of the Font
    is "SansSerif", PLAIN and size 12 for both JRE 1.6 and JRE 1.5.
    Reason for the Issue:
    Swings follows the concept of taking the display values from the Windows UIManager(). The UIManager consists of keys and values. The values for the keys change from OS to OS. As a result, if the UIManager key values are not overridden with the customized values, the display will change from OS to OS. Hence the issue has occurred.
    Analysis:
    Case-1:
    1.     CALM is setting the font style to “Font("SansSerif", Font.PLAIN, 12)”.
    2.     This font is being set to the Label and Text components in swings.
    3.     The font class consists of Font.PLAIN argument whose value is 0 as per the java API.
    4.     This value can’t be changed.
    5.     Hence we couldn’t solve.
    Case-2:
    1.     We tried to get the key value for the key “Label.font” and tried to override its value.
    2.     But then the issue is with the Font.Plain which is one of the arguments in Font object.
    3.     Hence couldn’t achieve it.
    Case-3:
    1.     We thought of creating a new font where in we can have control over the weight and width of the text. Then set this font to respective key of the UIManager.
    2.     Here the weight indicates the bold thickness. As a result of which we thought of changing the weight.
    3.     But then the options that we have in the API are less and the least weight value is “TextAttribute.WEIGHT_EXTRA_LIGHT” which is equal to “0.5”.
    4.     This value is not sufficient as the boldness of the text is comparatively more than the text that is appearing in jre-1.5.
    5.     Then we tried to give the value manually, instead of using the API. But then, it was mentioned in the API that any values mentioned other than the ones specified in the API will be rounded to the nearest integer.
    6.     By doing this we have customized the boldness of the Label, but could not achieve the required boldness of the Label.
    Please need a urgent solution.

    Hi,
    The reason of the problem is Antialiasing effect of the graphics. In Control Panel -> Performance Information and tools -> Adjust visual effect, if the 'Smooth edges of screen font' is unchecked then the boldiness of the font or the Antialiasing effect is not there.
    But this effect is reflecting not only on my swing based and applet based application but also on the whole system.
    I tried to call the renderingHint method and change default value of the key KEY_TEXT_ANTIALIASING to VALUE_TEXT_ANTIALIASING_OFF, to make the antialiasing effect off for the application.
    I implemented the below code:
    Graphics g= new Graphics();
    Graphics2D g2d = (Graphics2D)g;
    g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
    RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);
    But I am not able to create an object of Graphics.

  • Creating layout in PDF Based Form to print table content.

    Hi ,
        I am facing problem in creating the layout of PDF Based Form . I do not need any interactive text but only active table in my context whose data i need to print . What i did was drag the table from data view into  the body page and activate . When i run it i only get a table structure but without any data .
    Can any one help me or give a pointer to any tutorial for this ?. I have checked in SAPnet for PDF Based Print Form but it somehow skips how to create layout.
    With regards,
    Saurabh Kumar Pandey

    Have a look at help.sap.com:
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/b7/64348655fb46149098d95bdca103d0/content.htm">Interactive Forms based on Adobe Software</a>
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/4c/9cc19e5c874091a99790e540b06f3a/content.htm">Inserting a Table or Loop</a>

  • How to active a PDF Based Form in ERP System

    Hi ,
    One of user facing problem "When I try to active a PDF Based Form in ERD, I got the following error: u201CINVALID http CONNECTION : ADSu201D
    Please can anyone help me in this ,what should i do and how to proceed it slove this issue.
    Thanks and Regards
    Brijesh Prasad

    You need
    - an application server JAVA with Adobe Document Service installed
    - you need to configure the connection between that Java instance and your ERP system
    https://www.sdn.sap.com/irj/sdn/adobe
    Markus

  • How to make character based forms with forms 6

    I need to created character based forms with forms 6.0. Can anyone help me?

    on unix machines you get 2 runtimes I think they are called ifrun60m and ifrun60.
    The first one is the normal GUI (m is probably for motif) and the second one is for character mode.
    You'll also have ifgen60 and ifgen60m for generating.

  • Issue with pdf-based forms (correspondence)

    Hello!
    Got a problem with our new pdf-based forms.
    I'm tryinig to print a new pdf-based dunning form via correspondence (fpcopara), but there is no option where i could say "XFP data stream with context evaluation". There are only the options for Smartforms and SapScript.
    Has anyone an idea how to solve this problem?
    Thanx 4 helping!

    Here are the steps (from generating the form up to the point where i want to print it):
    1. Transaction Code: SFP (Form Builder)
    create a new interface with interface-type: ABAP Dictionary-based Interface
    2. Transaction Code: SFP (Form Builder)
    create a new form. Layout type = Standard Layout, Interface from step 1, create a small layout and activate both (interface an form).
    3. Transaction Code: EFRM (Maintain Application Form)
    create a new application form with these options:
    Form Class: IS_U_CA_DUNNING
    Form Type: PDF-based Form
    PDF-based Form: (name from step 2)
    After creating this new application form, try to activate it.
    4. Transaction Code: FPCOPARA (Correspondence Printing)
    For this step you need printable dunnings in your system.
    Tab: Print Parameters
    Output Device: your XFP-Printer
    And there we are... There is no option for PDF-based Forms at this point. Just the options for SapScript and Smartforms.
    Thanks
    Btw: we're using IS-U (Utilities).

  • Plug a Swing-based development tool into Eclipse

    This article teaches you how to integrate a stand-alone Swing-based editor into the Eclipse Platform as a plug-in. Using simple techniques, you can share resources between the Swing tool, the Eclipse Platform, and various SWT widgets -- and these resources can communicate through mutual awareness. Tool vendors who want to bring Eclipse-based development tools to market with a minimal amount of re-coding will also find this article helpful.
    Learn how to integrate a Swing editor into the Eclipse Platform
    http://www-106.ibm.com/developerworks/java/library/os-swing/?t=gr,JavaW03=EclipseSwing

    Originally posted by: martin.brenda.martinbrenda.de
    > Anybody is welcomed to share any first-hand expreience, links, opinions,
    > plz!
    I am working since a few months on this topic. We have a Swing Application
    which we want to integrate in Eclipse. We decided to do this in little
    steps. One of the first is to integrate the application as far as possible
    over the Swing Bridge. And the results are really good. We integrated our
    editor, some views, resources and the most actions so far. We hope to
    release our Alpha version in February.
    The really nice thing is, that we could take allmost all our existing Swing
    Wizards and so on from the old application. Only some wizards for Project
    and new Resource creation had be made new. The communication between AWT /
    Swing and SWT is also runnig well. All events (Mouse, Keys..) are being
    transfered from one toolkit to the other. The only problem is the
    synchronization of the Swing and SWT thread. You often get "Invalid thread
    access" messages. But this is solvable.
    Gentleware also integrated their modelling tool Poseidon in Eclipse over the
    Swing-Bridge. If you wanna see how it looks like, here the download page:
    http://gentleware.com/downloadcenter.0.html
    You need the Professional version. Their integration is not so nice (I think
    they did it really fast). But I think they work on it in the future. But
    here you can see that it works ;-)
    Here are also some links:
    http://eclipsewiki.editme.com/CallingSwingFromSWT
    http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet135.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup&only_with_tag=H EAD
    http://www.logemann.org/day/archives/000008.html
    Bye,
    Martin Brenda

  • How to find table used in java based forms

    In R12 how can i find table name used in Java Based forms.

    Record history for OAF / Selfservice pages is only available in R12.1.1 - pl see MOS Doc 565870.1 (Oracle Application Framework (OAF) Release Notes, Release 12.1.1) - it is not available in 11i and 12.0.x releases.
    HTH
    Srini

  • Document Output - PDF-based forms - output log (error)

    Hello,
    Ever since activating the PDF-based form for BUS2201 the following error shows via viewing the 'output log':
    E     Business AddIn Was Not Called     http://srm7.atosorigin-ica.com:80/sap/ebp/docserver?msgdocuget&MsgId=SPPF_MEDIA&MsgNo=038&Langu=EN&sap-client=100
    E     Printing Error
    E     Action could not be succesfully executed
    Anybody else has experienced the error 'Business Addin Was Not Called' before? What does it mean? I know there is _SF badi active but it doesn't really contain anything apart from
    check = check
    statement
    Kind regards,
    Tim

    Hi,
    launch following in INTERNET explorer.
    http://sapjavahost:50<instance_nr>0
    where sapjavahost = hostname of you SAP java stack host
             <instance_nr> = instance number of Java system
    this open sap j2ee engine start page.
    click on system information, login with administrator user and password
    under Software Components  you will find version and patch level.
    regards,
    kaushal

  • Icons files will not displaying when running web-based forms locally

    My icon files (jpgs) are not displaying from within Forms Developer 10g or when I run the web-based forms from within Developer. I have tried the following without success:
    6.4 Deploy Icons for Forms Running on Web
    Option One: For Running Web Based Forms from Within the Forms Builder in Oracle 10g Developer Suite
    1) Copy all the icon image files (*.jpg) to the directory of <Oracle_10g_Developer_Suite_Installation_Root_Dir>\forms\j2ee\formsapp\formsweb\icons
    2) Make sure to set imageBase=DocumentBase in the file < Oracle_10g_Developer_Suite_Installation_Root_Dir >\forms\server\formsweb.cfg.
    3) Edit the < Oracle_10g_Developer_Suite_Installation_Root_Dir >\forms\java\oracle\forms\registry\Registry.dat file, specify the icon image file extension by modifying the following line:
    default.icons.iconepath=icons/
    default.icons.iconextension=jpg
    Save this Registry.dat file.
    4) Restart the OC4J Instance.
    5) Launch the form from Forms Builder.
    I just got a new laptop and am setting everything up again. I have everything setup the same way as on my old machine (same as above). It worked fine on my old computer but not on the new one.

    hi
    try to create jar file for u r all jpgs but also u have to check the size of u r images
    and if possible try to resave the same images by using Acdsee or use any other image viewer softwares.
    hope this helps u...
    sarah

  • Form refresh in debug mode

    I am trying to debug an issue on why my labels are not changing color when I update the forecolor property.  When I run the code below in debug mode I do not see the label change color.  I know my real issue is more involved but if the form does
    not update in debug mode then I really don't know how to isolate the real issue
    lblPlayer1.ForeColor = Color.Gray;

    The control won't update until the form refreshes.  This normally happens when OnForeColorChanged is called but that simply invalidates the window.  The actual refresh happens later after the UI thread finishes processing the current message. Hence
    you might not see it refresh while you're in an event handler as you're processing a message and the message is pending.  Windows processes UI messages sequentially.
    Michael Taylor
    http://blogs.msmvps.com/p3net

  • Error Handling on procedure based forms

    Hi all,
    I have seen examples of error handling on table based forms like
    the following:
    begin
    doInsert;
    exception
    when others then
    --redirect to some error page
    I have tried the same with a procedure based form by wrapping
    the doSubmit procedure, but when the procedure returns an
    exception, it doesn't execute my exception handling code.
    Any ideas on why this is happening or at least how I can catch
    these exceptions with my own exception handler?
    Thanks,
    Curt

    Chetan, Antonio,
    I opened a TAR on this issue with Oravle and they got the same
    results. Thay suggested a work around of creating an error table
    that gets written to and then dispaly and new page to retrieve
    the error from the table.
    What I ended up doing is creating a dummy procedure that does
    nothing (NULL). The form based on the dummy procedure allows me
    to get the values I need from the user.
    The procedure always returns succesful since it doesn't do
    anything. So in the form success code area I call the real
    procedure, check the return value, and now I can redirect back
    to the orignal form on error, or direct to another paqe on
    success.
    Not the most elegant solution, but it is working for now.
    Curt

  • How to insert PO details in an ADF based form and initiate the process flow

    Hi All,
    Could any one let me know how to insert PO details in an ADF based form and initiate the process flow in oracle BPM. This ADF form will be custom one....How to create a ADF custom based form.Please let me know the step by step process..Am new to BPM
    Thanks in advance,
    sreevani

    Hi All,
    Could any one let me know how to insert PO details in an ADF based form and initiate the process flow in oracle BPM. This ADF form will be custom one....How to create a ADF custom based form.Please let me know the step by step process..Am new to BPM
    Thanks in advance,
    sreevani

Maybe you are looking for

  • My iPod Touch (5th gen) is deleting a GREAT amount of music upon syncing with iTunes. HELP

    It all started on Saturday (February 22), as per usual, I connected my Ipod touch to my pc and I have it connected so that it syncs automatically. I was going to do my daily workout and I had a song playing on repeat. It could be possible that I star

  • No Umlauts returned

    Hi all, Querying a table with ctx_doc.snippet doesn't return the german umlauts, so the results are not displayed correctly. The data Storage is multicolumn datastorage, the current lexer is ctxsys.default_lexer. The target of the query contains a cl

  • Can we generate a dummy request from a backend process?

    I would want to generate a dummy request from a backend process since I need to use the 'process instanace key' which will be associated with it. The 'process instance key' is vital for my requirement since we need to trigger a process task in OIM. I

  • All about Physical Layer of BI Admin Tool

    Hi, I am new to OBIE.Experts pls help me out. What can be done in physical layer of Bi Admin tool?My Understanding is as below. 1.GET ALL DATABASE TABLES TO THIS LAYER . 2.CREATE PRIMARY KEYS. 3.Establish foreign key relationships. Is there anything

  • KTpass.exe - Kerberos keytab tool has stopped working

    Hi,  I'm trying to setup single sign in my firewall which requires me to use KTpass.exe to create a kerberos key.  I've never used Ktpass.exe - and i do not know how to use it. I simply follow instructions from my firewall tech and I'm suppose to run