Javascript/HTML question

I've been teaching myself Java on and off for the past couple years with the help of these forums and other tutorials. Now I've decided to take on a project that requires the use of HTML and Javascript and I can't seem to find the information I need. I was hoping that somebody from these forums could either answer my questions and/or point me in the right direction to find the answers.
The project is simple. I created an HTML window with an inputTextArea, an outputTextArea, and two buttons (Submit and Reset). When Submit is pressed I need the program to take the text from inputTextArea one line at a time, check the indexOf a string, and add tags at the beginning and end of the string if it meets certain criteria before appending it to outputTextArea.
I can (and have) written this very easily in Java but I can't seem to find the methods I need in Javascript. In java I use a java.io LineReader to read the inputTextArea.getText() one line at a time and then make the changes as needed. I actually can't even find a tutorial in Javascript that can explain how to take the text from inputTextArea and print it into outputTextArea.
So the main thing I need to know is how to read one line of text at a time from the inputTextArea. I think I can figure the rest out.

That was actually my original thought when I started on the Java version of the program but I couldn't figure out how to enter the the carriage return in as a variable to be indexed. So it wasn't until after I found the LineReader that I was able to complete the Java version.
Is there some way to enter the carriage return in as a searchable variable?

Similar Messages

  • Javascript/html question about popup window title

    I am displaying an uploaded pdf file using wpg_docload.download_file in a popup window (using javascript open).
    How can I change the title of this popup window.

    Thanks to Jes (John Scott at shellprompt.net) for a solution for my version of this problem; set the Content-Disposition in the HTTP header to indicate your required filename. Example:
    I have an 'On-Load - Before Header' process on the ApEx page I want to use 'host' my PDF document generator. The page is called from a popup JavaScript call, allowing us to rely on ApEx authorisation and authentication. The Source of this process looks like the following:
    declare
    myblob blob;
    begin
    -- Call procedure to gereate PDF document in a blob and pass it back
    myprocedure_to_generate_blob( in_parameter, in_parameter, myblob);
    owa_util.mime_header('application/pdf',false);
    htp.p('Content-Length: ;||dbms_lob.getlength(myblob));
    -- This line sets the filename (which could be dynamic)
    htp.p('Content-Disposition: attachment;filename=mypdffile.pdf');
    owa_util.http_header_close;
    wpg_docload.download_file(myblob);
    -- Stop Apex from trying to render more of the page (we've finished)
    htmldb_application.g_unrecoverable_error := true;
    end;

  • Javascript opoup question?

    My question is
    in window.open() if i give resizable=no and scrollbars=no is working fine in IE but not working in mozilla
    anyone can help?
    Thank You,
    Sreenu.G

    gantinapalli wrote:
    even specifying the width and height also it's not workingYou did something wrong.
    This example works in all browsers here:
    <html>
        <head>
            <title>Test</title>
        </head>
        <body>
            <button onclick="window.open('http://google.com', 'test', 'width=500px, height=300px, resizeable=no, scrollbars=no')">test</button>
        </body>
    </html>And in the future please post Javascript related questions at a Javascript forum. This has nothing to do with JSF. There are JS forums at dynamicdrive.com and webdeveloper.com.

  • Can I use JavaScript HTML Portlet and PDK Portlets

    Can I use JavaScript HTML Portlet and PDK Portlets?
    My Script works fine with the an HTML portlet but it always gives a an Error Message in the status bar is that normal...
    Other then that I have JavaScript in my PDK portlet page it does not work.. it is the the same javascript I use for in my HTML portlet which works in HTML portlets..

    You'll have to place your JavaScript in the header section of your Portal page. To do so, use HTML/UI templates. For more information, refer to the How to Design and Build Compelling Portal Interfaces whitepaper.
    Good luck,
    Peter

  • JavaScript/HTML notification problem

    Below problems are in JavaScript/HTML only. In Flex both works well.
    In JavaScript/HTML on Mac, dock icon bounces only once in CRITICAL.
    Below 3 cases(type, CRITICAL, "aaa"), same results.
    How do I use JavaScript code to react doc icon repeatedly?
    function notify() {
    if (air.NativeApplication.supportsDockIcon) {
    var critical = document.getElementById("critical");
    var type = (critical.checked ? air.NotificationType.CRITICAL : air.NotificationType.INFORMATIONAL);
    //air.NativeApplication.nativeApplication.icon.bounce(type);
    //air.DockIcon(air.NativeApplication.nativeApplication.icon).bounce(air.Notific ationType.CRITICAL);
    air.NativeApplication.nativeApplication.icon.bounce("aaa");
    function setListener()
    nativeWindow.addEventListener(air.Event.DEACTIVATE, notify);
    </script>
    </head>
    <body onload="setListener()">
    And I have another problem on Windows just as Mac.
    Below cases(type, CRITICAL, ,no argumens) are same results.
    Application windows and taskbar flash only once.
    How do I use JavaScript code to flash window and taskbar??
    function notify(){
    if(air.NativeApplication.supportsSystemTrayIcon && air.NativeWindow.supportsNotification) {
    var critical = document.getElementById('critical');
    var type = (critical.checked ? air.NotificationType.CRITICAL : air.NotificationType.INFORMATIONAL);
    window.nativeWindow.notifyUser(type);
    //window.nativeWindow.notifyUser(air.NotificationType.CRITICAL);
    //window.nativeWindow.notifyUser();
    function setListener(){
    window.nativeWindow.addEventListener(air.Event.DEACTIVATE, notify);
    </script>
    </head>
    <body onLoad="setListener()">

    I've got the same problem.
    Using Javascript/HTML the icon only bounces once in OS X and the system tray doesn't even highlight in Windows XP Pro for me.
    I have also tried every permutation of use for:
    air.NativeApplication.nativeApplication.icon.bounce(air.NotificationType.CRITICAL);
    -- and --
    air.NativeApplication.stage.nativeWindow.notifyUser(air.NotificationType.CRITICAL);
    And still nothing works as you describe  in:
    http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7dcd. html
    -- and --
    http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7dcb. html
    any suggestions as to how I can overcome this issue would be appreciated.

  • Pass a value from a PL/SQL function to a javascript (html header) ? ?

    Hey Guys,
    Have a question regarding how to pass a value from a PL/SQL function to a javascript in the HTML Header.
    I have created a PL/SQL function in my database, which does looping.
    The reason for this is:  On my apex page when the user selects a code, it should display(or highlight buttons) the different project id's present for that particular code.
    example= code 1
    has project id's = 5, 6, 7
    code 2
    has project id's = 7,8
    Thank you for your Help or Suggestions
    Jesh
    The PL/SQL function :
    CREATE OR REPLACE FUNCTION contact_details(ACT_CODE1 IN NUMBER) RETURN VARCHAR2 IS
    Project_codes varchar2(10);
    CURSOR contact_cur IS
    SELECT ACT_CODE,PROJECT_ID
    FROM ACTASQ.ASQ_CONTACT where ACT_CODE = ACT_CODE1;
    currec contact_cur%rowtype;
    NAME: contact_details
    PURPOSE:
    REVISIONS:
    Ver Date Author Description
    1.0 6/25/2009 1. Created this function.
    BEGIN
    FOR currec in contact_cur LOOP
         dbms_output.put_line(currec.PROJECT_ID || '|');
         Project_codes := currec.PROJECT_ID|| '|' ||Project_codes;
    END LOOP;
    RETURN Project_codes;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    WHEN OTHERS THEN
    -- Consider logging the error and then re-raise
    RAISE;
    END contact_details;
    /

    Jesh:
    I have made the following modifications to your app to get it to work as I thing you need it to.
    1) Changed the source for the HTML Buttons Region(note use of id vs name for the Buttons)
    <script>
    function hilitebtn(val) {
    //gray buttons
    $x('graduate').style.backgroundColor='gray'
    $x('distance').style.backgroundColor='gray'
    $x('career').style.backgroundColor='gray'
    $x('photo').style.backgroundColor='gray'
    //AJAX call to get project-ids
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=GETPROJECTS',0);
    get.addParam('x01',val)
    gReturn = get.get();
    var arr=gReturn.split(':');  //dump into array
    get = null;
    for (i=0;i<arr.length;i++) {
    // alert('val=' + arr);
    if ( arr[i]==5)
    $x('graduate').style.backgroundColor='red';
    if ( arr[i]==6)
    $x('distance').style.backgroundColor='red';
    if ( arr[i]==7)
    $x('career').style.backgroundColor='red';
    if ( arr[i]==8)
    $x('photo').style.backgroundColor='red';
    </script>
    <table cellpadding='0' cellspacing='0' border='0'>
    <tr><td>
    <input type='button' id='graduate' value='Graduate'>
    </td>
    <td>
    <input type='button' id='distance' value='Distance'>
    </td>
    <td>
    <input type='button' id='career' value='Career/Tech'>
    </td>
    <td>
    <input type='button' id='photo' value='Photos'>
    </td>
    </tr></table>
    2) Defined the application process  GETPROJECTS as DECLARE
    IDS varchar2(1000);
    l_act_code varchar2(100) :=4;
    begin
    IDS:='';
    l_act_code := wwv_flow.g_x01;
    for x in(
    SELECT ACT_CODE,PROJECT_ID
    FROM ASQ_CONTACT
    where ACT_CODE = l_act_code)
    LOOP
    IDS := IDS || X.PROJECT_ID|| ':' ;
    END LOOP;
    HTP.PRN(IDS);
    END;
    3) Changed the 'onchange' event-handler on p1_act_code to be 'onchange=hilitebtn(this.value)'
    4) Added the JS to the HTML Page Footer <script>
    hilitebtn($v('P1_ACT_CODE'));
    </SCRIPT>

  • AJAX - JavaScript - HTML

    Hi all,
    I am currently trying to find editors or IDEs for AJAX,HTML,Java.
    I am currently using Eclipse for my JAVA projects. Can you please suggest me which editor do you prefer to write html,javascript, or AJAX. I am not really interested in visual editing just code.
    Thank you all take care
    Adam

    You'd be better off posting this question in an HTML, Javascript or AJAX forum.

  • Will Adobe AIR apps work on iOS (Javascript/HTML)?

    Hello,
    I haven't been able to find any definitive answer on whether Adobe AIR apps using Javascript and HTML can work on iOS.
    Anyone know for sure?
    And if so, what happens with the APIs available through these swfs that we currently include:
    networkInfoWrapper.swf
    servicemonitor.swf
    applicationupdater_ui.swf
    Many thanks
    Stephen

    The answer is no. Apps developed for AIR using HTML and JavaScript are not supported on iOS or other mobile platforms. The mobile platforms do include a StageWebView component that can be used to load and display HTML and JavaScript. However, it is entirely different than the HTMLLoader control used on the desktop platforms (for HTML-based AIR apps). You cannot, for example, call any AIR/Flash APIs from JavaScript running in a StageWebView. In general, very little communication is possible between your ActionScript application code and the JavaScript code running in the StageWebView object.

  • IWeb Newbie: Blog HTML Question

    Hi, I'm relatively new to IWeb and have a question relating to blogs created in Iweb. When I create a new entry for my blog, and try to add a video for youtube (as a link) in place of the default picture, the video does not appear on my main page. I have used the html snippet and see the video on my blog entry page, however it does not appear on my main page. How do I go about including video's in a new blog entry page so I can view them directly from my main (intro) page? Any help would be much appreciated.
    Thanks

    I am using the Modern Frame template for my web site. When I add the blog template, a pre-set template shows up. Is there any way to edit or change it?
    no and yes... no, you can't do much of anything while working inside iweb; yes, you can change it by changing the template xml file. Suzanne Boben at 11Mystics.com have done it for years.
    For example, I would like to change the hyperlink color from red to blue. It won't let me do that. I go to the hyperlink inspector and I can't choose anything.
    outside of changing template xml, this can be done in two ways (beside the above method):
    1) post edit the blog CSS file (search my post for blog CSS), this requires post edit and perhaps after every publishing.
    2) build your own widget to change the blog CSS and you only need to add the widget once. see my example here: http://www.cyclosaurus.com/Home/CyclosaurusBlog/CyclosaurusBlog.html
    the example is done with my widget.
    Also, when I view the web site on my computer, it looks fine, however when I view it on my iphone 3GS it shows an old font that I was using, why?
    iweb fontmapping: http://11mystics.com/2008/10/06/faq-managing-the-way-fonts-display-on-a-windows- pc/

  • JavaScript FileUpload Question...

    Hi there!
    I'm uploading a file using the JavaScript code below. Is it possible to change the default browse button, to for example an image? If not, can the uploading be done using another language?
    ...<INPUT TYPE="file" NAME="x">....
    Best regards
    Paul

    Hi,
    Check out this link.
    http://developer.iplanet.com/docs/examples/java/file_uploading.html
    Hope this helps.
    Regards,
    Roopasri Vittal
    Developer Technical Support
    Sun Microsystems
    http://sun.com/developers/support

  • XML Vs Javascript/HTML

    Hi! All JDeveloper's Support Group. Normally
    I used Javascript and HTML to create my
    webpage. But recently, I found that XML
    is very much better. Can the code in my
    present Javascript and HTML be enhanced but
    with the mixture of XML? Will the output
    be browsable with any browser, that is,
    IE or Netscape or other browser? Pls let
    me know soon. Thanks & best regards.

    You might want to check out Oracle's XSQL Servlet. It's a free web publishing framework that caters to SQL/XML/XSLT/Java publishing of database information over the web.
    JDev 3.2 ships with BC4J-integration for XSQL Servlet as well.
    http://technet.oracle.com/tech/xml
    Click on "XDK for Java".

  • Javascript, HTML, and some pictures

    Hello.
    Some background.
    We have Sharepoint Online 2013...the version that comes with the current Office 365 for businesses.  On one of our sharepoint sites, we want to create a rotating image.  I have put together for testing purposes an html file that will randomly rotate
    through a series of images. 
    I can embed the html and javascript into a page easy enough but where can I put image files, and how to I reference those in my code?

    Hi,
    A common practice is that you can upload the images to a Document Library in the current site, then you can get the URL of the images like this:
    We can see that, the path of images will have a similar structure and you can take use of it in your code easily.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Javascript button question

    I need to find the right script to make an "Add Name" button on a  html page, so that when it is clicked the name replaces the button.  Or is inside the button.
    Thank you.

    Acrobat Javascript can't modify HTML pages.

  • ExternalInterface to Javascript/Html Issue

    AdobeTV showed a way to allow Flash to "talk" to an HTML page via javascript using the ExternalInterface method. There seems to be a catch. You need to use the ID of the swf in the parameters to have it all fit together and you can only put the ID="swf" into the IE section of the Dreamweaver generated javascript or into the non-IE section. Putting it in both didn't work and the author mentioned only putting in one of them specifically.
    Is there a way to do this that would work in both sets of generated Javascript?

    use:
    import ....ExternalInterface;
    ExternalInterface.call("yourJSfunction",<parameters>);

  • JLabel/html question

    how do you make a tab in html within a JLabel text.
    also how do you get rid of the bold that seems to be on every J label?

    Thanks Kel, I'm not using metal, but maybe that third line should do what I want?
    and Quack, I do whole heartedly agree with you, but this is something that I HAVE to finish by tomorrow. Considering I had quite a good bit more to do, and the way that I have done it seems to work just fine, I decided to leave it as is. If I finish with enough time, I will likely go back and implement that cardLayout like you suggested.
    Although I am curious, what is wrong specifically with how I have done it? (As for how the GUI components are changed)
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.text.*;
    import java.util.*;
    public class Holder extends JFrame implements ActionListener
        static Scanner scan;
        static int returnFileVal;
        static int index;
        static int totalEmployees;
        static double grossPayCalc;
        static double totalGross;
        static double totalFICA;
        static double totalFED;
        static double totalInsur;
        static double totalNet;
        static String data;
        static String totals;
        static File file;
        static ArrayList TermCode = new ArrayList();
        static ArrayList EmpID = new ArrayList();
        static ArrayList FName = new ArrayList();
        static ArrayList MName = new ArrayList();
        static ArrayList LName = new ArrayList();
        static ArrayList Suffix = new ArrayList();
        static ArrayList HourRT = new ArrayList();
        static ArrayList HourWK = new ArrayList();
        static ArrayList Dep = new ArrayList();
        static ArrayList Insur = new ArrayList();
        static ArrayList YTDGR = new ArrayList();
        static ArrayList YTDFICA = new ArrayList();
        static ArrayList YTDFED = new ArrayList();
        static ArrayList grossPay = new ArrayList();
        static ArrayList FICA = new ArrayList();
        static ArrayList FED = new ArrayList();
        static ArrayList netPay = new ArrayList();
        static ArrayList dataList = new ArrayList();
        static Holder f;
        static Container c;
        static JPanel homePanel = new JPanel();
        static JPanel firstRow = new JPanel();
        static JPanel secondRow = new JPanel();
        static JPanel thirdRow = new JPanel();
        static JPanel fourthRow = new JPanel();
        static JPanel fifthRow = new JPanel();
        static JPanel sixthRow = new JPanel();
        static JPanel seventhRow = new JPanel();
        static JPanel eighthRow = new JPanel();
        static JPanel ninthRow = new JPanel();
        static JLabel hoursWorkedLabel = new JLabel("Default hours worked:");
        static JTextField hoursWorkedField = new JTextField("40",2);
        static JButton processButton = new JButton ("Process payroll for all non-terminated employees");  
        static JButton closeButton = new JButton ("End Program");
        static JLabel chooseFileLabel = new JLabel("Select the payroll file");
        static JFileChooser fc = new JFileChooser();
        static JPanel filePanel = new JPanel();
        static JTextField fileChooseField = new JTextField(25);
        static JButton fileChooseButton = new JButton("Find");
        static JButton fileOKButton = new JButton("Process");
        static JButton fileBackButton = new JButton ("Back");
        static JPanel processPanel = new JPanel();
        static JLabel pleaseSelectLabel = new JLabel("Please select an option.");
        static JButton payrollJournalButton = new JButton("View the payroll journal");
        static JButton checkButton = new JButton ("View the checks");
        static JButton checkStubButton = new JButton ("View the check stubs");
        static JLabel payrollJournalTitle = new JLabel("<html><b><u>Payroll Journal</u></b></html>");
        static JButton payrollBack = new JButton("Back");
        static JPanel payrollPanel = new JPanel();
        static JList payrollList = new JList();
        static JLabel payrollEmployeeData = new JLabel();
        static JLabel payrollSubtitles = new JLabel ("EmpID\t\tName\t\tGross Pay\t\tFICA\t\tFED\t\tInsur\t\tNet Pay");
        static JLabel payrollTotals = new JLabel();
        static JScrollPane payrollScroll = new JScrollPane();
        public static void main(String[] args)
            f = new Holder();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setSize(450,300);
            f.setTitle("Payroll");
            f.setResizable(false);
            f.setLocation(200,200);
            f.setVisible(true);
            createHome();
        public Holder()
            c = getContentPane();
        public void actionPerformed(ActionEvent e)
        public static void createHome()
            firstRow.removeAll();
            secondRow.removeAll();
            thirdRow.removeAll();
            homePanel.removeAll();
            homePanel.setLayout(new GridLayout(3,1));
            FlowLayout rowSetup = new FlowLayout(FlowLayout.CENTER);
                firstRow.setLayout(rowSetup);
                secondRow.setLayout(rowSetup);
                thirdRow.setLayout(rowSetup);
            firstRow.add(hoursWorkedLabel);
            firstRow.add(hoursWorkedField);
            secondRow.add(processButton);
            thirdRow.add(closeButton);
            homePanel.add(firstRow);
            homePanel.add(secondRow);
            homePanel.add(thirdRow);
            closeButton.addActionListener(new endProgram());
            processButton.addActionListener(new processPayroll());
            c.remove(filePanel);
            c.add(homePanel);
            c.validate();
            c.repaint();
        public static void createPayroll()
            filePanel.removeAll();
            filePanel.setLayout(new GridLayout(3,1));
            FlowLayout rowSetup = new FlowLayout(FlowLayout.CENTER);
                firstRow.setLayout(rowSetup);
                secondRow.setLayout(rowSetup);
            firstRow.removeAll();
            secondRow.removeAll();
            thirdRow.removeAll();
            fileChooseButton.addActionListener(new fileChooser());
            fileBackButton.addActionListener(new fileBack());
            fileOKButton.addActionListener(new processFinal());
            firstRow.add(chooseFileLabel);
            secondRow.add(fileChooseField);
            secondRow.add(fileChooseButton);
            thirdRow.add(fileBackButton);
            thirdRow.add(fileOKButton);
            filePanel.add(firstRow);
            filePanel.add(secondRow);
            filePanel.add(thirdRow);
            c.remove(homePanel);
            c.add(filePanel);
            c.validate();
            c.repaint();
        public static void processFinal()
            try
                scan = new Scanner(new BufferedReader(new FileReader(file)));
            catch(IOException io)
                System.out.println("The file cannot be opened");
            scan.useDelimiter(",");
            index = 1;
            totalEmployees = 0;
           while (scan.hasNext())
               int type = index%13;
               switch (type)
                    case 1: TermCode.add(scan.next());
                            totalEmployees++;
                            break;
                    case 2: EmpID.add(new Integer(scan.next()));
                            break;
                    case 3: FName.add(scan.next());
                            break;
                    case 4: MName.add(scan.next());
                            break;
                    case 5: LName.add(scan.next());
                            break;
                    case 6: Suffix.add(scan.next());
                            break;
                    case 7: HourRT.add(new Double(scan.next()));
                            break;
                    case 8: HourWK.add(new Integer(scan.next()));
                            break;
                    case 9: Dep.add(new Integer(scan.next()));
                            break;
                    case 10:Insur.add(new Double(scan.next()));
                            break;
                    case 11:YTDGR.add(new Double(scan.next()));
                            break;
                    case 12:YTDFICA.add(new Double(scan.next()));
                            break;
                    case 0: YTDFED.add(new Double(scan.next()));
                            break;
                index++;
            for (index = 0; index < totalEmployees; index++)
                if ((Integer)HourWK.get(index) > 40)
                    grossPayCalc = (((Integer)HourWK.get(index)-40)*(Double)HourRT.get(index)*1.5);
                    grossPayCalc += (40*(Double)HourRT.get(index));
                else
                    grossPayCalc = ((Integer)HourWK.get(index)*(Double)HourRT.get(index));
                grossPay.add(grossPayCalc);
                FICA.add((Double)grossPay.get(index)*.0765);
                FED.add((290-65*(Integer)Dep.get(index))*.15);
                netPay.add((Double)grossPay.get(index)-((Double)FICA.get(index)+(Double)FED.get(index)+(Double)Insur.get(index)));
            firstRow.removeAll();
            secondRow.removeAll();
            thirdRow.removeAll();
            c.remove(filePanel);
            processPanel.setLayout(new GridLayout(4,1));
            FlowLayout rowSetup = new FlowLayout(FlowLayout.CENTER);
                firstRow.setLayout(rowSetup);
                secondRow.setLayout(rowSetup);
                thirdRow.setLayout(rowSetup);
                fourthRow.setLayout(rowSetup);
            firstRow.add(pleaseSelectLabel);
            secondRow.add(payrollJournalButton);
            thirdRow.add(checkButton);
            fourthRow.add(checkStubButton);
            payrollJournalButton.addActionListener(new viewJournal());
            processPanel.add(firstRow);
            processPanel.add(secondRow);
            processPanel.add(thirdRow);
            processPanel.add(fourthRow);
            c.add(processPanel);
            c.validate();
            c.repaint();
        public static void createFileChooser    ()
            returnFileVal = fc.showOpenDialog(filePanel);
            if (returnFileVal == JFileChooser.APPROVE_OPTION)
                file = fc.getSelectedFile();
            fileChooseField.setText(file.toString());
        public static void createJournal()
            f.setSize(700,500);
            firstRow.removeAll();
            secondRow.removeAll();
            thirdRow.removeAll();
            fourthRow.removeAll();
            c.remove(processPanel);
            payrollPanel.setLayout(new GridLayout(9,1));
            FlowLayout rowSetup = new FlowLayout(FlowLayout.CENTER);
                firstRow.setLayout(rowSetup);
                secondRow.setLayout(rowSetup);
                thirdRow.setLayout(rowSetup);
                fourthRow.setLayout(rowSetup);
                fifthRow.setLayout(rowSetup);
                sixthRow.setLayout(rowSetup);
                seventhRow.setLayout(rowSetup);
                eighthRow.setLayout(rowSetup);
                ninthRow.setLayout(rowSetup);
           data = new String("<html>");
           for (index = 0; index < totalEmployees; index++)
               data += (Integer)EmpID.get(index);
               data += "\t\t";
               data += ((String)FName.get(index) + " ");
               if (((String)MName.get(index)).equals(" ")==false)
                   data += ((String)MName.get(index) + ". ");
               data += ((String)LName.get(index) + " ");
               data += (String)Suffix.get(index);
               data += "\t\t";
               data += (Double)grossPay.get(index);
               data += "\t\t";
               data += (Double)FICA.get(index);
               data += "\t\t";
               data += (Double)FED.get(index);
               data += "\t\t";
               data += (Double)Insur.get(index);
               data += "\t\t";
               data += (Double)netPay.get(index);
               data += "</br>";
           data += "</html>";
           for (index = 0; index < totalEmployees; index++)
               totalGross += (Double)grossPay.get(index);
               totalFICA += (Double)FICA.get(index);
               totalFED += (Double)FED.get(index);
               totalInsur += (Double)Insur.get(index);
               totalNet += (Double)netPay.get(index);
           totals = new String ("Final Totals\t\t\t\t" + totalGross + "\t\t" + totalFICA + "\t\t" + totalFED + "\t\t" + totalInsur + "\t\t" + totalNet);
           payrollTotals.setText(totals);
           payrollEmployeeData.setText(data);
           firstRow.add(payrollBack);
           payrollBack.addActionListener(new processPayroll());
           secondRow.add(payrollJournalTitle);
           fourthRow.add(payrollSubtitles);
           fifthRow.add(payrollEmployeeData);
           eighthRow.add(payrollTotals);
           payrollPanel.add(firstRow);
           payrollPanel.add(secondRow);
           payrollPanel.add(thirdRow);
           payrollPanel.add(fourthRow);
           payrollPanel.add(fifthRow);
           payrollPanel.add(sixthRow);
           payrollPanel.add(seventhRow);
           payrollPanel.add(eighthRow);
           payrollPanel.add(ninthRow);
            c.add(payrollPanel);
            c.validate();
            c.repaint();
    class endProgram implements ActionListener
        public endProgram()
        public void actionPerformed(ActionEvent e)
            int answer = JOptionPane.showConfirmDialog(null,"Are you sure you want to end the program","f",JOptionPane.YES_NO_OPTION);
            if (answer == JOptionPane.YES_OPTION)
            System.exit(0);
    class processPayroll implements ActionListener
        public processPayroll()
        public void actionPerformed(ActionEvent e)
            Holder.createPayroll();
    class fileChooser implements ActionListener
        public fileChooser()
        public void actionPerformed(ActionEvent e)
            Holder.createFileChooser();
    class fileBack implements ActionListener
        public fileBack()
        public void actionPerformed(ActionEvent e)
            Holder.createHome();
    class processFinal implements ActionListener
        public processFinal()
        public void actionPerformed(ActionEvent e)
            Holder.processFinal();
    class viewJournal implements ActionListener
        public viewJournal()
        public void actionPerformed(ActionEvent e)
            Holder.createJournal();

Maybe you are looking for

  • Create a Button on a Query

    Hello, I want to know how can I put a Button on a Query. I want to put a Print Button. I know that in the left button there is a option to print. I want to know if I can put that option as a Button directly in the web page of the query. Thank you in

  • Human Task attachments in UCM - 11.1.1.5 pre-FeaturePack release

    Hi Hope you are doing fine I have a scenario where I want to attach files in email notifications to users as part of a Human task of a BPM Process. The documents are in UCM, and are to be retrieved and attached. I've got this post but HumanTask wizar

  • BPM Suite 11.1.1.5 Feature Pack - Instance Migration

    Hi, In BPM Suite 11.1.1.5 Feature Pack, Instance Migration was introduced. A very nice and essential feature. I'd like to investegate the behaviour of this feature. However I can't find any documentation about it. Also not in the new documentation. A

  • [solved] Cannot install Evince

    Hello! I am new to Archlinux and have just recently installed it. I have a problem with getting a pdf reader though. I am trying to install Evince and when I give the command pacman -Ss evince I get the following respond: extra/evince 2.28.1-1 (gnome

  • Using the mouse wheel

    Hi all, I have a flash movie which contains 4 verrtical buttons. The movie will be used with only a scroll wheel, so I will need to replace the tab and shift+tab focus functions with mousewheel movements. Is it possible? Does anyone have an idea for