This is my second thread....

Dear community members;
I submitted that ; I want to make a simple button on a form when I'll click on this button my particular excel or pdf file should be import in database; but till now I have not gotten any solution.
The second problem is that I want to call animated picture in form is it possible?
I am using 10g developer and 10g databse.
Please give me solution in easly steps.
Thanks
shahab Ahmed Khan
Edited by: shahab_khan on May 28, 2009 12:36 AM
Edited by: shahab_khan on May 28, 2009 12:58 AM

Did you take a look at webutil? And I'm sure you'll find a JavaBean for displaying your animated graphics if you google for it...

Similar Messages

  • How to append msg from second thread to main GUI thread?

    I am facing a problem which I cannot seem to solve.
    It involves Swing and threads. I have a main GUI running on swing. And it retrieves database information and displays it. On the same GUI I have a JTextArea box which I need another thread to update as and when that second thread recieves message via a multicast socket.
    I managed to create a runnable class of the second thread and successfully ran the second thread with the main thread in tandem. However when I use
    display.append(msgreceived);
    I get a nullPointerException. It works fine when i use System.out.println(msgreceived);.
    What should I have done instead?

    Here are part of the codes for my admin module.
    public class Admin extends JFrame implements ActionListener {
    //declares all the global variables
    private JTextArea display;
    public Admin() {
    super("BX Online - Admin Module");
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    AdminGUI();
    AdminGUI() {
    contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());
    JPanel newsbox = new JPanel();
    display = new JTextArea(2, 40);
    display.setEditable(false);
    newsbox.add(display);
    contentPane.add(newsbox);
    contentPane.add(tabpaneO);
    setBounds(70, 50, 300, 500);
    pack();
    setVisible(true);
    // all the methods activated by buttons goes here
    static public void main(String[] argv) {
    Admin a = new Admin();
    News b = new News("test");
    The following are part of the codes for my runnable class.
    public class News implements Runnable {
    protected boolean again = true;
    private String name, recieve; //the global variables
    private Thread t;
    public JTextArea display;
    public BXnews(String threadname) {
    name = threadname;
    t = new Thread(this, name);
    System.out.println("New Thread: " + t); //visual check to make sure thread is started.
    t.start();
    private void msg() {
    String recieve = ("testing");
    System.out.println(recieve);
    display.append(recieve);
    public void run() {
    while (again) //creates a loop so thread does not close
    {msg();}
    Well thats abt it. I'm not sure if you can compile this but basically the part I left out was the setup link for the News class which I don't see the need to add as what I primarily intend is for the message testing in News class to appear in Admin class thread in JTextArea "display".

  • 1) Second thread call to stateful session bean.

    Hi Friend,
    I read your threads on otn and i compared your problem with us and i analysed that your application and my application is same, So Plese can you help me in some issues.
    Friend, Please help me in these issues, Thanks for this
    We have very big ADF Swing+BC Application and deployed as Stateful Session Bean. in my application there are 500 Application Modules,For each application module i created Stateful session beans and deployed it on OC4J Container but when working on deployed application then i am getting time out error after 15 min of working.
    1). I set that parameter that you mentioned i.e jbo.ejb.txntimeout = 86400,but still it is giving me same error.
    2). Second Issue is of ---ORA-01000: maximum open cursors exceeded
    For this issue i chaged the Database Parameter i.e OpenCurser=2000, but still it is giving me same error,
    is there any parameter on application module required to change so that this error will not come.
    3). When i close the form then application module is not releasing database connection.
    4). (oracle.oc4j.rmi.OracleRemoteException) Second thread call to stateful session bean
    This error is also coming when I am using deployed application for long time i.e more than 15 min for Heavy Transactions

    Hi Suyog,
    How r u?
    We all are fine.
    I alerady tried for the Max Curser Property but it is not helpfull.
    I think again i have to go for closing opened db RS and statements.
    Thanks
    Vijay

  • My iPhone 5 dies at 20-24% it doesn't go all the way to 0%. Will apple replace my phone or fix my phone for free since its hardware problem and I have no money. This is my second iphone 5 replacement.

    My iPhone 5 dies at 20-24% it doesn't go all the way to 0%. Will apple replace my phone or fix my phone for free since its hardware problem and I have no money. This is my second iphone 5 replacement. I have no apple care so I'm worried. My phone has NEVER touched water! I only get 1/5 of battery use. I've also spent 30$ at the apple store on screen protectors for nothing! I really don't have 220$ nor 50$ I am on a strict budget. I believe I have to pay 220 not 50 ford a phone replacement for accidental damage. I don't know what category this falls under. I really need a new phone or battery. HELP! Will I have to pay? Also my screen lighting is all topsy-tervy every I put my screen on highest it won't work I have to wait about a minute? Forgot to mention that my apps exit out by themselves all the time when Im using them.

    So, have you tried a reset?  Restore from backup? Restore as new?  You seem to have a few problems but do not mention any action taken to resolve them.  What have screen protectors to do with anything?

  • HELP Needed with this error:   Exception in thread "main" java.lang.NoClass

    Folks,
    I am having a problem connecting to my MSDE SQL 2000 DB on a WindowsXP pro. environment. I am learning Java and writing a small test prgm to connect the the database. The code compiles ok, but when I try to execute it i keep getting this error:
    "Exception in thread "main" java.lang.NoClassDefFoundError: Test1"
    I am using the Microsoft jdbc driver and my CLASSPATH is setup correctly, I've also noticed that several people have complained about this error, but have not seen any solutions....can someone help ?
    Here is the one of the test programs that I am using:
    import java.sql.*;
    * Microsoft SQL Server JDBC test program
    public class Test1 {
    public Test1() throws Exception {
    // Get connection
    DriverManager.registerDriver(new
    com.microsoft.jdbc.sqlserver.SQLServerDriver());
    Connection connection = DriverManager.getConnection(
    "jdbc:microsoft:sqlserver://LAPTOP01:1433","sa","sqladmin");
    if (connection != null) {
    System.out.println();
    System.out.println("Successfully connected");
    System.out.println();
    // Meta data
    DatabaseMetaData meta = connection.getMetaData();
    System.out.println("\nDriver Information");
    System.out.println("Driver Name: "
    + meta.getDriverName());
    System.out.println("Driver Version: "
    + meta.getDriverVersion());
    System.out.println("\nDatabase Information ");
    System.out.println("Database Name: "
    + meta.getDatabaseProductName());
    System.out.println("Database Version: "+
    meta.getDatabaseProductVersion());
    } // Test
    public static void main (String args[]) throws Exception {
    Test1 test = new Test1();

    I want to say that there was nothing wrong
    with my classpath config., I am still not sure why
    that didn't work, there is what I did to resolved
    this issue.You can say that all you like but if you are getting NoClassDefFound errors, that's because the class associated with the error is not in your classpath.
    (For future reference: you will find it easier to solve problems if you assume that the problem is your fault, instead of trying to blame something else. It almost always is your fault -- at least that's been my experience.)
    1. I had to set my DB connection protocol to TCP/IP
    (this was not the default), this was done by running
    the
    file "svrnetcn.exe" and then in the SQL Server Network
    Utility window, enable TCP/IP and set the port to
    1433.Irrelevant to the classpath problem.
    2. I then copied all three of the Microsoft JDBC
    driver files to the ..\jre\lib\ext dir of my jdk
    installed dir.The classpath always includes all jar files in this directory. That's why doing that fixed your problem. My bet is that you didn't have the jar file containing the driver in your classpath before, you just had the directory containing that jar file.
    3. Updated my OS path to located these files
    and....BINGO! (that simple)Unnecessary for solving classpath problems.
    4. Took a crash course on JDBC & basic Java and now I
    have created my database, all tables, scripts,
    stored procedures and can read/write and do all kinds
    of neat stuff.All's well that ends well. After a few months you'll wonder what all the fuss was about.

  • HT1800 How can I add a Epson Stylus SX445w to my mac Book Pro this is the second one I've tried and failing miserably...it should be so simple...spoken to the help line at Epson and they say it's down to Apple !! Somebody please help me

    How can I add a Epson Stylus SX445w to my Mac Book Pro
    This is the second one I've tried and failing miserably...it should be so simple...I've installed poken to the help line at Epson and they say it's down to Apple !! Somebody please help me

    Yes I did everything that I was instructed to do!
    Cheers
    Joyce

  • My Ipod touch is frozen.  Shows USB cable with arrow pointing to Itunes.  What is the problem?  This is the second one I have had that has done this!

    My Ipod touch is frozen.  The screen shows only USB cable with arrow point to the word Itunes.  What is the problem?  This is the second touch I have had that has this same problem.  HELP!

    This time try restoring the iPod to factory defaults/new iPod instead of from backup.  You may have some corruption that is causing the problem and it may now be in the backup.  If the problem persists after restoring to factory defaults/new iPod. then you likely have a hardware problem and ana ppointment at the Genius Bar of an Apple store is in order.

  • My 6th generation ipod nano volume adjusts itself and turns down volume without me touching it.  This is the second ipod on which this has happened. I can't be the only one with this problem. Help!

    My ipod nano 6th generation has started changing the volume while music is playing. It doesn't matter whether I am running or sitting.  It will turn volume down to zero in the middle of a song.  This happened on my last ipod a few months ago and I returned it and got a new one.  This is my second grey one.  I don't want to have to return it again, but I might.

    Take your iPod Nano back to the Apple Store.  Let them see what you are seeing.  Only this time............
    Prior to leaving the Apple Store:    ***Make sure you have the store staff power the iPod Nano up and demonstrate that it is indeed working properly to your satisfaction.***

  • My iPhone 4S is dark, this is the second time.  The first time i was able to get it back on by plugging in into my PC.  However this time i have had it plugged in for an hour or so and nothing.  I have done the Start/sleep buttons

    My iPhone 4s is dark, this is the second time.  The first time I was able to get it back up and running by plugging it into my PC.  However this time it has been plugged in for an hour or more and nothing. There was still at least 70% charge left on it when it went dead.  I have pressed the sleep and start button separately and together.  It said that I did not have much space left this morning so I deleted Apps and photos but there was still space.  Just two days ago it was losing power even though it still 55% charge left so I plugged it in and it seemed to gain power.  Any suggestions on the problem?

    Sounds like faulty battery. Make Genius reservation and take to Apple for quick (minutes) free battery diagnostic testing. If you have Warranty or AppleCare the problem will be covered.

  • My iPhone just goes dead. It's not low on battery and this is the second one I have had do it. I have a 4s less than 4 months old. Anyone else?

    This is the second iphonev4s I have had to just turn off and can't get it to cone back on. I charge them to make sure it's not battery but they still won't come on. The first one did it within 30 days so they replaced it. My current one I have had less than 4 months. Anyone else?

    Unless you have another USB cable, and if that fails another computer to test the connection with, then I'd suggest you take the phone into an Apple store.

  • I'm not sure if I am writing this in the correct area (this is my second attempt at posting a question), but I have a comment about a recent store experience in Sandusky, OH.  I am not a current Verizon customer, but I was visiting friends and we had to g

    I'm not sure if I am writing this in the correct area (this is my second attempt at posting a question), but I have a comment about a recent store experience in Sandusky, OH.  I am not a current Verizon customer, but I was visiting friends and we had to go to the store to get something taken care of.  First off, allow me to compliment the nice, new store.  Boy, its changed over the past few years ago when I was in last. My comment is mostly directed to one specific employee.  When we entered the store, we were "welcomed" by a sloppy dressed gentlemen (his clothes were probably two sizes two small), which really struck me as unusual because every other employee in the store was dressed really "casual" with nice sporty clothing and red shoes.  Either way, after being entered into the computer, the gentlemen told me to wander around or have a seat in the back and someone would be with us soon.  As soon as we walked away from the door, the gentlemen handed his "duty" off to another employee who took over welcoming people coming in.  For whatever reason, I felt glued to him as he stood out to me.  After leaving the door, he immediately went to the back of the room, hunched over a cabinet, where he stood for the next 30+ minutes playing on his phone, frowning and not speaking to anyone around him.  Again, I found this unusual because everyone else was overly friendly and smiling.  I finally decided to walk by and see what he was doing.  It appeared that he was texting someone.  He paid no attention to me whatsoever as I walked by, just continued to frown and text on his phone.  I did take not of his name tag for future reference.  His name was Justin.  I am assuming he's the manager of the location as he was just standing around while everyone else worked.  I do understand that managers aren't necessarily doing the "dirty work" of the employees, but he could have at least found some better fitting clothing (I find it hard to believe Verizon doesn't supply it), been a little friendly, pretended to be busy, and not been texting the entire time we were there.  Again, the store was great, the other employees were very helpful, but the manager seemed to be doing is own little thing and it didn't put off a good image for the rest of the store.  Just wanted to share my comments.

    lisab101,
    We appreciate you reaching out to us. We greatly appreciate the feedback that you have provided us. Please know that we will lift this up to management and the issues will be addressed.
    Thank you,
    RobinD_VZW
    Follow us on twitter @VZWSupport

  • I cannot get the new mac mini to wake from sleep and trigger the displays - this is the second mac mini I have had and both have had the same issues. It worked before on my macbook extremely well...

    I cannot get the new mac mini to wake from sleep and trigger the displays - this is the second mac mini I have had and both have had the same issues. It worked before on my macbook extremely well...
    Using 2 displays, connected via HDMI and thunderbolt
    Been on to support a number of times now - is anyone experiencing the same issues?

    BUMP.
    I actually showed this to Apple geniuses when I took my computer to the apple store, and it's still here. In console it says:
    kernel[0]: Previous Shutdown Cause: -128
    I don't know if that's related or not, but maybe helps?

  • I used a GarageBand loop in a video I made for youtube. I want to submit this video for revenue. First, is this legal? Second, youtube requires written permission to use songs, and provides a comment box for proof of permission. What do I put in this box?

    I used a GarageBand loop in a video I made for youtube. I want to submit this video for revenue. First, is this legal? Second, youtube requires written permission to use songs, and provides a comment box for proof of permission. What do I put in this box to prove It's ok for me to make ad revenue from my video?

    Yes, you can use GarageBand loops for commercial purposes. Here's the Apple Doc:
    http://support.apple.com/kb/HT2931
    (Basically the only thing it excludes is to re-distribute the loops as loops.)
    I don't know about the YouTube form, maybe you just fill in "Apple Loops", they certainly have come across this before.

  • My AppleTv keeps dimming as if it is in energy saver mode.  My DVD player and TV do not do this.  How do I disable the energy saver feature on AppleTv?  BTW this is my second AppleTV device so it does not appear to be a product defect.

    My AppleTV keeps dimming as if it is in energy saving mode.  My TV and DVD/Netflix player do not do this.  How do I disable the energy saver feature in AppleTV?  BTW:  This is my second AppleTV device so it does not appear to be a product defect.

    I keep seeing versions of this same question, and it's always the same answer: it's the TV. Well, it happens to me as well. But it only happens when viewing programming via Apple TV. My cable is totally fine: no dimming. Only with Apple TV. So what's the answer?

  • TS2972 Bug:How can Home sharing be turned off and all items in my library cleared without my intervention? This is the SECOND time this happens since end of March 2013. A permanent solution will be appreciated

    Bug:How can Home sharing be turned off and all items in my library cleared without my intervention? This is the SECOND time this happens since end of March 2013. A permanent solution will be appreciated

    See this post.
    Assuming AVG is involved there is a new patch which may resolve the issue. Update AVg before attempting to recover the library.
    tt2

Maybe you are looking for

  • How do you incorporate an ArrayList inside a ComboBox (GUI Project Help)?

    Basically, I created a project around NBA Greats of Our Past. There is around 76 players so rather than typing all of them up in JCreator, how can you use an Arraylist to make things easier. I already created the spreadsheet on Excel with all the nam

  • How can I get suggested spellings in Keynote 09.

    Choose Edit > Spelling > Spelling. The Spelling window opens and the first misspelled word is highlighted. Each language has a different spelling dictionary. To make sure that the correct language is selected, select the text you want to work with, c

  • Driver program for the Smart form

    Hi all. I have an issue in smart forms. we are implementing RE(Real Estate) module with the version ECC 6.0. In the RE ,for printing the forms.I know the name of the SMART form only. how can i know the corresponding Driver program. Plaese help me to

  • Difference in action menu , infotype menu, actions

    can somebody tell me difference in these three with screen shots. Kind regards, Shruti

  • Multiple Residuals for One Invoice

    HI Is it possible to either split a residual into multiple residuals, or create more than one residual against one invoice? Thanks for your help T