Java School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a Java Expert!

Join 300,302 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 2,107 people online right now. Registration is fast and FREE... Join Now!




please compile mine is down

 

please compile mine is down

saulfenky2470

7 May, 2009 - 08:44 AM
Post #1

D.I.C Head
**

Joined: 11 Dec, 2008
Posts: 70

hey can yall compile this for me and post back the byte code.

my compiler is GONE? blink.gif

please and thank you
CODE
import java.util.*;
import java.awt.event.*;
import javax.swing.*;
import java.awt.*;
import java.io.*;
public class AoT {
    
    JFrame frame = new JFrame("Area Of Triangle");
    JPanel up = new JPanel();
    JPanel center = new JPanel();
    JPanel right = new JPanel();
    JPanel left = new JPanel();
    JPanel down = new JPanel();
    JLabel inturs = new JLabel("Enter your sides a, b, & c");
    JLabel area = new JLabel("Area = ");
    JLabel answer = new JLabel();
    JButton solve = new JButton("Solve");
    JLabel side1 = new JLabel("Side a");
    JLabel side2 = new JLabel("Side b");
    JLabel side3 = new JLabel("Side c");
    JTextField sidea = new JTextField(5);
    JTextField sideb = new JTextField(5);
    JTextField sidec = new JTextField(5);

    
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        new AoT().buildGUI();
    }
    public void buildGUI() {
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        ///add panels to the frame.
        frame.getContentPane().add(BorderLayout.NORTH, up);
        frame.getContentPane().add(BorderLayout.CENTER, center);
        frame.getContentPane().add(BorderLayout.SOUTH, down);
        frame.getContentPane().add(BorderLayout.EAST, right);
        frame.getContentPane().add(BorderLayout.WEST, left);


        //add stuff to panels
        up.add(inturs);
        center.add(sidea);
        center.add(sideb);
        center.add(sidec);
        left.add(side1);
        left.add(side2);
        left.add(side3);
        left.add(area);
        right.add(solve);
        down.add(answer);
        //add listener
        solve.addActionListener(new MySolveListener());
        
        //set vis
        frame.setSize(500,500);
        frame.setVisible(true);
    }
    public class MyDownTempoListener implements ActionListener {
        public void actionPerformed(ActionEvent a) {
        int a = Integer.parseInt(sidea.getText());
        int b = Integer.parseInt(sideb.getText());
        int c = Integer.parseInt(sidec.getText());
        int s = .5 * (a+b+c);
        int N = s * ((s-a) * (s-b) * (s-c));
        int A = Math.sqrt(N);
        String Area = Integer.toString(A);
        answer.setText(A);

        }
    }
        
    

}


User is offlineProfile CardPM
+Quote Post


WolfCoder

RE: Please Compile Mine Is Down

7 May, 2009 - 09:36 AM
Post #2

ヒヒヒー
Group Icon

Joined: 5 May, 2005
Posts: 5,124



Thanked: 29 times
Dream Kudos: 1575
Expert In: ゲームのプログラム、かわいい

My Contributions
This is certainly a bizarre request. It's faster if you just download the JDK again and then javac your code. You don't want someone giving you a viral .class file anyway.

CODE

javac AoT.java;
java AoT;


Are the commands.

This post has been edited by WolfCoder: 7 May, 2009 - 09:37 AM
User is offlineProfile CardPM
+Quote Post

Jubb

RE: Please Compile Mine Is Down

7 May, 2009 - 11:57 AM
Post #3

D.I.C Head
**

Joined: 6 May, 2009
Posts: 76



Thanked: 5 times
My Contributions
QUOTE(WolfCoder @ 7 May, 2009 - 09:36 AM) *

This is certainly a bizarre request. It's faster if you just download the JDK again and then javac your code. You don't want someone giving you a viral .class file anyway.

CODE

javac AoT.java;
java AoT;


Are the commands.



Actually, for JUST such occasions there is this. Online Java Compiler It supports multiple JDK versions and different compiler switches. Give it a go!
User is offlineProfile CardPM
+Quote Post

saulfenky2470

RE: Please Compile Mine Is Down

11 May, 2009 - 08:52 AM
Post #4

D.I.C Head
**

Joined: 11 Dec, 2008
Posts: 70

QUOTE(Jubb @ 7 May, 2009 - 11:57 AM) *

QUOTE(WolfCoder @ 7 May, 2009 - 09:36 AM) *

This is certainly a bizarre request. It's faster if you just download the JDK again and then javac your code. You don't want someone giving you a viral .class file anyway.

CODE

javac AoT.java;
java AoT;


Are the commands.



Actually, for JUST such occasions there is this. Online Java Compiler It supports multiple JDK versions and different compiler switches. Give it a go!


DUDE!!!!! THANK YOU!!!! that is just what i needed. Y has no one told me

User is offlineProfile CardPM
+Quote Post

saulfenky2470

RE: Please Compile Mine Is Down

11 May, 2009 - 09:09 AM
Post #5

D.I.C Head
**

Joined: 11 Dec, 2008
Posts: 70

QUOTE(WolfCoder @ 7 May, 2009 - 09:36 AM) *

This is certainly a bizarre request. It's faster if you just download the JDK again and then javac your code. You don't want someone giving you a viral .class file anyway.

CODE

javac AoT.java;
java AoT;


Are the commands.

ok i need one for my laptop anyway so you know where i can get a JDK
User is offlineProfile CardPM
+Quote Post

computerfox

RE: Please Compile Mine Is Down

11 May, 2009 - 02:11 PM
Post #6

straight vegetarian kid
*****

Joined: 29 Jan, 2009
Posts: 3,772



Thanked: 48 times
Dream Kudos: 1700
My Contributions
hope this helps...
User is offlineProfile CardPM
+Quote Post

saulfenky2470

RE: Please Compile Mine Is Down

12 May, 2009 - 08:35 AM
Post #7

D.I.C Head
**

Joined: 11 Dec, 2008
Posts: 70

QUOTE(computerfox @ 11 May, 2009 - 02:11 PM) *

which one would you recamend?
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 01:13PM

Live Java Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month