|
Hi All,
I have created a contentPane of 1600 x 1600. On this contentPane i am using JLabels attached to JPanels to show images. I have set the contentPane layoutmanager to null so i can place the JPanels where i want. E.g I want to place a JPanel off the screen so my player sprite can walk towards it and then the JPanel becomes visible as it enters the screen.
My probelm is that the JPanels are getting placed and showing on the initial screen but when my player sprite moves in a direction (lets say right) the JPanel also moves with the player sprite as the screen moves. How can i glue the JPanel to a fixed position? I have tried various layout managers but this also does not work.
Kurt
|
|
|
|
|
|
hi
(SORRY FOR MY BAD ENGLISH)
i am trying to make a GUI java .
it containes many textarea
but the number of textarea is defiend in the run time
how can i built a panel that uses scorll , what every the number of textarea i have the panel should not make an exception
thank you all
|
|
|
|
|
|
Dear sir,
I have collection of c++ classes,I want use them into my java application.
What is the best method to do this.
regards
sankar
|
|
|
|
|
|
Besides JNI you can also do the following.
1. Wrap your C++ code in a executable
2. provide a communications interface (such as sockets)
3. Run/manage the the executable via Runtime.exec() and communicate with it via the communications api.
The advantage to this over JNI is that it is easier to debug and the native code cannot crash the java VM.
|
|
|
|
|
I was involved in a commercial product that used this design model and it really was nothing but pain. In the end our management canned the whole thing because the outside company that did the bulk of the development could never get it to work properly.
I must get a clever new signature for 2011.
|
|
|
|
|
I worked with a senior developer that could not manage to produce a design document after three tries. On a very simple project. And before the third try I had basically outlined the document in detail to him.
|
|
|
|
|
Yes, there's no shortage of seniors like that in my experience.
I must get a clever new signature for 2011.
|
|
|
|
|
hi for all
(SORRY FOR MY BAD ENGLISH)first: i thank you all
i am always ask you and you always help me
really thank you
second:i want to make a program in java and after a one minute i want the program to pring anything
how can i use the time to make it
thank you all
|
|
|
|
|
Try Google and enter "Java Time" or "Java Elapsed Time" as your search keys. You will then find lots of references to classes and methods that can help you.
I must get a clever new signature for 2011.
|
|
|
|
|
Time flies like an arrow - fruit flies like banana
Time is measured in "ticks". Refer to the class Date[^] for further information. It is explained very well there.
regards
Torsten
I never finish anyth...
|
|
|
|
|
The Java Thread class[^] has a sleep() method which suspends the thread for the specified time span. That could be all you need (it really depends on your requirements, if the app has a GUI, you need either some timer or a separate Thread; if there is no GUI, no activity while waiting at all, then sleep suffices).
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
that's right,Thread. from china
|
|
|
|
|
Do you want to print the results repeatedly? If so read more about Threads.
Did you tryout anything yet?
I appreciate your help all the time...
CodingLover
|
|
|
|
|
hi
(SORRY FOR MY BAD ENGLISH)
i thank you all
i have solved the problem
realy thank you all
now i have some new problems , i try to solve it
|
|
|
|
|
Good luck then
I appreciate your help all the time...
CodingLover
|
|
|
|
|
hi,
could you please introduce me a good reference regarding starting how to start or tutorial regarding J2ee Enterprise application.
thxx
|
|
|
|
|
It's all on the Java Website[^].
I must get a clever new signature for 2011.
|
|
|
|
|
|
Are you sure that's the right link? It looks more like a tutorial on how to build desktop applications with the Eclipse RCP rather than how to build a JEE enterprise application. I haven't read it all the way through, that's just based on a quick glance, but I didn't see any mention of anything that I would expect to see in a discussion of JEE (servlets, EJBs, persistence, JDBC, and all that gubbins).
|
|
|
|
|
*cough* OK, men are not capable to do 2 things at a time...proven one more time!
Ebooks on J2EE[^]
THIS was the link I wanted to show here.
Now I should check the other website and hope there is not one reading books he does not really need
regards
Torsten
I never finish anyth...
|
|
|
|
|
|
Hi,
I read an article regarding J2EE application Scenario. one of them is Multi-tier scenario. Multi tier application could be combination of Web Container, EJB and EIS.
Could you please some one explain more about EIS Resources. I really haven't got its meaning.
what is EIS tier and what is its responsibility.
thans in advance
|
|
|
|