Trouble with VI for drawing an arbitrary shape using mouse control.

I have attached the vi which i am really struggling with. Basically, i want to select n points using the mouse clicks and then draw a shape connecting those points by using 
a boolean LED to move smothely through points in order and back to the first point. i have noticed that when the gradient between two is negative the LED goes in opposite direction unexpectedly.
I really dont know how to fix this.
Any help will be appreciated.
Solved!
Go to Solution.
Attachments:
arbitrarymovement.vi ‏24 KB

Hello gurucode
I have made the changes in the VI, once again to the best of my understanding. 
Problems with the code (if you have a straight line parallel to the y axis the movement is super fast)
i've left that one for you to play around with set to your liking 
PS. If you have some free time, you may want to look into design patterns, they are pretty cool and help manage your code better 
Links :
http://www.ni.com/white-paper/7595/en/
http://www.ni.com/white-paper/3023/en/
Derick Mathew
Attachments:
arbitrarymovementfinal.vi ‏26 KB

Similar Messages

  • The updated iPhoto program is cumbersome.  I am trying to create a Christmas card and can't figure out how to get the fold of the card on the left and not on the top of the card.  I had no trouble with this for the past two years.  Can someone help?

    The updated iPhoto program is cumbersome.  I am trying to create a Christmas card and can't figure out how to get the fold of the card on the left and not on the top of the card.  I had no trouble with this for the past two years.  Can someone help?

    Click on the Layout button lower right and choose a Vertical lyout from the dropdown

  • Having trouble with the messages on mac my friends using it are coming not registered when i try to send them a message

    having trouble with the messages on mac my friends using it are coming not registered when i try to send them a message

    That's probably because they're not registered.
    Messages only works if your friend has an iphone.
    There is a workaround that can work, though.
    set up an AIM account online.
    in System preferences > mail, contacts, and calendars, enter your new AIM account.
    in Contacts, on your friend's contact card, look for AIM. Enter their phone number right before that, with a +1 before it, and the area code:  i.e., +11234567899.
    This doesn't always work. Their cellular carrier has to cooperate with AIM. Some do, some don't. If it doesn't work, tell your friend to get an iPhone.

  • I have problem with fonts for my site, i have used "Lucida sans unicode " family for certain texts. it shows perfect in mozilla 3.5 and mozilla 4. But the font not supporting in mozilla 5.0? please help me

    i have problem with fonts for my site, i have used "Lucida sans unicode " family for certain texts. it shows perfect in mozilla 3.5 and mozilla 4. But the font not supporting in mozilla 5.0? please help me

    i have problem with fonts for my site, i have used "Lucida sans unicode " family for certain texts. it shows perfect in mozilla 3.5 and mozilla 4. But the font not supporting in mozilla 5.0? please help me

  • Trouble with 3d window on ArchiCAD 16 when using Led Cinema Display 27" with GT 330M 256MB connected to my MacBook Pro 15" mid 2010, but runs fine on the attached display.

    Trouble with 3d window on ArchiCAD 16 when using Led Cinema Display 27" with GT 330M 256MB connected to my MacBook Pro 15" mid 2010, but runs fine on the attached display.

    Trouble with 3d window on ArchiCAD 16 when using Led Cinema Display 27" with GT 330M 256MB connected to my MacBook Pro 15" mid 2010, but runs fine on the attached display.

  • How to burn a video produced in iMovie in iDVD: with gratitude for the advice received I used the "professional quality" setting in iDVD for a video which in iMovie is 1h 20min long.  however this also failled. where did I go wrong, please?

    how to burn a video produced in iMovie in iDVD: with gratitude for the advice received I used the "professional quality" setting in iDVD for a video which in iMovie is 1h 20min long.  however this also failled. where did I go wrong, please?
    the message sked me to alter the quality of the DVD as the content was too large for the quality sellected.
    PLEASE HELP again,
    THANK YOU VERY MUCH
    MIchael

    Check the Advanced ➙ Project Information menu option to make sure the playing time of the entire project, movie plus menu is below the 120 minute limit.
    OT

  • I HAVE A MAC G5 WITH V10.4 TIGER OS, I AM HAVING TROUBLE WITH THE LETTER "N" ONLY WHEN I USE CAPS AND SHIFT KEYS DOSE IT TYPE THE LETTER "N"SE

    HAVE A MAC G5 WITH V10.4 TIGER OS, I AM HAVING TROUBLE WITH THE LETTER "N" ONLY WHEN I USE CAPS AND SHIFT KEYS DOSE IT TYPE THE LETTER "N". I HAVE CONNECTED A NEW KEYBOARD BUT THE PROBLEM STILL EXIST. WHAT ELSE CAN I DO?

    You might look at "Keyboard Shortcuts" in the Keyboard and Mouse preference pane and see if somehow the lower case n has been inadvertently assigned to something.
    Probably the best solution would be to click the "Restore Defaults" button.

  • If I buy Ipad with Cellular for AT&T, Can I use T-mobile sim?

    If I buy Ipad with Cellular for AT&T, Can I use T-mobile sim?

    Thanks Phil and Peter for your quick responses.. Add on what does "were bought subsidized" means.
    I am planning to buy from Apple site Refurb item, so as per your comments it should accept any GSM sim even with Indian carriers and other USA carriers.
    Thanks All.

  • How to I enable IR on Mac with Mountain Lion.  Would like to use remote control

    How to I enable IR on Mac with Mountain Lion.  Would like to use remote control to flip slides on powerpoint.

    It's enabled by default unless you've previously disabled it:

  • Trouble with printing through 10.8 shared printer using lpd.

    Hi, hoping someone will have had a similar issue.
    I am using a OSX 10.8 mac mini as a print server.  I am using it as a print server because because i have clients that print across subnets and bonjour will not work for this application.  Previously with my 10.7 imac I had shared the generic printer aimed directly at the printers IP address.  Client macs aim at the print server using lpd (using ip or host name) and then the printer name (share) for the queue and also use the generic ppd. When a client adds this configuration aimed at the old 10.7 print server the printer would install and printing would be succesfull.  Now with the 10.8 print server a client (reguardless of client OS version) i get the "Unable to verify the printer on your network." when installing and printing fails. I have tried the proper ppd for the make/manufacture of the printer (i didnt think this would make a difference) I have tried using the cups commands as well:
    cupsctl --share-printers
    cupsctl --share-printers --remote-any
    cupsctl 'BrowseLocalProtocols="cups dnssd lpd smb"'
    assuming lpd was just not available and needed to be turned on...
    I am able to ping the 10.8 on the network from clients verifying they can see the server
    also have tried using ipp with no luck.
    Anyone else had this issue and if so is there a work around?  Thanks!

    The Mini prints just fine to the printer.  on a side note, I tried to add a "client" printer to the mini server.  I added a printer using the ip address 127.0.0.1 (self resolving)  and the que name as the share.  This didnt work either.  Im thinking this must be a cups setting?

  • Is anyone developing the ability for laser projection keyboards to have mouse control over iOS devices?  This would really improve the productivity of my ipad.

    I would like to have mouse control over my ipad and iphone from my laser projection keyboard.  Is anyone working on this?

    this forum section is for developers if they need help with there code/dev center

  • More trouble with exporting for web

    Alright,
    Sorry to say but I am still having trouble converting/exporting my film trailer to the website for PC users to be able to access it.
    I converted it to a quicktime movie film from FCP, which plays beautifully but apparently PC users can't see it still.
    I have tried exporting to Compressor and tried every format there (mobile devices, web and so on...) they all came out pretty blurry.
    Does anybody have a full proof plan for converting/exporting for website viewing (PC and Mac compatible)?????
    P.S. It may help some of you to see the problem on the page http://www.inthelandofsmiles.com/Site/Film_Trailer.html
    THANKS IN ADVANCE!

    I will second the Flash suggestion. Great a .flv file and play it on your site with a flv player. Some are more difficult than others to use.
    NOTHING is fool proof with this kind of stuff. Flash has the highest install rate on all computers and is as close as you can get to fool proof. You can also put a link on you site to download the latest flash player. The other plus is that it tends to have the best results with low file sizes. This is what YouTube and similar sites use to play their video.
    PS. I highly suggest this flv player... It's free for non-commercial use and almost free for other uses...
    http://www.jeroenwijering.com/?item=JWFLVPlayer

  • Trouble with update for illustrator 16.2.1

    I'm having trouble downloading and installing the update for illustrator 16.2.1. I keep getting an error message. anyone else having this problem?

    Having the same issues, keep getting the error after it tries installing, I wish I could remember what the error was but everytime I try to install it, get the error and then can only use Illustrator after un-install and then re-install. Seems like ever since it went to this Application manager I have more issues with updates.

  • Trouble with contacts for texting

    When I type a new text message and try to enter a name in the To: field the contacts do not come up in alphabetical order.  I have to type several letters of the name before it comes up.  I have my Contacts setting for Sort Order and Display Order set to First, Last names.  Doe anyone know how to change this?

    Sorry you still don't understand. There's no point in deleting one contact, I don't want to delete my Facebook contacts I just don't want them to appear in with my local contacts. And I wouldn't be able to re-add that one contact without deleting Facebook completely and reinstalling it since the contacts app gets its data from Facebook. I'm not "pushing any memory limits" I have a 16gb phone and a 32gb memory card and that's pretty sad if it can only handle 486 contacts ESPECIALLY if it's going to add your Facebook contacts and not enable you to remove them. The contact app is having trouble saving my preferences. I highly doubt it has ANYTHING to do with the actual contacts, i believe it is a problem with the app itself because I can still add local contacts and delete them but none of my preferences such as the Facebook contacts not appearing and setting it to the dark theme will save.

  • I am having trouble with loops for my IT project

    I am not shour if this is the correct place to post my question.I am sorry if this is the wrong place.
    I have been given a school project to do in netbeans. Under the tab labeled "Timestable drill" I wrote code that is is supposted to output the timetable of a number requested by the user after they click on the view button.I tried to do this using a loop.
    My problem is that the program only outputs the requested number multiplyed by 12 whilst it is supposed to out put something like this: for example the number requested by the user is 2
    0*2=0
    1*2=2
    2*2=4
    3*2=6
    4*2=8
    5*2=10
    6*2=12
    7*2=14
    8*2=16
    9*2=18
    10*2=20
    11*2=22
    12*2=48
    Is there something wrong with my code for the loop or should I use a diffrent component for the screen?
    Any help would be useful. Thank you
    this is my code
    * calcBMI.java
    * Created on 09 July 2008, 10:55
    * @author  Owner
    public class calcBMI extends javax.swing.JFrame {
        /** Creates new form calcBMI */
        public calcBMI() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">                         
        private void initComponents() {
            Tabs = new javax.swing.JTabbedPane();
            Standard_Calculator = new javax.swing.JPanel();
            Calculatorlbl = new javax.swing.JLabel();
            Screen = new javax.swing.JTextField();
            btn7 = new javax.swing.JButton();
            btn8 = new javax.swing.JButton();
            btn9 = new javax.swing.JButton();
            btn4 = new javax.swing.JButton();
            btn5 = new javax.swing.JButton();
            btn6 = new javax.swing.JButton();
            btn1 = new javax.swing.JButton();
            btn2 = new javax.swing.JButton();
            btn3 = new javax.swing.JButton();
            btn0 = new javax.swing.JButton();
            btnpoint = new javax.swing.JButton();
            btneq = new javax.swing.JButton();
            btnplus = new javax.swing.JButton();
            btnsubtract = new javax.swing.JButton();
            btnmultiply = new javax.swing.JButton();
            btndiv = new javax.swing.JButton();
            btnclear = new javax.swing.JButton();
            BMI_Calculator = new javax.swing.JPanel();
            Scrn = new javax.swing.JTextField();
            BMIlabel = new javax.swing.JLabel();
            weight_btn = new javax.swing.JButton();
            Height_btn = new javax.swing.JButton();
            Clear = new javax.swing.JButton();
            calcBtn = new javax.swing.JButton();
            Tables_Drill = new javax.swing.JPanel();
            jLabel1 = new javax.swing.JLabel();
            jLabel2 = new javax.swing.JLabel();
            timetable = new javax.swing.JTextField();
            Viewbttn = new javax.swing.JButton();
            jScrollPane2 = new javax.swing.JScrollPane();
            viewing_board = new javax.swing.JTextPane();
            jMenuBar1 = new javax.swing.JMenuBar();
            jMenu2 = new javax.swing.JMenu();
            Quit = new javax.swing.JMenuItem();
            jMenu3 = new javax.swing.JMenu();
            jMenu4 = new javax.swing.JMenu();
            jMenuItem1 = new javax.swing.JMenuItem();
            jMenu1 = new javax.swing.JMenu();
            jMenu5 = new javax.swing.JMenu();
            jMenuItem2 = new javax.swing.JMenuItem();
            How_toBMI = new javax.swing.JMenu();
            jMenuItem3 = new javax.swing.JMenuItem();
            jMenuBar2 = new javax.swing.JMenuBar();
            jMenu6 = new javax.swing.JMenu();
            Quit1 = new javax.swing.JMenuItem();
            jMenu7 = new javax.swing.JMenu();
            jMenu8 = new javax.swing.JMenu();
            jMenuItem4 = new javax.swing.JMenuItem();
            jMenu9 = new javax.swing.JMenu();
            jMenu10 = new javax.swing.JMenu();
            jMenuItem5 = new javax.swing.JMenuItem();
            How_toBMI1 = new javax.swing.JMenu();
            jMenuItem6 = new javax.swing.JMenuItem();
            jMenuBar3 = new javax.swing.JMenuBar();
            jMenu11 = new javax.swing.JMenu();
            Quit2 = new javax.swing.JMenuItem();
            jMenu12 = new javax.swing.JMenu();
            jMenu13 = new javax.swing.JMenu();
            jMenuItem7 = new javax.swing.JMenuItem();
            jMenu14 = new javax.swing.JMenu();
            jMenu15 = new javax.swing.JMenu();
            jMenuItem8 = new javax.swing.JMenuItem();
            How_toBMI2 = new javax.swing.JMenu();
            jMenuItem9 = new javax.swing.JMenuItem();
            jMenuBar4 = new javax.swing.JMenuBar();
            jMenu16 = new javax.swing.JMenu();
            Quit3 = new javax.swing.JMenuItem();
            jMenu17 = new javax.swing.JMenu();
            jMenu18 = new javax.swing.JMenu();
            jMenuItem10 = new javax.swing.JMenuItem();
            jMenu19 = new javax.swing.JMenu();
            jMenu20 = new javax.swing.JMenu();
            jMenuItem11 = new javax.swing.JMenuItem();
            How_toBMI3 = new javax.swing.JMenu();
            jMenuItem12 = new javax.swing.JMenuItem();
            jMenuBar5 = new javax.swing.JMenuBar();
            jMenu21 = new javax.swing.JMenu();
            Quit4 = new javax.swing.JMenuItem();
            jMenu22 = new javax.swing.JMenu();
            jMenu23 = new javax.swing.JMenu();
            jMenuItem13 = new javax.swing.JMenuItem();
            jMenu24 = new javax.swing.JMenu();
            jMenu25 = new javax.swing.JMenu();
            jMenuItem14 = new javax.swing.JMenuItem();
            How_toBMI4 = new javax.swing.JMenu();
            jMenuItem15 = new javax.swing.JMenuItem();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            Calculatorlbl.setBackground(new java.awt.Color(0, 204, 255));
            Calculatorlbl.setFont(new java.awt.Font("Heather", 1, 18));
            Calculatorlbl.setForeground(new java.awt.Color(0, 204, 204));
            Calculatorlbl.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
            Calculatorlbl.setText("CALCULATOR");
            btn7.setBackground(new java.awt.Color(204, 204, 204));
            btn7.setForeground(java.awt.Color.magenta);
            btn7.setText("7");
            btn7.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btn7ActionPerformed(evt);
            btn8.setBackground(new java.awt.Color(204, 204, 204));
            btn8.setForeground(java.awt.Color.magenta);
            btn8.setText("8");
            btn8.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btn8ActionPerformed(evt);
            btn9.setBackground(new java.awt.Color(204, 204, 204));
            btn9.setForeground(java.awt.Color.magenta);
            btn9.setText("9");
            btn9.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btn9ActionPerformed(evt);
            btn4.setBackground(new java.awt.Color(204, 204, 204));
            btn4.setForeground(java.awt.Color.magenta);
            btn4.setText("4");
            btn4.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btn4ActionPerformed(evt);
            btn5.setBackground(new java.awt.Color(204, 204, 204));
            btn5.setForeground(java.awt.Color.magenta);
            btn5.setText("5");
            btn5.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btn5ActionPerformed(evt);
            btn6.setBackground(new java.awt.Color(204, 204, 204));
            btn6.setForeground(java.awt.Color.magenta);
            btn6.setText("6");
            btn6.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btn6ActionPerformed(evt);
            btn1.setBackground(new java.awt.Color(204, 204, 204));
            btn1.setForeground(java.awt.Color.magenta);
            btn1.setText("1");
            btn1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btn1ActionPerformed(evt);
            btn2.setBackground(new java.awt.Color(204, 204, 204));
            btn2.setForeground(java.awt.Color.magenta);
            btn2.setText("2");
            btn2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btn2ActionPerformed(evt);
            btn3.setBackground(new java.awt.Color(204, 204, 204));
            btn3.setForeground(java.awt.Color.magenta);
            btn3.setText("3");
            btn3.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btn3ActionPerformed(evt);
            btn0.setBackground(new java.awt.Color(204, 204, 204));
            btn0.setForeground(java.awt.Color.magenta);
            btn0.setText("0");
            btn0.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btn0ActionPerformed(evt);
            btnpoint.setBackground(new java.awt.Color(204, 204, 204));
            btnpoint.setForeground(java.awt.Color.magenta);
            btnpoint.setText(".");
            btnpoint.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btnpointActionPerformed(evt);
            btneq.setBackground(new java.awt.Color(204, 204, 204));
            btneq.setForeground(java.awt.Color.magenta);
            btneq.setText("=");
            btneq.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btneqActionPerformed(evt);
            btnplus.setText("+");
            btnplus.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btnplusActionPerformed(evt);
            btnsubtract.setText("-");
            btnsubtract.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btnsubtractActionPerformed(evt);
            btnmultiply.setText("*");
            btnmultiply.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btnmultiplyActionPerformed(evt);
            btndiv.setText("/");
            btndiv.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btndivActionPerformed(evt);
            btnclear.setText("C");
            btnclear.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btnclearActionPerformed(evt);
            javax.swing.GroupLayout Standard_CalculatorLayout = new javax.swing.GroupLayout(Standard_Calculator);
            Standard_Calculator.setLayout(Standard_CalculatorLayout);
            Standard_CalculatorLayout.setHorizontalGroup(
                Standard_CalculatorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(Standard_CalculatorLayout.createSequentialGroup()
                    .addGroup(Standard_CalculatorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(Standard_CalculatorLayout.createSequentialGroup()
                            .addGap(45, 45, 45)
                            .addComponent(Calculatorlbl, javax.swing.GroupLayout.PREFERRED_SIZE, 237, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(Standard_CalculatorLayout.createSequentialGroup()
                            .addGap(31, 31, 31)
                            .addGroup(Standard_CalculatorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(Standard_CalculatorLayout.createSequentialGroup()
                                    .addGroup(Standard_CalculatorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(Standard_CalculatorLayout.createSequentialGroup()
                                            .addComponent(btn7)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(btn8)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(btn9))
                                        .addGroup(Standard_CalculatorLayout.createSequentialGroup()
                                            .addComponent(btn4)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(btn5)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(btn6))
                                        .addGroup(Standard_CalculatorLayout.createSequentialGroup()
                                            .addComponent(btn1)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(btn2)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(btn3))
                                        .addGroup(Standard_CalculatorLayout.createSequentialGroup()
                                            .addComponent(btn0)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(btnpoint)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(btneq)))
                                    .addGap(60, 60, 60)
                                    .addGroup(Standard_CalculatorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(btnmultiply)
                                        .addGroup(Standard_CalculatorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(btnclear)
                                            .addComponent(btndiv))
                                        .addComponent(btnsubtract)
                                        .addComponent(btnplus)))
                                .addComponent(Screen, javax.swing.GroupLayout.PREFERRED_SIZE, 277, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addContainerGap(38, Short.MAX_VALUE))
            Standard_CalculatorLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {btnclear, btndiv, btnmultiply, btnplus, btnsubtract});
            Standard_CalculatorLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {btn0, btn1, btn2, btn3, btn4, btn5, btn6, btn7, btn8, btn9, btneq, btnpoint});
            Standard_CalculatorLayout.setVerticalGroup(
                Standard_CalculatorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(Standard_CalculatorLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(Calculatorlbl, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addComponent(Screen, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addGroup(Standard_CalculatorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(Standard_CalculatorLayout.createSequentialGroup()
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 4, Short.MAX_VALUE)
                            .addGroup(Standard_CalculatorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(btn8)
                                .addComponent(btn7)
                                .addComponent(btn9))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(Standard_CalculatorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(btn4)
                                .addComponent(btn5)
                                .addComponent(btn6))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(Standard_CalculatorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(btn1)
                                .addComponent(btn3, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(btn2))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(Standard_CalculatorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(btn0)
                                .addComponent(btnpoint)
                                .addComponent(btneq))
                            .addGap(25, 25, 25))
                        .addGroup(Standard_CalculatorLayout.createSequentialGroup()
                            .addComponent(btnplus, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(btnsubtract)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(btnmultiply, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(btndiv)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(btnclear)))
                    .addGap(37, 37, 37))
            Tabs.addTab("Standard Calculator", Standard_Calculator);
            BMIlabel.setFont(new java.awt.Font("Heather", 1, 18));
            BMIlabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
            BMIlabel.setText("BMI Calculator");
            weight_btn.setText("Weight (Kg)");
            weight_btn.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    weight_btnActionPerformed(evt);
            Height_btn.setText("Height (m)");
            Height_btn.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    Height_btnActionPerformed(evt);
            Clear.setText("Clear");
            Clear.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    ClearActionPerformed(evt);
            calcBtn.setText("Calculate");
            calcBtn.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    calcBtnActionPerformed(evt);
            javax.swing.GroupLayout BMI_CalculatorLayout = new javax.swing.GroupLayout(BMI_Calculator);
            BMI_Calculator.setLayout(BMI_CalculatorLayout);
            BMI_CalculatorLayout.setHorizontalGroup(
                BMI_CalculatorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(BMI_CalculatorLayout.createSequentialGroup()
                    .addGroup(BMI_CalculatorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(BMI_CalculatorLayout.createSequentialGroup()
                            .addGap(40, 40, 40)
                            .addGroup(BMI_CalculatorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(weight_btn)
                                .addComponent(Height_btn))
                            .addGap(66, 66, 66)
                            .addGroup(BMI_CalculatorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(calcBtn)
                                .addComponent(Clear)))
                        .addGroup(BMI_CalculatorLayout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(Scrn, javax.swing.GroupLayout.PREFERRED_SIZE, 301, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(BMI_CalculatorLayout.createSequentialGroup()
                            .addGap(29, 29, 29)
                            .addComponent(BMIlabel, javax.swing.GroupLayout.PREFERRED_SIZE, 263, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap(35, Short.MAX_VALUE))
            BMI_CalculatorLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {Clear, Height_btn, calcBtn, weight_btn});
            BMI_CalculatorLayout.setVerticalGroup(
                BMI_CalculatorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(BMI_CalculatorLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(BMIlabel, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(9, 9, 9)
                    .addComponent(Scrn, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(34, 34, 34)
                    .addGroup(BMI_CalculatorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(weight_btn)
                        .addComponent(calcBtn))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(BMI_CalculatorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(Height_btn)
                        .addComponent(Clear))
                    .addContainerGap(100, Short.MAX_VALUE))
            Tabs.addTab("BMI Calculator", BMI_Calculator);
            jLabel1.setText("Tables drill");
            jLabel2.setText("Timetable ");
            Viewbttn.setText("VIEW");
            Viewbttn.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    ViewbttnActionPerformed(evt);
            jScrollPane2.setViewportView(viewing_board);
            javax.swing.GroupLayout Tables_DrillLayout = new javax.swing.GroupLayout(Tables_Drill);
            Tables_Drill.setLayout(Tables_DrillLayout);
            Tables_DrillLayout.setHorizontalGroup(
                Tables_DrillLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(Tables_DrillLayout.createSequentialGroup()
                    .addGroup(Tables_DrillLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(Tables_DrillLayout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(Tables_DrillLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 387, Short.MAX_VALUE)
                                .addGroup(Tables_DrillLayout.createSequentialGroup()
                                    .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(41, 41, 41)
                                    .addGroup(Tables_DrillLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(timetable, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(Viewbttn, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGap(152, 152, 152))))
                        .addGroup(Tables_DrillLayout.createSequentialGroup()
                            .addGap(55, 55, 55)
                            .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 256, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap())
            Tables_DrillLayout.setVerticalGroup(
                Tables_DrillLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(Tables_DrillLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addGroup(Tables_DrillLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(timetable, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(Viewbttn, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(40, 40, 40)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(41, Short.MAX_VALUE))
            Tabs.addTab("Tables Drill", Tables_Drill);
            jMenu2.setText("File");
            Quit.setText("Exit");
            Quit.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    QuitActionPerformed(evt);
            jMenu2.add(Quit);
            jMenuBar1.add(jMenu2);
            jMenu3.setText("Edit");
            jMenu4.setText("Clear");
            jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.ALT_MASK));
            jMenuItem1.setText("Screen");
            jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jMenuItem1ActionPerformed(evt);
            jMenu4.add(jMenuItem1);
            jMenu3.add(jMenu4);
            jMenuBar1.add(jMenu3);
            jMenu1.setText("Help");
            jMenu5.setText("Standard Calculator");
            jMenuItem2.setText("Item");
            jMenu5.add(jMenuItem2);
            jMenu1.add(jMenu5);
            How_toBMI.setText("BMI Calculator");
            How_toBMI.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    How_toBMIActionPerformed(evt);
            jMenuItem3.setText("How to use");
            How_toBMI.add(jMenuItem3);
            jMenu1.add(How_toBMI);
            jMenuBar1.add(jMenu1);
            jMenu6.setText("File");
            Quit1.setText("Exit");
            Quit1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    QuitActionPerformed(evt);
            jMenu6.add(Quit1);
            jMenuBar2.add(jMenu6);
            jMenu7.setText("Edit");
            jMenu8.setText("Clear");
            jMenuItem4.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.ALT_MASK));
            jMenuItem4.setText("Screen");
            jMenuItem4.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jMenuItem1ActionPerformed(evt);
            jMenu8.add(jMenuItem4);
            jMenu7.add(jMenu8);
            jMenuBar2.add(jMenu7);
            jMenu9.setText("Help");
            jMenu10.setText("Standard Calculator");
            jMenuItem5.setText("Item");
            jMenu10.add(jMenuItem5);
            jMenu9.add(jMenu10);
            How_toBMI1.setText("BMI Calculator");
            How_toBMI1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    How_toBMIActionPerformed(evt);
            jMenuItem6.setText("How to use");
            How_toBMI1.add(jMenuItem6);
            jMenu9.add(How_toBMI1);
            jMenuBar2.add(jMenu9);
            jMenu11.setText("File")                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          &nbs

    I love when new people think they have to show their entire application when they only have a problem with a little piece.
    If you have a problem with a loop, just post the loop! Why should we need to sift through all your GUI code and other irrelevant nonsense? It's your job to show us the information we need to help you.

Maybe you are looking for

  • Key Field not to be seen in report

    Hi, I have a DSO and in that I have 1 key field and 20 data fields. I was able to load the data successfully in the DSO. And I am creating a report based on this DSO. But when I create a report, I was unable to view the key field in the report. I wen

  • Where is the audio equalizer in iMovie 10.0.5?

    I am trying to eliminate wind audio and need to reach the equalizer to do so.  However, it does not seem to exist in this new edition.  You can only go to preset settings like Treble Boost and Voice Enhance.  I want to configure the frequencies. Plea

  • Central contract in SRM 7.0 with ECC 6.0

    Hi We are using SRM 7.0 with ECC 6.0 When we create contract in SRM 7.0 & Trying to distribute to Backend as Contract, It is showing error in BBP_PD as below HEADER I1015 Awaiting Approval HEADER I1021 Created HEADER I1038 Complete HEADER I1141 Relea

  • Inherited first gen Macbook Pro

    Hey everyone, I have a somewhat vague question. I recently swapped computers with my wife, inheriting her first generation Macbook Pro, which has surprisingly withstood the test of time. Right now I'm trying to maximize the performance so that I can

  • Capture START and END installation date on order line item

    Requirement: capture both start and finish dates for an installation program. Will likely require 2 new fields at order line item level. USEREXIT_MOVE_FIELD_TO_VBAP??? Any suggestion for this enhancement???