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.
User Profile
Collapse
-
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:
and some other thingCode:Exception in thread "main" java.lang.NoClassFoundDefFoundError:main(wrong name).
Advice very appreciated. -
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... -
-
well I knew in HTML it is that easy,there is simple tag for it . Pity if there is no such command in Java.
ValLeave a comment:
-
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 -
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) -
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,
ValLeave 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).Leave a comment:
-
In the program inner loop runs times depending on the outer loop.
When it runs in 1st outer loop it runs 1 time, in 2nd- 2 times in 3rd- 3 times.Code:for ( j=0; j < n; j++ ) { for ( k=0; k <= j; k++ ) A[j] = A[j] + C[k]*B[j]; }
So we can sum up the amount of time the expressionwill be run isCode:A[j] = A[j] + C[k]*B[j];
1+2+3+...+n
which...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 -
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...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.Leave a comment:
-
It seems that it is not the case
Well it seems sometimes that NetBeans editor is not without flaws.
Val.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...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.Leave a comment:
-
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. -
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... -
-
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,Leave a comment:
No activity results to display
Show More
Leave a comment: