Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (521)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (589)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Newbie & Debugging Questions / Re: Using FileDialogs on: 2004-02-23 03:55:22
So what do i do then? Im still new to java to do some of the stuff. Does anyone know how you do it in windows?
2  Game Development / Newbie & Debugging Questions / Using FileDialogs on: 2004-02-22 01:47:46
Hello, I am using the FileDialog to open a file, heres my code:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
        FileDialog fileDialog = new FileDialog(this, "Save As...", FileDialog.SAVE);
       
        fileDialog.setFile("untitled.nek");
       
       
        fileDialog.show();
       
        if (fileDialog.getFile() == null)
            return;
        mFileName = fileDialog.getDirectory() + File.separator + fileDialog.getFile();
       
        Save(mFileName);


This is in my "SaveAs" Function. Dont worry about the Save Function. What I'm trying to do is set the file filter to 'nek' but I have no idea how to do this. When the file dialog appears you can save it as Anyfile, and i prefer it to be the type i want.

Any thoughts?
3  Java Game APIs & Engines / Java 2D / colour coding text with JTextArea on: 2004-02-20 23:25:42
Hello, im working on an IDE here and I'm trying to get the coloured text you see with alot of IDEs (NetBeans/Eclipse/VStudio). I was wondering if anyone knew how to do this because I'm kinda stumped.   :-/

I thought maybe you could use the Graphics to draw everything like text, to colour and bold the font or whatever. But this way seemed impractical. Anyone have any ideas that would help?

Thanks in advance  Wink
4  Discussions / General Discussions / Re: Java vs C++ on: 2003-08-14 06:35:04
I'm quite sure that java interprets it then it compiles it...

It's true that the risk of memory leaks in C/C++ is greater than Javas because you have do allocate the memory and deallocate it, but it really depends on the programmers skill. He/She can deallocate the memory as soon as it is not needed, making the memory have more room to do stuff while java does not, not as soon as you might want it to be. Making C/C++ have more efficient memory handling. But as I said earlier, it really depends on the programmer.

But reading all of this, I am half-convinced that it is better to learn Java. Maybe I'll stay with java, Ill just make a game and see if i like it, otherwise ill go back trying to learn the complexities of C++.
5  Discussions / General Discussions / Re: Java vs C++ on: 2003-07-28 21:57:17
Most of the larger scale java programs seem alittle slower than C++. Like NetBeans and Alien Flux (But that game rocks!). And as for the clever Algorithms wouldnt it be the same speed increase if used for c++? So is making an interpreter in Java that makes games suitable? Or is using c++ better?
6  Discussions / General Discussions / Re: Java vs C++ on: 2003-07-28 11:29:08
What I mean as commercial games is like Starcraft, Counter Strike, and StarTrek Elite force. The games that you can find in your local gaming store.  Tongue

So it may be better for me to stay with java then, for now anyway.

P.S. whats OO? and whats JavaDoc? (Pardon my n00bness  Tongue )
7  Discussions / General Discussions / Re: Java vs C++ on: 2003-07-28 11:03:01
My goal is to make a programming language  that makes games easily. Like Game Maker, 3D Game Studio, Dark Basic, and Blitz Basic 3D. Would Java be the 'appropriate' language to use?
8  Discussions / General Discussions / Re: Java vs C++ on: 2003-07-28 09:40:24
so what do you think i should do then? Forget about java and learn C++?  Sad
9  Discussions / General Discussions / Java vs C++ on: 2003-07-28 07:12:37
I've just been trying to learn to do C++ Win32 programming using Visual C++, and I've given up on it because it was co complicated. I read somewhere that learning java beforehand makes learning C++ easier. I've looked at the java language and its way easier than Win32 C++ (in my opinion). So I was hoping for my Java skills to be a full path not just a step towards Win32 C++. But there's a problem. I've read in an article that Java is about 20 to 50 times slower than C++. But it also said it keeps getting upgraded to make it faster. Another thing that is bothering me in java is the buttons but im quite sure that you can change them.  Another thing is that I've never heard of a commercial game that is made from java. So can someone tell me more good points about java and the commercial games that were made by it?
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xFryIx (57 views)
2014-11-13 12:34:49

digdugdiggy (35 views)
2014-11-12 21:11:50

digdugdiggy (29 views)
2014-11-12 21:10:15

digdugdiggy (23 views)
2014-11-12 21:09:33

kovacsa (46 views)
2014-11-07 19:57:14

TehJavaDev (50 views)
2014-11-03 22:04:50

BurntPizza (50 views)
2014-11-03 18:54:52

moogie (65 views)
2014-11-03 06:22:04

CopyableCougar4 (63 views)
2014-11-01 23:36:41

DarkCart (148 views)
2014-11-01 14:51:03
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!