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 ... 21 22 [23] 24 25 ... 424
331
Computer Programming / Re: [Java] Adding graphics to frame
« on: August 19, 2011, 03:57:14 pm »
Again, you cannot add Graphics to the panel. JPanels have a Graphics instance variable already. i just noticed your method header for paintComponent is incorrect. it's parameter should be of type Graphics, not Graphics2D.

I understand nemo, it works now, thanks a lot!

I know, though, that I can turn Graphics to Graphics2D and I know how ;)

332
TI Z80 / Re: On-the-fly screenshots (homescreen only)
« on: August 19, 2011, 03:54:47 pm »

333
TI Z80 / Re: On-the-fly screenshots (homescreen only)
« on: August 19, 2011, 02:55:07 pm »
I made an UI because you hadn't made one yet :)

334
TI Z80 / Re: On-the-fly screenshots (homescreen only)
« on: August 19, 2011, 01:09:59 pm »
That program is sure looking neat!

----

I just made an UI Deep, you can find it here:

http://ephan.57o9.org/HomerUI/

I made it in a few minutes, I'll add some stuff saying Homer is a project made by Deep Thought, but it's functional for now.

335
Computer Usage and Setup Help / Re: Acer Aspire 5520 doesn't boot
« on: August 19, 2011, 11:20:08 am »
@NecroBumpist: Yes, it's not peripheral for sure.

The computer had Windows Vista pre-installed and that's what it always had (and still has, supposedly).

Well, the last time I used it it made weird noises and crashed constantly. It was just really crazy, always shutting down a bit after boot. And the fan went crazy all the time. One of the times it just turned down, it didn't boot again, never.

336
Computer Usage and Setup Help / Acer Aspire 5520 doesn't boot
« on: August 19, 2011, 10:42:12 am »
I have an Acer Aspire 5520 in my house that doesn't boot, but I never bothered to look around and try to fix until today.

Basically, here's what happens:
1. Press the ON button
2. Nothing happens (no sound, no light, no beep, no reaction at all!)

I tried doing this either using AC Power and Battery Power, and AC Power with Battery removed too.

When it has the battery inside and the cable is connected, the Battery LED (meaning it's charging) goes red. This is the only thing that works in the computer.

Since it doesn't boot (not even BIOS, as I said nothing), I have absolutely no idea of what to do. Other people online have problems with this computer, but no problem like mine.

If you have any ideas, I'd appreciate them, thanks!

337
Computer Programming / Re: [Java] Adding graphics to frame
« on: August 19, 2011, 10:07:36 am »
Game.java
Code: [Select]
import java.awt.Graphics2D;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class Game extends JPanel
{
    JFrame mainFrame = new JFrame("Game");

public Game()
{
        mainFrame.setSize(800, 600);
       
        JButton myButton = new JButton("hello");
       
        mainFrame.getContentPane().add(this);
        this.add(myButton);
    }
    public void run()
    {
        mainFrame.setVisible(true);
    }
    public void paintComponent(Graphics2D g)
    {
        super.paintComponent(g);
        g.fillArc(5, 5, 100, 100, 45, 45);
        g.drawLine(5, 5, 10, 10);
    }
}

I managed to add a button to the panel and it appears, so perhaps I'm not adding the Graphics to the panel. How would I do that? Thanks, once again.

338
OmnomIRC Development / Re: OmnomIRC Mobile
« on: August 19, 2011, 04:22:59 am »
Of course. Actually that's the first Java program I ever wrote.

There are other Android Java Programmers around like me and Ikkerens. So feel free to ask us if you have any questions.

339
OmnomIRC Development / Re: OmnomIRC Mobile
« on: August 19, 2011, 04:16:37 am »
Coming soon on your Android device.

Sweet, Java application I guess?

340
Computer Programming / Re: [Java] Adding graphics to frame
« on: August 18, 2011, 02:39:50 pm »
the exact some code is working on my computer. are you sure you saved/recompiled before you ran the code? also, what's the project you're working on?

I just created those two files and then used "javac" to compile Game.java and then Runner.java, then used "java Runner" to run the program.

@Nemo: It's no project yet, it's more like testing.

341
Computer Programming / Re: [Java] Adding graphics to frame
« on: August 18, 2011, 02:27:07 pm »
Hm, I tried adding this in public Game():

Code: [Select]
mainFrame.getContentPane().add(this);
So that I had the panel to the frame, but I still don't see the line.

Thanks a lot!

342
Computer Programming / Re: [Java] Adding graphics to frame
« on: August 18, 2011, 02:21:39 pm »
Game.java
Code: [Select]
import java.awt.Graphics2D;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class Game extends JPanel
{
    JFrame mainFrame = new JFrame("Game");

public Game()
{
        mainFrame.setSize(800, 600);
    }
    public void run()
    {
        mainFrame.setVisible(true);
    }
    public void paintComponent(Graphics2D g)
    {
        super.paintComponent(g);
        g.drawLine(5, 5, 10, 10);
    }
}

Runner.java
Code: [Select]
public class Runner
{
    public static void main(String[] args)
    {
        new Game().run();
    }
}

Well, the line I'm drawing is not appearing, do you know what's wrong? Thanks!

343
News / Re: The first ever 3D color calculator game!
« on: August 18, 2011, 02:18:47 pm »
Doesn,t Minecraft require like 8 GB of RAM to run, though? O.O

I don't think so DJ, you are quite mistaken. Otherwise, nobody would play it. Minecraft has low quality graphics (fortunately), but it's RAM heavy because it's unoptimized (or so people say)

344
News / Re: The first ever 3D color calculator game!
« on: August 18, 2011, 02:17:23 pm »
Woah, looking great! What's next, holographic full HD, 16 million colours 3D FPS? O.O This is very good progression in TI World.

345
Miscellaneous / Re: SirCmpwn vandalizes Axe Parser forum
« on: August 18, 2011, 01:12:46 pm »
No problem.  I also have a few 0.4.x versions I could upload, if anybody desperately needs them ( 0.4.1 and 0.4.8 )

Michael, I really really need 0.0.1, please? j/k :w00t:

Well, thanks Michael for uploading those versions :)

Pages: 1 ... 21 22 [23] 24 25 ... 424