1. Zachary Boddy's Avatar
    Okay I've asked some questions before but this is a little more complex:
    I have a little side project that I'm doing for fun called MultiFunction that's basically a prime number checker (that also lists factors) and a Pythagorean Theorem calculator. It's pretty nifty and I've spent time making it more efficient and easier to use like listing factors of a prime number and telling you if it's a Pythagorean Triple or not. Simple stuff but still the most complex thing I've ever done. Now I want to go one step further but unfortunately it's just a step beyond my knowledge. I'd like to be able to draw the triangle the Pythagorean Theorem method is describing. I can work out the triangle bits later (I have the Expo class to help me out with graphics and such) but I'm having issues with getting the two to play nice with each other in the first place. I understand you can't have a paint method and a main method in the same program or at least I can't get it to work so I'm wondering how I would output all my triangle drawing programming into a separate file and have it be able to pull values from the MultiFunction file and then return the triangle to be output in an applet. I'd appreciate some help and I'll provide any more details necessary if you need more information.
    10-29-2015 06:44 PM
  2. wpbestplayer's Avatar
    Your first program output will be the input to another function that you will call from the applet. When you take the values you will use repaint() method.
    11-16-2015 03:38 AM

Similar Threads

  1. Replies: 128
    Last Post: 11-17-2015, 10:23 AM
  2. Question/concern about the lock screen in 10581
    By HeyCori in forum Windows 10 Mobile Insider Preview
    Replies: 5
    Last Post: 10-29-2015, 09:49 PM
  3. Question for SP4 Owners(lapability)
    By donkiluminate in forum Microsoft Surface Pro 4
    Replies: 6
    Last Post: 10-29-2015, 03:42 PM
  4. Ask us all your New Xbox One Experience questions in the Windows Central forums!
    By WindowsCentral.com in forum Windows Central News Discussion
    Replies: 0
    Last Post: 10-28-2015, 03:11 PM
  5. Picking up an i3 question
    By theefman in forum Microsoft Surface Pro 3
    Replies: 0
    Last Post: 10-28-2015, 09:56 AM