Search:

Type: Posts; User: Javabeginner

Search: Search took 0.11 seconds.

  1. Replies
    14
    Views
    2,284

    Re: NoClassDefFound

    That is problem I think It does not compile I used this copeg's suggestion and no error message is shown when I select Project->Build Project and I check "bin" folder that normally contains .class...
  2. Replies
    14
    Views
    2,284

    Re: NoClassDefFound

    That does not help :-< Again "bin" folder is empty First time I got this problem I did not get solution (quickly) and I had to create new project and copy all classes to it and it started to work (no...
  3. Re: Setting JFrame maximum size that pack() can not violate

    Darryl.Burke I understand your idea but I have finished my project (actually I believed that it is finished and now teacher want one of panels to be inside JScrollPane).

    Shortly, When program...
  4. Setting JFrame maximum size that pack() can not violate

    How can I set maximum JFrame size that pack() method can not violate.

    Namely, I have JFrame and named it frame and I don't want let some parts of it be hidden beyond screen bounds (I mean one...
  5. Replies
    3
    Views
    3,194

    Re: Making computer independent file path

    It helped Norm I created one output file with name "Dndndndn.txt" and found where it was saved.
  6. Replies
    14
    Views
    2,657

    Re: Image to file and contra

    Thanks for post.
  7. Replies
    14
    Views
    2,657

    Re: Image to file and contra

    norm When program starts, it reads all of images from file Then a frame containing combo box for name selection is drawn. And if for example John Norm is selected then panel containing his picture...
  8. Replies
    3
    Views
    3,194

    Making computer independent file path

    How can I add some files into my project that will have file path independent from computer on which program is executed. I mean, I am using file "Names.txt" located on desktop and in order to...
  9. Replies
    14
    Views
    2,657

    Re: Image to file and contra

    Darryl.Burke I think that you have not read my first post carefully I wrote : for example text file It can be any type of file but aim is to have just one file instead of many pictures. I am also...
  10. Replies
    14
    Views
    2,657

    Re: Image to file and contra

    I am doing Java project in which each user should have its own picture that can be changed and I have to save these changes Since there can be many many users it can become a little bit difficult to...
  11. Replies
    14
    Views
    2,657

    Re: Image to file and contra

    Thanks for advices.

    I have also found Base64 encoder and decoder at Encode/Decode to/from Base64 - Real's Java How-to and downloaded java mail from...
  12. Replies
    14
    Views
    2,657

    Re: Image to file and contra

    I am making project and its GUI needs to show some images (that can be changed in program) and then I want to save them back. Saving images in folder "Images" and something like that will make things...
  13. Replies
    14
    Views
    2,657

    Image to file and contra

    Is there any way to write an array of images into file ( for example text file) and read them from file (in Java of course).
  14. Replies
    14
    Views
    2,284

    Re: NoClassDefFound

    As I have written previously, there is none ClassMain.class !!! I have just ClassMain.java written in eclipse editor and normally in project folder i have bin and src folders and bin is just empty
  15. Replies
    14
    Views
    2,284

    Re: NoClassDefFound

    That's just my typo (with ClassMain and MainClass (names are same)) Sorry for that.

    Message in console is that one from my first post and it also shows one frame with name "Java Virtual Machine...
  16. Replies
    14
    Views
    2,284

    Re: NoClassDefFound

    This is complete code I am talking about (project also contains a heap of other classes, none of them containing main method.


    import java.io.FileNotFoundException;
    import java.io.IOException;
    ...
  17. Replies
    14
    Views
    2,284

    Re: NoClassDefFound

    I have a class named ClassMain name in my project but it does not compile (folder "Bin" does not contain any of .class files) :(
  18. Replies
    14
    Views
    2,284

    NoClassDefFound

    I am writing a Java project, with public static void main in ClassMain class and somehow get this NoClassDefFoundError (before, evereything worked correctly).

    java.lang.NoClassDefFoundError:...
  19. Re: Adding fixed size picture and button to panel

    That works . Thanks a lot for help.
  20. Re: Adding fixed size picture and button to panel

    I mean, there is no syntax error It does not show picture completely Just part of it is showed and immediatly below JButton (try to run it with some real "big Size" image ( not small icon or...
  21. Re: Adding fixed size picture and button to panel

    That is exactly what I did copeg but it does not work properly. Here is code (just change file address to point to some real picture in your documents).

    iimport javax.imageio.ImageIO;
    import...
  22. Re: Adding fixed size picture and button to panel

    Thanks for replies.

    copeg How can I then add Button to the panel. When I add it,for example

    panel.add(new JButton("ok", BorderLayout.SOUTH)

    it is displayed over...
  23. Adding fixed size picture and button to panel

    I need to make a JPanel that contains picture and JButton. JButton should contain an actionListener and when user clicks on it JFileChooser opens and user can select picture and change that one...
Results 1 to 23 of 23