DrawString from ArraryList Problem

First off, I am very to this forum, so if this is not the correct forum, please advise, (continue to have issues with this one).
I'm a current Java1 student working on the final project for the year. Not looking to have answer provided but simply looking for a direction to move toward the issue I'm having.
Project involves creating a digital signature, (a crude version of the approval pads you sign with electronic pen at Home Depot, Lowes, 7-11, you get the picture). The major difference is that we are signing the pad with our mouse just to show functionality.
Problem is: When mouseReleased is invoked after signing one's first name and mousePressed is invoked at the start of the last name, a connector line is drawn from end of first name to beginning of last name. I am looking to have a new word started when mouseReleased is invoked.
Below is the code pertinent to this part of the program, if more is needed let me know.
Any help on this would be greatly appreciated.
// Main OrderPanel Class
class MainPanel extends JPanel
     //Constructor for main OrderPanel
     public MainPanel()
          sigPoints = new ArrayList<Point>();
          current = null;
          pressed = false;
          System.out.println(pressed);
          setLayout(new BorderLayout());
          northPanel = new JPanel();
          northPanel.setLayout(new GridLayout(2,1));
          logoLabel = new JLabel("Big Dog Hardware - Let's Build Something Today!", SwingConstants.CENTER);
          logoLabel.setFont(new Font("Arial", Font.BOLD, 16));
          logoLabel.setForeground(Color.BLUE);
          northPanel.add(logoLabel);
          approveAmount = (double) (Math.random() * 500);
          add(northPanel, BorderLayout.NORTH);
          southPanel = new JPanel();
          addButton("Approve");
          addButton("Clear");
          addButton("Close");
          add(southPanel, BorderLayout.SOUTH);
          //Topping Checkbox and Beverage checkbox create
          centerPanel = new JPanel();
          centerPanel.setLayout(new GridLayout(1,1));
          centerPanelComponent pad = new centerPanelComponent();
          centerPanel.add(pad);
          add(centerPanel, BorderLayout.CENTER);
      class centerPanelComponent extends JComponent implements MouseMotionListener
          public centerPanelComponent()
          addMouseListener(new MouseHandler());
          this.addMouseMotionListener(this);
          public void paintComponent(Graphics g)
               Graphics2D graphic = (Graphics2D) g;
               Rectangle2D signPad = new Rectangle2D.Double(47,50,400,75);
               graphic.setPaint(Color.BLUE);
               Font sigFont = new Font("Forte", Font.BOLD,26);
               graphic.setFont(sigFont);
               String X_Mark = "X";
               graphic.drawString(X_Mark,21,123);
               DecimalFormat dollar = new DecimalFormat("$0.00");
               Font totalFont = new Font("Arial", Font.BOLD,12);
               graphic.setFont(totalFont);
               if (select != 1001)
                    String total = "Your Approval is Required for the Total Amount of: " + dollar.format(approveAmount);
                    graphic.drawString(total, 75, 30);
               else
                    String total = "You Are Approved for the Total Amount of: " + dollar.format(approveAmount);
                    graphic.drawString(total, 100, 30);
               graphic.draw(signPad);
               if (sigPoints.size() > 1)
                    Point previousPoint = sigPoints.get(0);
                    for (int i = 1; i < sigPoints.size(); i++)
                         Point thisPoint = sigPoints.get(i);
                         graphic.drawLine(previousPoint.x, previousPoint.y, thisPoint.x, thisPoint.y);
                         previousPoint = thisPoint;
          public void mouseDragged(MouseEvent event)
               Point a = event.getPoint();
               sigPoints.add(a);
               this.repaint();
          public void mouseMoved(MouseEvent event)
               private class MouseHandler extends MouseAdapter
                    public void mousePressed(MouseEvent event)
                         if(event.getModifiersEx() == event.BUTTON1_DOWN_MASK)
                         pressed = true;
                         System.out.println(pressed);
                    public void mouseReleased(MouseEvent event)
                         if(event.getModifiersEx() != event.BUTTON1_DOWN_MASK)
                         pressed = false;
                         System.out.println(pressed);
     public void addButton(final String label)
          JButton button = new JButton(label);
          button.addActionListener(new ActionListener()
                    public void actionPerformed(ActionEvent event)
                         String selection = label;
                         if (selection == "Approve")
                              if (sigPoints.size() < 1)
                              JOptionPane.showMessageDialog(null, "You must sign the pad to authorize approval", "Approval Error", JOptionPane.PLAIN_MESSAGE);
                              select = event.getID() +1;
                              select = event.getID();
                              repaint();
                         if (selection == "Clear")
                              select = event.getID()+ 1;
                              sigPoints.clear();
                              repaint();
                         if (selection == "Close")
                              select = event.getID() + 1;
                              System.exit(0);
          southPanel.add(button);
     private ArrayList<Point> sigPoints;
     private Point current;
     private JLabel logoLabel;
     private JLabel approvalLabel;
     private JLabel approvedLabel;
     private double approveAmount;
     private JPanel northPanel;
     private JPanel southPanel;
     private JPanel centerPanel;
     private DecimalFormat dollar;
     private centerPanelComponent pad;
     private String total;
     private int select;
     private boolean pressed;
}     

Switch to a new array list. Or you have to have a state machine track that you are signing your last name. What is happening is that you are just adding a new point to the existing array, so you naturally draw a line from the last point to the next point--that is the logic you use all the way though to generate your signature. This seems to work for you, but you have a mouse release, you need to go to the next state, that is, to the last name, you do this with another ArrayList to hold the data for the last name. You'll have to amend your paint logic to take in:
State: 0 -- clear
State: 1 -- getting first name
State 2 -- have first name and getting second name
state 3 -- complete all is done.
Unless you want to accept signatures that have multiple breaks like mine does... I have 5 sections on my signature. In that case you need to just keep on collecting new point set data until they click done.

Similar Messages

  • HT201210 nowadays have many user have problem with update to ios7 and need active with apple id maybe in the future in order escape from these problems must be stop use these products else. Because of simple user don't know about this technology and somet

    nowadays have many user have problem with update to ios7 and need active with apple id maybe in the future in order escape from these problems must be stop use these products else. Because of simple user don't know about this technology and sometime just hear from other user that it 's difficult to use then force they change phone that use to handle to another.

    It is a feature to discourage the theft of iPhones by making them useless if resold. It's not going anywhere. It's simple: just don't buy a phone until you make sure that the activation lock has been disabled.

  • Hello I suffer from a problem with your MacBook  There is a black line in screen

    Hello
    I suffer from a problem with your MacBook
    There is a black line in screen
    http://i48.tinypic.com/35apzz8.png

    Is the line always present? If you boot up the MacBook holding down the option key during startup so that you get to the startup manager, is the line still there?
    If so you have a hardware issue and it needs to be repaired. Contact Apple using their Express Lane if you live in a country where that is available, or call the appropriate phone number on this page if not. You can also take the MacBook in to an Apple store or service provider.
    Best of luck.

  • Solved restarting from sleep problem myself.

    Let me tell my case. i have had never problem on restart from sleep.
    because i always use my new octacore 2.8 with TIGER.
    there is some two major reason.
    1, performance is better than Leopard. Leopard is heavier when , mouse movement, some 3d application's rendering speed, and even drag n drop folder etc.
    2, some application i use still run well on Tiger. apple did not consider compatibility with older application at all.
    Because apple did not want user install tiger on new 2008 macpro, i must put out pre-installed tiger HDD from another mac and put into new mac. and it works well. any sleep from restart problem at all. problem is graphic card. i have 2600HD and 1900 XT. if i connect 2600HD, i can't accelerate GPU power in Tiger. it works only in Leopard.and even in sleep mode, but graphic cards fan always run.
    but when i boot use bootcamp to XP, i must connect to 2600HD. 1900XT did not display screen at all. like this i use 2 graphic card.
    I can't sure this problem due to hardware or OS problem, but obvious thing is tiger have never the problem. little problem is card's fan always run even in sleep mode. hope my case could be a clue.

    New firmware has come. and positive reply posting. good job
    i wonder if this new firmware destroy booting Tiger feature or not.
    i must use tiger now. hope apple do not disable tiger running in new macpro.
    any comment will be thanks.

  • HT201442 Please let me install version 6.0.1 for 4g because I suffer from the problem of Wi-Fi

    Please let me install version 6.0.1 for 4g because I suffer from the problem of Wi-Fi
    im
    I am now I can not connect via Wi-Fi Remote
    i wish to respond as quickly as possible

    These are user to user support forums. No one here has the ability to allow installing of specific iOS versions.
    Apple has never allowed downgrading of iOS.
    Troubleshoot the issue using basic troubleshooting from the Users Guide. If the Wi-Fi still does not work then it is a hardware issue and no iOS version can correct that.

  • Refresh package with 'From-Date' Problem

    Hi All,
    I just ran into configuring the Analyze and Specify 'From-Date' problem fro refreshing package.   I've completed the normal package with the starting date 8/30/2008.  Now I am trying to go back and copy and select from 7/30/2008 for the new run during that posting period.  I am not if this is possible but it doesn't allow me to choose any of the option.  If I choose Analyse and deine new 'From-Date' when the screen popup, then choose 7/30, the date is not transfer to the Chosen From Date field at all, and execute.  The system will display he error with  "Evaluation failed. Required customising data no available".  Basically, it doesn't allow me to choose any date.
    Do any of you experiencing the same problem.  Or did I miss any step from the first run?
    Thanks,
    Tai

    Hi Tai,
    Implement the note 1180500 - Activity TD01P_FROM_RFH runs into error in a refresh package.
    Regards,
    Santosh

  • System currently suffers from technical problems. Your order will be processed as soon as possible.

    I placed the order for Creative Cloud and it has been confirmed.
    But I received this email: Our order processing system currently suffers from technical problems. Your order will be processed as soon as possible. This is my second attempt and my order has not been processed.

    if you've waited more than 1 business day, contact adobe support by clicking here and, when available, click 'still need help', https://helpx.adobe.com/contact.html

  • Dual Quad Core - wake from sleep problems

    I have a brand new Quad core 2.8 ATI Radeon, and have experienced both wake from sleep problems within the first week of ownership, more than once. Namely, restart on wake, and/or corrupt graphics-frozen on wake. I haven't called AppleCare, but my question is is it worth it? Is it thought to be a software problem, or a hardware issue? I don't want to go to a lot of trouble if any replacement exhibits the same problem (or worse), but at the same time I feel it is a real issue and should be dealt with under guarantee. What should I do? Suggestions please...

    There's lots of anecdotal data in the forum here and elsewhere, but the bottom line so far is that nobody knows except perhaps the Apple folks that are working on it.
    No one that I've seen posting has identified even a common thread...some machines have the reboot from sleep problem, some have graphics issues, some have both (I'm in the first camp...reboot from wake but no (touch wood) graphic issues.
    It wouldn't hurt to call Apple and get your issues on record; it helps them know the extent of the problem.
    Your warranty is for a year so it's not immediate, especially since there doesn't seem to be a lasting fix available. Resetting SMC and/or PRAM works for some...for a while...
    Right now I'm simply not sleeping the machine (I don't normally do it anyway) and waiting for Apple to come out with a fix. My bet is on a software/firmware fix (there are reports that the problem does not happen in bootcamp/windows, which more or less rules out hardware). But that's a sort of educated guess.
    People have returned the machine only to get the same...or worse. Again, I'm not rushing into that.
    Message was edited by: BillC37

  • DrawString(..) problems on Linux

    I am running an own Java application, now on Linux too, under RedHat. There is a new phenomena never shown on other machines (SGI, Windows, Sun):
    In a ruler canvas a horizontal time-line (like a centimeter) has to be re-painted, with updated cursor position.
    I get the cursor + line pieces right, but the strings containing the digits (100, 200, ...) do not get shown, though the string is there, and the lines in the paint method of the ruler canvas are passed:
    g.drawLine(j, y-longdiv/2, j, y+longdiv/2);
    g.drawString(s, j-fm.stringWidth(s)/2, y-longdiv/2);
    Thus the effect of drawLine is shown, drawString is not. No double-buffering or alike is done.
    BUT if I re-size or scroll the canvas, then the effect of drawString is there. As long as there is no paint() issued from my program, when the cursor position is updated but the digits are not shown.
    Has anybody ran into similar problems? Is this some known bug?
    Thanks,
    Zsofi Ruttkay
    [email protected]

    Hi
    Have you find any solution?
    Karesz

  • Apple Loops from Regions problem...

    Greetings,
        Having a problem when I add a region to Apple Loops in Logic Express 8....
          I've read some similar threads, but nothing that answers these issues..
        After creating a region using the Ultrabeat or a synth (all internal), I'll select the region and go up
           to the 'Region' drop down menu and select the first option, 'Add to apple loops library'...
         I came across this process naturally and it seemed to work fine, but then some of the loops created
             acted differently than others.  When I drag some of them into the Arrage area, and press play,
                they will playback no matter what position they are at.
            For example if I have a beat that starts at 1., but I have the recently added 'problem' loop at 4.,
              this 'problem' loop will play back from 1 as well, no matter if it's at 4, or 24...
           I'm not sure why this is happening to some and not others....???
              Did i accidentally do something to these that I didn't do to the others?
           Also, I figured I'd just delete them and create new ones, but then I couldn't find them ANYWHERE
              on my harddrive!!!???   I really don't get this one...
             I've read about the Apple Loops Utility now and I guess i should use that for future loop creation?
                I really don't understand how the loops I made are no where to be found, not even in the
                     Apple Loops/User Loops folder....
             Would really, really appreciate if someone could help w/ this conundrum!

    Ouch.... That's a real bummer.
    I would recommend trying the "re-conversion" with just a few loops and seeing how it works for you. I've had to do this before as well. I had a library from L7 that I had converted using ALU inside L8's arrange window. For some reason, the loops that I had never used in that project that I had converted were not converted after I deleted the project that I used them in... make sense? not to me either....
    The whole Apple Loop Utility is awesomely useful sometimes and buggy to the point of frustration at others....
    Also, is there any consistent pattern to the "off-timeiness" of the loops? (i.e: only midi loops, only audio loops, only slows down, only speeds up, "choppy", etc...)

  • Start up and waking from sleep problems. early 2011 macbook pro i-7 2.0

    Been having problems with my computer starting up and waking from sleep.  If i shut the lid it wont wake up upon reopening the lid unless i hit the power button.  After hitting the power button it will restart automatically and you hear the chime and the cdrom ejecting , once the gray screen pops up it restarts again this time you hear the cd rom making the ejecting sound twice then it will start up as normal.  Once it finally starts up my date and time has been reset to jan 2008.  Other times when i open the lid hit the power button it does nothing at all.  Even holding the power button for multiple seconds to force shut down it does nothing.  Only way to get it to start up at that power is if i connect the charging cable.  I have tried reseting the smc multiple times with no results and pram(even though it doesnt have anything to do with start up problems just did it anyways).  It all started i last time i updated not completely sure what all updates i got but im still running 10.7.  It seems like a battery issue which would make sense since its nearly 3 years old and i use it extensivly.  Last thing that just started recently after i go threw the whole mess of getting it to start up if i pick it up or nudge it the thing will just shut off out of no where.  Almost like there is a short somewhere, cant really be sure if its linked with the waking up from sleep/start up problems but seems right up the same ally.  Any suggestions to what could be wrong would be greatly apreciated.  Im assuming my battery may be on its last leg but the thing still holds a charge and my battery life hasnt dimished at all so cant really be totally sure.  Thanks agian

    Power or other problems related to unexpected system sleep, shutdown, lights or fans call for an SMC reset. It may not fix the problem but it would be the first thing an Apple Store would do if you were to bring it to them with this complaint.
    If bumping the Mac causes problems it's an intermittent internal connection that the SMC reset is not likely to help.
    Read all the steps.
    Before Resetting the SMC
    Try each of the following steps in this order before you reset the SMC. Test the issue after completing each troubleshooting step to determine if the issue still occurs.
    Press Command + Option + Escape to force quit any application that is not responding.
    Put your Mac to sleep by choosing the Apple () menu from the upper-left menu bar and then choosing Sleep. Wake the computer after it has gone to sleep.
    Restart your Mac by choosing the Apple () menu from the upper-left menu bar and then choosing Restart.
    Shut down your Mac by choosing the Apple () menu from the upper-left menu bar and then choosing Shut Down.
    Resetting the SMC on portables with a battery you should not remove on your own
    Shut down the computer.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if it's not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time. The power adapter indicator light will cycle off / on once.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer.

  • CALLING A REPORT FROM FORMS (PROBLEM)

    MY PROBLEM IS THE NEXT:
    I CREATED A MASTER-DETAIL REPORT CALLING 'ASUNTOS'WITH THE NEXT QUERY:
    SELECT ABOGADOS.APELLIDO_P,ABOGADOS.APELLIDO_M,ABOGADOS.NOMBRES,
    ASUNTOS.EXP_INT,ASUNTOS.MATERIA,ASUNTOS.GERENCIA,
    ASUNTOS.EMPRESA,ASUNTOS.RECLAMA,ASUNTOS.PESOS,
    ASUNTOS.DOLARES
    FROM ABOGADOS,ASUNTOS
    WHERE ABOGADOS.FICHA = ASUNTOS.F_ABOG
    AND ASUNTOS.F_ABOG = :ABOGADO ;
    -- ABOGADO = PARAMETER.
    THIS REPORT WORKS FINE THE PROBLEM IS WHEN I TRY CALL THIS REPORT FROM FORM I'VE USE A BUTTON(WHEN_BUTTON_PRESSED) WITH THE NEXT CODE:
    DECLARE
    LISTA PARAMLIST := GET_PARAMETER_LIST('ABOG');
    BEGIN
    IF ID_NULL(LISTA) THEN
    LISTA := CREATE_PARAMETER_LIST('ABOG');
    ADD_PARAMETER(LISTA,'DESTYPE',TEXT_PARAMETER,'PRINTER');
    ADD_PARAMETER(LISTA,'DESNAME',TEXT_PARAMETER,'LPT2');
    ADD_PARAMETER(LISTA,'ABOGADO',TEXT_PARAMETER,TO_CHAR(:ASUNTOS.F_ABOG));
    -- ADD_PARAMETER(LISTA,'PARAMFORM',TEXT_PARAMETER,'YES');
    END IF;
    RUN_PRODUCT(REPORTS,'ASUNTOS',SYNCHRONOUS,RUNTIME,FILESYSTEM,LISTA,NULL);
    END;
    BUT THE REPORT NOTHING DISPLAY.
    THERE ARE SOMETHING WRONG WITH THE CODE IN THE BUTTON

    Roberto,
    Does your report work when it is not called from Forms?
    try the following:
    [TOOLS_HOME]\BIN\RWRUN60 module=ASUNTOS destype=screen userid=<username>/<password>@<tns> ABOGADO=<some_valid_code>
    where TOOLS_HOME is the directory where Reports is installed.
    I can see nothing wrong with your code.
    Maybe some error in the query?
    Also, I would check for the existence of multiple ASUNTOS report definitions. Maybe Forms is calling an older one.
    Hope this helps,
    Pedro das Neves
    ([email protected])

  • Mac Mini using dual-link to ACD 30" wake from sleep problem?

    I have a new mac mini and rather new 30"ACD using the display port via dual link adaptor. The screen looks find but sometimes when I put the mini to sleep and turn the display off, and then turn the display on and wake the mac mini, nothing appears on the display. I don't think it is every time, but it occurs. I have my keyboard attached to the display with the usb connection, and so I can choose from the display options to turn the mac mini off or put to sleep when turning off the display manually. I have used this sometimes but prefer not to.
    When the display doesn't show any image I have to hard shut down the mac mini, then start it up and leave the display on, then the image shows up.
    Is there a solution to this? I don't mind using any one surefire way to wake the whole system wake from sleep. Either turn off or turn on the option where turning off screen also brings up option to put mac mini to sleep or turn off. Don't use that option at all. Attach the keyboard only to the mac mini directly, etc.
    Any solutions would be appreciated.

    What is the firmware version of your Mini DisplayPort to Dual-Link DVI Adapter? I've read many reports on how this particular piece of Apple kit is just not working properly (http://www.9to5mac.com/DisplayPort-Dual-Link-DVI-Adapter, http://foliovision.com/2009/12/20/apple-dual-dvi-mini-displayport-adapter-mb571z).
    I've seen some people report that running firmware version 1.02 (or now 1.03?) solves their problems. I've also heard that people have had to resort to actually exchange their adapter in an Apple Store and hunt through new boxes to find adapters with the proper firmware version.

  • Time Stamp format from file problem

    Hey there,
    I have a pretty peculiar problem. I'm working on two PCs right now, one is my private laptop running on Windows 8, and the other one the PC at my workplace, running on Windows XP, but on the same version of LabVIEW. I use this method to save the time and date to a tab delimited .txt file. Then later, with another VI, I read the date and time written to file to reconstruct the time stamp. I've noticed that dates written to file from my workplace differ from the dates written from my private PC: in Windows XP, there are "-" separating the day, month and year. In Windows 8, it's "/". There are other differences (see pictures). So naturally, when reading from file using my VI, I can only read on my private PC files (or at least dates) written on my private PC and vice versa, I can't read files written on my private PC on my workplace PC. Can anybody tell me why there's a difference in format, or how to write the date uniformly so I can read it on any PC, or how to read both formats?
    So this is the method I use for writing the time and date (the subVI only inserts a certain number of TAB characters).
    This is what it looks like on Windows 8
    This is what it looks like on Windows XP
    This is the VI (attached) I use to read the time stamps (the first row actually contains the time stamp in HH:MM: SS format for a whole bunch of measurements).
    Have a nice day.
    Solved!
    Go to Solution.
    Attachments:
    Extract Time Stamps.vi ‏22 KB

    I would suggest using the ISO-8601 UTC format.
    The only limitation is that the string value is in reference to GMT.
    The conversion of the string back to a timestamp will present the date/time on your front panel indicator as local time.
    https://lavag.org/topic/15034-timestamp-support-for-format-into-string-scan-variant-from-string-stri...
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • New mac mini 2009 from box problems

    Hi, i am from Ukraine, my English is not good. It's bad. Smile
    But, i have problems whith my Mac Mini.
    My friend bought me a mac in USA and post it to me. When i unpack it and try to connect to my monitor i had a problem.
    Mini tunr on and LED turn on and cooler turn on. Smile, but no power on USB (mouse and keyboard) and no video signal. When it's turn on LED is white in 5 sec., then it's turn off for a 1 sec. ant again turn on. Cooler work very silent. CD drive is not working. Sad
    I try to connect mini to my ASUS PW201 monitor and Samsung SM 932b via MINI DVI to DVI connector. Can i connect via miniDVD-DVI+DVI-VGA(no Apple) connector?
    Reset the System Management Controlle, PMU, SMU, PRAM and NVRAM did't help me.
    Sorry for my English.

    Hi,I'm using an older Intel Mac mini. I've used it with three different displays. When I use a "DVI to HDMI" cable the mini will boot, I get the Gray Screen, the Spinning Wheel, then everything goes BLACK for a second then the Desktop appears. With a "DVI to VGA" cable it boots fine without the monitor going BLACK for a second. You might try using a different cable combination.
    You can easily (easy is relative) drop in a different Hard Drive. You will need to reformat the drive so it will be compatible with your Mac. You can use your install disc to reformat the new dhttp://www.ifixit.com/Apple-Parts/Mac-mini-1-TB-Upgrade-Kit/IFrive, then you can install Leopard from that disc.

Maybe you are looking for

  • How to select Variable from Drop Down Queries - WAD 7.0

    Hello All, I've scenario where users will click on link and should see the default data of Daily and also have drop down box in the same web template where Weekly, Monthly, Quarterly and others must be displayed so that user can switch back & forth b

  • Error on file adapter (GENERAL_ERROR on XI_J2EE_ADAPTER_XI_HANDLER )

    Hi Experts, I have just configured a sender file adapter  with content conversion in a PI 7.0. I will try to explain the problem: 1. I put the text file on the selected folder, to be taken. 2. The file is taken from the folder and archived in the arc

  • Invitation to join a Skype Manager, followed by or...

    Around 5 AM I received an email with an invitation to join a skype manager, then a few minutes later a group of emails in a foreign language looking like order confirmations. I've never had a payment account associated with my Skype account so I don'

  • Monitor user logins

    How can I know how many times a certain user did logged in. I would like a chart on logins by users. Don't know if is important but I'm using SSO authentication. Thanks

  • How to call java classed in forms 10g

    Hi I am using forms 10g There is a java class email_class (to send emails and attachments). this java class (email_class) has further used two moere .jar files (activation.jar & mail.jar). Now I want to use this java class (email_class) in my form to