Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Munchor

Pages: 1 ... 200 201 [202] 203 204 ... 424
3016
Thanks Much!

Now, can someone explain me what is going on here:

Code: [Select]
import javax.swing.*;       

public class HelloWorldSwing {
    /**
     * Create the GUI and show it.  For thread safety,
     * this method should be invoked from the
     * event-dispatching thread.
     */
    private static void createAndShowGUI() {
        //Create and set up the window.
        JFrame frame = new JFrame("HelloWorldSwing");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        //Add the ubiquitous "Hello World" label.
        JLabel label = new JLabel("Hello World");
        frame.getContentPane().add(label);

        //Display the window.
        frame.pack();
        frame.setVisible(true);
    }

    public static void main(String[] args) {
        //Schedule a job for the event-dispatching thread:
        //creating and showing this application's GUI.
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                createAndShowGUI();
            }
        });
    }
}

Not the Swing Part, the way he calls createAndShowGUI() function.


But mainly thanks for:

Code: [Select]
public class MainClass {
public static void main(String[] args)
{
MainClass mainClass = new MainClass();
mainClass.MyFunction();

}

public void MyFunction()
{
System.out.println("Hello");
}
}

I'm making my class an object and accessing one of its properties, which is MyFunction() right?

3017
Computer Programming / Re: Looking for info...about java
« on: March 07, 2011, 04:27:34 pm »
I have no experience with Python or any other higer-level language save TI-BASIC XD

OOOh, I thought you made TI_Convert (It was Michael Lee it seems)

Ok, Java is higher than Axe, but not as high as TI-Basic (you can shut down the computer).

Wow, but at least take a look at this example if you wanna know what OOP is:

Code: [Select]
a = "Hello World"     #this makes the variable a be "Hello World", a STRING
print len(a)             # this returns (as in Disp ) the length of a
print a.__length__     # this makes the same thing as above, but it accesses a property of a, its length, Object-Oriented Programming
Also, this example is Python, not Java, in Java everything pretty much is OOP.

If you wanna learn Java, try this:

http://leepoint.net/JavaBasics/index.html

After getting enough, move on to this:

http://leepoint.net/notes-java/index.html

But starting with Java after TI-Basic/Axe is gonna be hard :) But you're an awesome Axe programmer, I'm sure you can do it :)

3018
Computer Programming / Re: Looking for info...about java
« on: March 07, 2011, 04:21:47 pm »
What kind of language is Java? I've heard various phrases tossed around, like "object oriented," etc. And, as a low-level programmer highly proficient in something like Axe, would it be easy or hard to pick up?

It's easy to pick up if you have experience in other OOP languages.

Object Oriented Programming is like:

Code: [Select]
str1 = "hey"
a = str1.length()
#a = 3
The upper code is python, but OOP is when you access object properties.

A property of a string can be its length, it's number of words, it's position (GUI), it's size (GUI).

Objects have an enormous number of properties and methods.

Take a look at this Java method:

Code: [Select]
JButton button = new JButton(); //This creates a button
button.setVisible(true); // setVisible() is a method, and I set it to true in order to show the button


Explaining OOP is hard, here's a Python example:


Code: [Select]
a = "hello"
print len(a)  # This is non-OOP
print a.__length__  #This is OOP
This last example is what made me understand OOP, I'll never forget it.

If you have experience in Python (and I know you do), you'll find Java more OOPy and easier to handle when it comes to GUI.

The inheritance is DAMN hard to get, but when you get it, you'll like it.

3019
Code: [Select]
public class MainClass {
public static void main(String[] args)
{
MyFunction myToUpperCaseFunction = new MyFunction();
MyFunction();

}

public void MyFunction()
{
System.out.println("Hello");
}

}

It didn't really work, it says MyFunction cannot be resolved to a type :S

3020
Ndless / Re: General Ndless Questions and Support
« on: March 05, 2011, 05:03:15 am »
Unfortunately the authors have to update them, you should ask them directly.

Thanks.

3021
News / Re: Non-calc development section expanded
« on: March 05, 2011, 05:03:06 am »
Nice idea :)

I like it better now.

3022
I'm new to NSpire Development (C and Assembly) and there are a few things I'm curious about.

The files are .tns (Assembly files) but that's just to allow the Computer Link Software to read it, right?
C files are converted to Assembly when compiled?
I am gonna follow the tutorial later and then come back.

3023
Other Calculators / Re: TI-Npsire CX: The Analysis!
« on: March 04, 2011, 05:04:57 pm »
Quote
Person: No, there are no plans to give any additional programming functions as far as I am aware. And I know there are many people that care about gaming and that stuff...
 
Me: definitely

Of course.

3024
News / Re: Confirmed: No TI-84 Plus Keypad on the TI-Nspire CX
« on: March 04, 2011, 04:58:08 pm »
That's too bad.
I hope an emulator comes out eventually. :)

Apcalc, I changed that "code" tag to a "quote" tag as it was messing with the front page.  I hope you don't mind. ;)

I believe calc84maniac is working on one.

3025
Ndless / Re: General Ndless Questions and Support
« on: March 04, 2011, 04:41:21 pm »
Okay my problem is,

There are plenty of NDless programs and games, but the keys for Clickpad won't work (some of them) in the Touchpad.

Is there any way of changing this or the game makers have to make new, separate versions for Ndless 2.0?

Btw, Ndless 2.0 beta r369 works awesomely.

3026
nDoom / Re: nDoom - BETA!
« on: March 04, 2011, 04:27:10 pm »
I finally have some time to test it and review it, so I decided to write a proper review on what I thought of the game, what should be improved:

Awesome.

3027
News / Re: Confirmed: No TI-84 Plus Keypad on the TI-Nspire CX
« on: March 04, 2011, 03:43:47 pm »
This is bad, the OS will have ti.84+ files but we can't use them, waste of space.

3028
I recommend adding OS 2.56 MP for the 83+ series here.

3029
Axe / Re: Basic or Assembly?
« on: March 04, 2011, 02:44:49 pm »
The first two bytes of an assembly program (not counting the size bytes) are required to be $BB, $6D. That is how the OS determines whether or not a program is an assembly program.

That is super easy then :) Thanks too.

3030
Axe / Re: Basic or Assembly?
« on: March 04, 2011, 01:22:57 pm »
You mean on-calc? I think that for that you'd need to analyse the hex code (headers).

Pages: 1 ... 200 201 [202] 203 204 ... 424