JEditorPane and using methods from JTextArea

Hi there;
I want to be able to use a method from JTextArea - public void insertString( String str, int pos) on my JEditorPane
Is there a way to do this? I'm lost in the hierarchy - and my programming ain't too hot !!
Thanks

oops meant to say insert(Sting str, int pos )

Similar Messages

  • Using methods from another Form C#

    Hello!
    I'm having some trouble using methods from one Form in another one. Here's the deal:
    This is a snippet from my 'main' form:
    public partial class PRINCIPAL : Form
    //some variables here
    Form2 Config = new Form2();
    Form3 Cadastro = new Form3();
    public PRINCIPAL()
    InitializeComponent();
    //code goes on and on
    //Here's the method I want to call on the other forms (Form2 and Form3)
    public void salva_banco()
    this.Validate();
    this.projetoBindingSource.EndEdit();
    this.modulosBindingSource.EndEdit();
    this.funcaoBindingSource.EndEdit();
    this.estadosBindingSource.EndEdit();
    this.tableAdapterManager.UpdateAll(this.database1DataSet);
    //And here is where I show Form3
    private void projetoDataGridView_CellDoubleClick_1(object sender, DataGridViewCellEventArgs e)
    Cadastro.ShowDialog();
    //And here is where I show Form2
    private void funcaoDataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
    Config.ShowDialog();
    }// And the code keeps on going}
    And this is a snippet from Form3:
    public partial class Form3 : Form
    public Form3()
    InitializeComponent();
    private void Form3_Load(object sender, EventArgs e)
    this.projetoTableAdapter.Fill(this.database1DataSet.Projeto);
    this.modulosTableAdapter.Fill(this.database1DataSet.Modulos);
    private void btnOK_Click(object sender, EventArgs e)
    if (projetoTextBox.Text == "")
    MessageBox.Show("some text here");
    else
    ////// HERE IS THE PLACE WHERE I WANT TO CALL THE METHOD! "salva_banco()"
    I've read lots of suggestions but none satisfied my condition.
    I appreciate any help.
    Thanks.

    You need to find the instance of the PRINCIPAL form to call the method on.  If you know there will always be exactly one open you can use:
    var principalForm = Application.OpenForms.OfType<PRINCIPAL>().Single();
    principalForm.salva_banco();
    David
    David http://blogs.msdn.com/b/dbrowne/

  • [svn:osmf:] 14178: PARB changes: Remove unload and query methods from PluginManager.

    Revision: 14178
    Revision: 14178
    Author:   [email protected]
    Date:     2010-02-15 21:35:12 -0800 (Mon, 15 Feb 2010)
    Log Message:
    PARB changes: Remove unload and query methods from PluginManager.  We lack compelling use cases for those methods, but can easily re-add them later if we come across some.
    Modified Paths:
        osmf/trunk/apps/samples/framework/DynamicStreamingSample/src/DynamicStreamingSample.mxml
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/src/AkamaiPluginSample.mxml
        osmf/trunk/apps/samples/plugins/CaptioningSample/src/CaptioningSample.mxml
        osmf/trunk/framework/OSMF/org/osmf/events/PluginManagerEvent.as
        osmf/trunk/framework/OSMF/org/osmf/plugin/PluginManager.as
        osmf/trunk/framework/OSMFIntegrationTest/org/osmf/plugin/TestPluginManagerIntegration.as
        osmf/trunk/framework/OSMFTest/org/osmf/plugin/TestPluginManager.as
        osmf/trunk/plugins/CaptioningPluginTest/src/CaptioningPluginTest.mxml

  • I want to enter the password for a secure WIFI network on several iphones.  If I do this, can the end users somehow extract the ip address and password for the wifi network from the iphone and use it from a pc (at home, for example)?

    I want to enter the password for a secured wifi network on several iphones.  If I do this, is it possible for the end users to somehow extract the ip address and password information and use it from a pc/laptop/other mobile device.  For security reasons, I don't want them to be able to to this.
    Please advise,
    Thanks.

    If you look at the top left of your screen you will either see a 3G (or 4G if you have AT&T) or you will see the wi-fi symbol.  If you don't see the wi-fi symbol you are connecting to Gmail through your cellular data plan, not via wi-fi.
    To answer your question, it doesn't happen often but when it does the steps I mentioned above will normally resolve it.  Hopefully you won't have any further problem with this.

  • How to use methods from a JAR file inside my springcontext (Oracle fusion 12c) class file?

    Dear Friends,
    I have a jar file, which has executed classes and methods in it. I want to make use of these methods inside my springcontext piece of code.
    Can someone please share an example  of how to write spingcontext code which is accessing classes/methods from  JAR files along with the any setup?
    Thanks,

    I have found the answer... as described in:
    http://java.sun.com/javase/6/docs/technotes/guides/lang/resources.html
    the problem was that the properties are loaded with the getResource & getResourceAsStream methods and I didn't know that one. I thought that is was loaded through findClass because I saw the property files trying to be loaded through findClass.
    The truth is that it tries to load with the getRessources methods and if it fails tries with the findClass/loadClass.
    To Fix the problem, I have simply overriden the getRessourceAsStream to do my magic and that was it.
    Thanks

  • Use method from father class for event

    Hi,
    I want to use a preDelete event in my class, but the method I would like to call for the event is not in the class itself, but in the (abstract) predecessor class. Any chance to do this? At the moment I can't select the method in the event tab page (it's not in the list to choose from ...)
    Thank you!
    J.F.

    In 9.0.4 you will need to add the parent class as a descriptor and choose to deactivate it. This will allow you to choose methods from that class in the subclass descriptors.
    In 10.1.3 there is a dialog for specifying classes that are not persistent, but necessary in other persistent classes: http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/mw007.htm#sthref629
    A good explanation of why we don't store the parent and referenced classes unless explictly asked can be found here: Re: Mapping Workbench  10.1.3.0 Bug - Cannot add Implemented Interfaces
    Hope this helps,
    Karen

  • Can I install Aperture on an Iomega hard drive attached to my IMac and use it from there with iPhoto pix on the IMaac

    Can  I install Aperture on an external Ilmega hard drive attached to my IMac and run Aperture from there to use it with photos on my IMac iPhoto library?

    It's usually best to have applications on the boot drive, so I'd turn your idea around: run Aperture from the internal disk and park iPhoto and maybe iTunes libraries on an external - which would free up space on the internal.

  • Attach pdf to email and use text from field in body

    I'm looking to create a fillable form with a 'submit' button at the bottom.  Upon clicking the submit button, I would like an e-mail window to open with a pre-defined recipient, and the pdf attached.  I've found code to accomplish this using this.mailDoc()
    However:
    I'm also hoping to get the text from the "Name" field of my form and use it in the body of the e-mail.
    I've found the following code in another post, which appears to work for this:
    var cClientName = this.getField("ClientName").value;
    var cAddress = this.getField("Address").value;
    var cBody = "Client Information:\n\n";
    cBody += "Client Name: " + cClientName + "\n";
    cBody += "Address: " + cAddress + "\n";
    var myURL = "mailto:[email protected]?subject=Client Info&body=";
    myURL += cBody;
    app.launchURL(myURL, true);
    That will open an e-mail window with a body containing the data from AcroForm fields named "ClientName" and "Address".
    The problem is, that this code will not attach the pdf.
    How can I get the best of both worlds?
    Thanks!

    You don't need launchURL to achieve that. mailDoc is capable of setting the
    subject line, email body, recipients lists, etc.
    See this tutorial for a detailed explanation:
    http://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address

  • How can I Suscribe and use FormsCentral from Venezuela?

    Is it possible to suscribe from United Kindom and access my account to use it from and in Venezuela?

    Again, i-devices are not realy intended to be used as stand-alone devices, certainly not when you're talking about extended options.  We do use an iPhone without a computer but it has never been synced in the 2 years we have had it and has no media on it other than what is produced by the camera.
    You talk about downloading new music, but without the Mac you pretty much won't be able to do that anyway.  You can purchase music from the iTunes Store and then it is, or course, in iCloud and can be downloaded to other devices too from there (with small limitations into which I won't go).

  • Creating user accounts with OIDDAS and use them from the OS

    Hi,
    I have a customer that is experiencing an error creating user accounts from OIDDAS, and use that user accounts from the operating system.
    My customer is using OID/OAS4OS 10.1.4.2.0, and that version is not longer available to download, then, I will try in my own environment
    with OID/OAS4OS 10.1.4.3.0.
    And the question is the following: is supported to create user accounts with OIDDAS and expect that users can work with OAS4OS and be
    able to authenticate in the operating system?
    For the reference, SR# 7222351.993:
    Thanks,
    Luis Vivero.
    Edited by: LV in ORCL on Dec 11, 2008 6:47 AM

    Hi Jacco,
    I didn't see your post before.
    Nop, unfortulately I don't have a document with that. I just received that answer
    from development (related to the plugin for AD that is not certified, and DAS is
    not intended to work with OAS4OS).
    Anyway, about the plugin to work with AD, this is working for me; at least I tested
    it by configuring the plugin, I configured synchronization, the mapping file, I did
    the bootstrap, and the accounts that were bootstraped now shows the OS attributes
    on DAS.
    Regards,
    Luis Vivero.

  • How do I stop firefox from attaching to and using resouces from my external hard drives. Why is it doing this. I don't like it.

    I cannot disconnect from external hard drives because firefox is using the drive. I really don't like this. Aside from being intrusive and inconvenient it seems spywarish or just plain data mining.

    Try the solution here: [[/questions/768100]] Why does firefox want to use different fonts on mounted hard drives
    Move all User fonts in Font Book to Computer fonts.
    # Launch Font Book (/Applications/Utilities/)
    # Open Font Book > Preferences
    # Deselect: "Automatic Font Activation"
    # Set the "Default Install Location" for fonts to "Computer"
    # Select all User fonts
    # Move the selected User fonts to Computer fonts
    # Remove all duplicate fonts in Computer fonts

  • How to get class and use method on it

    Hi,
    class State {
            String name
            Enum expectedValue
            public State(String name,Enum expectedValue){
                this.name = name;
                this.expectedValue = expectedValue;
    In the same class I need to have a method that takes a String and it should return matching
    Enum value. Since  class already have the expectedValue my idea is to get the Enum class ( using that if possible) and
    the call get() on it see my example below;
    Example:
    expectedValue is HwState.UPGRADED;
        public HwState convertActualToStateType( String actual){
            return  HwState.get(Integer.valueOf(actual));
    How can I get the Enum class (HwState) ? And then use it e.g. HwState.get() ?
    //mike

    Oracle is not allowing to Pesonlize the Buttons.

  • MacBook 2.1 Intel Core 2 Duo 2GHz 2GB Late 2006. The harddrive died. Replaced with a WD 320. Have used TimeMachine with a WD160 for several months. Tried to install Snow Leopard and use restore from the TimeMachine backup. Will not start.

    Harddrive died and replaced it with a new WD 320. Used Snow Leopard to intall OS Disk Utility to Restore from TimeMachine. It appears to have 'pasted' the backup from TimeMachine on to the WD320. Tried to start OS and it says that WD320 is a backup and won't run from it. What do I do?

    I re-reinstalled Snow Leopard and restarted. It is working fine!!!!

  • Why can't I buy and use app from app store?

    please help me, I can't buy Apps from App store and if I can buy this, I'll can't use this, what's happen with my account? Please help me... Thanks!!!

    What happens when you try to buy an app, does the 'buy' button not work, do you a message about your billing info, an error message about something else ... ?
    If you are getting a message to contact iTunes support then you can do so via this page and ask the why it's appearing (we won't' know) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
    If it's a different problem then providing some info about it might mean that people on here can try and help.

  • Can i buy and use apps from a different store

    Wanted to buy (Crazy taxi-By Sega), but it says that it isnt available at the Indian Store and asked me if i wanted to change my store to US.
    Can we do that?
    Will i be able to use these apps bought form other stores??
    Regards,
    Sandesh.

    The short answer is, no, you cannot buy from another store.
    The iTunes Store in a country is intended only for use by that country's residents, and only while they are in the country. To use the iTunes Store in a country you need a credit card (or other card type if acceptable in a country) issued in that country, billed to an address in that country, and also be physically present in that country when using the store.  You are also restricted to waiting 90 days between country changes.
    E.g., "The iTunes Service is available to you only in the United States, its territories, and possessions. You agree not to use or attempt to use the iTunes Service from outside these locations. Apple may use technologies to verify your compliance." - http://www.apple.com/legal/itunes/us/terms.html#SERVICE

Maybe you are looking for

  • IMac and HDCP movies

    I have a brand-new iMac (only 2 weeks old!) and downloaded some HD videos from the iTunes store to watch on my pretty new screen. However, they won't play now in iTunes, and instead give me the error "This movie cannot be played because a display tha

  • Report Painter table RWCOOM

    I need to use report structure RWCOOM for a specific report painter report.  I would like to include company code (BUKRS) as a characteristic in the report, but this characteristic is not included in that structure.  Does anyone know if it is possibl

  • Java install won't accept Ok ?? Desperate for help??

    Java install won't accept <Ok>?? Desperate for help?? I've decided that I'm going to develop my Rails applications in Linux and keep hitting a BRICK WALL every time I try to install NetBeans or Java. I download all of the packages and come to a text

  • I am really confused..

    I've posted earlier about something else but I also have one more question. I have a 1.42 GHZ eMac with a 160 GB HD. First off, what type of video card does this eMac have (32 MB or 64 MB)? I'm confused about this because when I go to system profiler

  • Newbie question: tapping native OS APIs through java?

    I'm new to java, and was wondering if classes existed for doing windows platform specific things on the windows platform. Please point me to any information/sites, or suggested search terms for a search engine. Things like if I wanted to edit a regis