Search:

Type: Posts; User: Asido

Page 1 of 2 1 2

Search: Search took 0.10 seconds.

  1. Thread: Thread to EDT

    by Asido
    Replies
    3
    Views
    4,100

    Re: Thread to EDT

    I have the bones of the program which uses a thread I wrote in the first post and the guy I am doing this for told me to consider running it in EDT instead. It is just a simple game. Everything what...
  2. Thread: Thread to EDT

    by Asido
    Replies
    3
    Views
    4,100

    Thread to EDT

    So I am having an issue with making a thread as EDT. This is the prototype of program I have:

    public class Program implements Runnable {
    public Program() {
    new Thread(this).start();
    }
    ...
  3. Replies
    5
    Views
    2,296

    Re: need help with saving data

    I am not sure, but can the serialization help in this case?
  4. Replies
    2
    Views
    4,415

    Re: Alphabet from sprite sheet

    Oki, I am choosing the first way then :)
  5. Replies
    2
    Views
    4,415

    Alphabet from sprite sheet

    Hello,
    I am making a game and I want to add fonts from the sprite sheet. I have 2 ways in my mind how to implement this:
    1. Cut every letter and put it into the Image Hashtable. So every time the...
  6. Replies
    3
    Views
    2,755

    Re: Authentication problem in a servlet

    Yeh, solved.
  7. Replies
    6
    Views
    2,227

    Re: How to sort an ArrayList of Strings?

    In this case just override the method compareTo()
  8. Replies
    2
    Views
    1,879

    Re: Strange launch problem using command prompt

    Oh, now I get it. I had set the CLASSPATH to servlet-api.jar. After deleting this variable everything is alright.
  9. Replies
    6
    Views
    2,227

    Re: How to sort an ArrayList of Strings?

    Try to look at Comparator and Comparable interfaces. You have to implement one of these or both interfaces, implement some methods and then sort the method by calling Collections.sort() or something....
  10. Replies
    2
    Views
    1,879

    Strange launch problem using command prompt

    I just moved to windows and have a strange problem when trying to run the application. Everytime I run a package, instead of simply writing "java Package.ClassFile" I have to write "java -classpath ....
  11. Replies
    3
    Views
    2,755

    Re: Authentication problem in a servlet

    I was trying to solve it since yesterday and just now when checking the code I wrote here noticed the mistake in web.xml file. ProtectedPade instead of ProtectedPage. That's embarrassing.
  12. Replies
    3
    Views
    2,755

    Authentication problem in a servlet

    Hello,
    I am trying to make a servlet which would have a security. When you try to access to it, the box pops up with login and password boxes. The thing is, that it doesn't appears to me. When I am...
  13. Replies
    1
    Views
    1,799

    when declaring a class

    Hello guys,
    I have one question. What does it mean when you put <..> in the class declaration line? Here is one example, KeyType is in there:
    when calling registerEvent method, the input to a...
  14. Thread: Look & Feel

    by Asido
    Replies
    3
    Views
    2,018

    Re: Look & Feel

    I tried. This method actually refreshes the JFrame but it is still the same - look&feel doesn't change:

    javax.swing.SwingUtilities.updateComponentTreeUI(JFrame frame);


    Here is the way I try...
  15. Thread: Look & Feel

    by Asido
    Replies
    3
    Views
    2,018

    Look & Feel

    Hello guys,

    Anyone can tell me why I don't see different look&feels? This is my main method:


    public static void main(String[ ] args) {
    javax.swing.SwingUtilities.invokeLater(new Runnable()...
  16. Re: BackgroundPanel.java cannot be placed in BorderLayout.NORTH

    Ah, I feel pity that I didn't suggest you that before. I remember I was thinking that you may need both, preferred and the minimum sizes set. Next time I will try to be more confident with the...
  17. Setting a transparency level of a picture issue

    Hello,
    I have such method:

    private ImageIcon createSelectionPattern(int x, int y) {
    BufferedImage bi =...
  18. Re: BackgroundPanel.java cannot be placed in BorderLayout.NORTH

    I don't know why right know, but your paintComponent method in BackgroundPanel class is not working. Try to add System.out.println there, you will see.
  19. Replies
    26
    Views
    14,711

    Re: 2D Java Applet Games

    I am wondering, is there a big difference between JOGL and C++ openGL programming apart the Java and C++ syntax?
  20. Replies
    26
    Views
    14,711

    Re: 2D Java Applet Games

    Good openGL tutorials can be found at Nehe production LINK
    The original examples are written in C++, but below every tutorial you can download JOGL version as well.
  21. Replies
    26
    Views
    14,711

    Re: 2D Java Applet Games

    Well, for 3D game creation pure JRE isn't enough. You will need JOGL (wrapper library that allows OpenGL to be used in the Java) or JWJGL (Lightweight Java Game Library)
  22. [SOLVED] Re: What is not right here? adding JPanel in JFrame

    Solved myself by adding getPreferredSize and getMinimumSize methods in ShowDeck class ;)
  23. [SOLVED] What is not right here? adding JPanel in JFrame

    [SOLVED]

    Hello,
    I am messing up with MVC constructions a little and have a strange problem with adding JPanel to a JFrame. Here is the "skelet" of the code:

    MAIN CLASS:

    public class MVCtest...
  24. Replies
    26
    Views
    14,711

    Re: 2D Java Applet Games

    Actually, another good start would be: The Java 2D games tutorial
    You can find there Tetris, Space Invaders and many other game source codes with good explanation of every part in it. Check it out.
  25. Replies
    3
    Views
    1,689

    Re: Making item sortable (implementing Comparable)

    Just read what I wrote once more ;)
    TIP:

    Anyway, with helloworld922 advice I have solved it. Thanks!
Results 1 to 25 of 50
Page 1 of 2 1 2