User Profile

Collapse

Profile Sidebar

Collapse
ValValVal
ValValVal
Last Activity: Dec 2 '08, 10:04 PM
Joined: Oct 26 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ValValVal
    replied to can't run java program in dos prompt
    in Java
    By mistake I wrote
    java main.java

    in my previous post.

    Actually what I entered was
    java main

    After which compiler said that it cannot find main class.
    See more | Go to post

    Leave a comment:


  • ValValVal
    started a topic can't run java program in dos prompt
    in Java

    can't run java program in dos prompt

    Hi.
    I created simple Hello World application that compiles&runs ok in NetBeans 6.1 but when I try to run it with command line

    java main

    it says that:
    Code:
    Exception in thread "main" java.lang.NoClassFoundDefFoundError:main(wrong name).
    and some other thing

    Advice very appreciated.
    See more | Go to post

  • ValValVal
    started a topic please help with applet deployment
    in Java

    please help with applet deployment

    Hi.

    I have an application consisting of some JFrames and threads ,and other classes as well. I developed it as ordinary application, having in mind to re-make it to be applet.

    I have launching file with just about one line of code launching Client JFrame.
    This launching file itself was just a java application,not a JFrame. I remade it so that it would extend JAppet.
    After I run it in NetBeans 6.1 it worked...
    See more | Go to post

  • ValValVal
    replied to how to set distance between letters?
    in Java
    Thanks, good advice..
    See more | Go to post

    Leave a comment:


  • ValValVal
    replied to how to set distance between letters?
    in Java
    well I knew in HTML it is that easy,there is simple tag for it . Pity if there is no such command in Java.

    Val
    See more | Go to post

    Leave a comment:


  • ValValVal
    started a topic how to set distance between letters?
    in Java

    how to set distance between letters?

    Hi.
    I am writing on JLabel.
    How can I set new distance between letters?

    Help appreciated.
    Thanks in advance,
    Val
    See more | Go to post

  • ValValVal
    started a topic synchronization trouble
    in Java

    synchronization trouble

    Please help me!
    I have two JFrames: ChessBoard and PawnPromotion. PawnPromotion is launched from ChessBoard, and when it is operating I call wait() on ChessPromotion. After user selects piece in PawnPromotion it calls notify() in ChessBoard and exits.

    this is the code in ChessBoard

    Code:
    PawnPromotedSelection pps=new PawnPromotedSelection(this,father_board,from);
            
            synchronized(this)
    ...
    See more | Go to post

  • No it is just that to calculate
    1+2+3+...+n
    I looked up handy formula
    S(n elements of arithmetical progression)=n* (1+n)/2

    Good Turkey Day,
    Val
    See more | Go to post

    Leave a comment:


  • Thanks Jos for your responce.

    I would like to note that the question was if there is a way to disable user from selecting any cell on specific column (and leaving him/her the ability to select any cell than is not on this "deselected " column).
    See more | Go to post

    Leave a comment:


  • In the program inner loop runs times depending on the outer loop.

    Code:
    for ( j=0; j < n; j++ )  
    { 
        for ( k=0; k <= j; k++ ) 
            A[j] = A[j] + C[k]*B[j]; 
    }
    When it runs in 1st outer loop it runs 1 time, in 2nd- 2 times in 3rd- 3 times.
    So we can sum up the amount of time the expression
    Code:
       A[j] = A[j] + C[k]*B[j];
    will be run is

    1+2+3+...+n
    which...
    See more | Go to post

    Leave a comment:


  • How to disable specific column selection in JTable?

    Hi all.

    I have a JTable with 5 columns. Cell Selection is ON. I want to disable user's ability to select any cell that is on 0-th column. Can't find any info on how to cope with it.

    Thanks in advance,
    Val
    See more | Go to post

  • I didnt say that you can't add your event listening code. It is surely possible.
    I said that CONNECTING (initializing) code is grayed out and you cannot edit it.And the code of a listener that is not in TODO section cannot be edited as well. So when I add event listener for e.g. mouse click NetBeans adds code to treat it. I can add code in todo section but cannot edit initializing code and code of a method that is not TODO (it's grayed ou...
    See more | Go to post

    Leave a comment:


  • Besides, after adding event listener it seems impossible to undo it.
    The code connecting event with the form is non-editable. If I delete the code of the listener it won't compile anymore.

    Val.
    See more | Go to post

    Leave a comment:


  • It seems that it is not the case

    Well it seems sometimes that NetBeans editor is not without flaws.
    Val.
    See more | Go to post

    Leave a comment:


  • I just want to try edit it

    So actually I cannot "edit" the code that I have now? Pity if so.
    I asked the question mainly because someone asked me about this grey code in NetBeans.

    And yes,sometimes NetBeans (I noticed it ) has code that I want to remove. E.g. when I delete a component it crashes the project because there is grey code referring to it which I would like to remove manually.
    Thanks...
    See more | Go to post

    Leave a comment:


  • no special needs

    Hi!
    I have no special needs to edit it, but still want to know to get more knoledge about the system ,and sometimes NetBeans generates bad code. In these cases I must help him out.
    See more | Go to post

    Leave a comment:


  • ValValVal
    started a topic how to edit grayed out area of GUI in NetBeans?
    in Java

    how to edit grayed out area of GUI in NetBeans?

    Please sorry for my dumb question but I cannot find information on how I can change settings so that in NetBeans 6.1 I can edit blue guarded areas.

    I read in FAQ NetBeans Wiki: FaqFormEditingG uardedBlocks that I had to change something in Properties->Code ,but I really can't figure out what this should be.

    Thanks in advance.
    See more | Go to post

  • ValValVal
    started a topic How to repaint a child window?
    in Java

    How to repaint a child window?

    Hi.
    Please help me and sorry for my dumb question.

    I use NetBeans 6.1 in development.
    I have JFrame Client. In that JFrame when I click on button StartGame there appears another JFrame ChessGame. It has some Swing controls and some painting.Painti ng is done directly on JFrame. I am not sure,but probably this is called child window.

    Now I want this child window to be repainted well. I set event listeners...
    See more | Go to post

  • ValValVal
    replied to Cannot load image in constructor
    in Java
    Thanks VERY much. It works now!
    See more | Go to post

    Leave a comment:


  • ValValVal
    replied to Cannot load image in constructor
    in Java
    No,as far as I see nothing is done.
    I use NetBeans 6.1.

    This code draws picture:

    Code:
    package drawingpieces;
    
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.imageio.*;
    import java.awt.image.*;
    
    public class Example03 extends Frame {
    
        public BufferedImage whitePawn,  whiteKnight,  whiteBishop,  whiteRook,  whiteQueen,
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...