|
OK, so you want to work with it.
Java ME JDK 3.0[^]
download that JDK and install it. Setup the project preferences, so that it points to this JDK (you might need to import it first into the IDE).
Afterwards you should be able to address the Java ME.
Eclipse:
setup Project Preferences: right click on project -> preferences -> Java Build Path
importing JRE or JDK: Window -> Preferences -> installed JREs
Netbeans:
setup Project Preferences: ???
importing JRE or JDK: ???
regards
Torsten
I never finish anyth...
|
|
|
|
|
i am getting this errror when i try to run the file on java netbeans..it doesnt record the voice and compares...can anyone please reply to this problem.
thank you
Exception in thread "AWT-EventQueue-0"
java.lang.IllegalArgumentException: No line matching interface
TargetDataLine supporting format PCM_SIGNED 44100.0 Hz, 16 bit,
stereo, 4 bytes/frame, little-endian is supported.
at javax.sound.sampled.AudioSystem.getLine(AudioSystem.java:459)
at voice.AdminForm.jButtonStartRecordingActionPerformed(AdminForm.java:266)
at voice.AdminForm.access$200(AdminForm.java:24)
at voice.AdminForm$3.actionPerformed(AdminForm.java:77)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6267)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6032)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Exception in thread "AWT-EventQueue-0"
java.lang.IllegalArgumentException: No line matching interface
TargetDataLine supporting format PCM_SIGNED 44100.0 Hz, 16 bit,
stereo, 4 bytes/frame, little-endian is supported.
at javax.sound.sampled.AudioSystem.getLine(AudioSystem.java:459)
at voice.AdminForm.jButtonStartRecordingActionPerformed(AdminForm.java:266)
at voice.AdminForm.access$200(AdminForm.java:24)
at voice.AdminForm$3.actionPerformed(AdminForm.java:77)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6267)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6032)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
|
|
|
|
|
java.lang.IllegalArgumentException: No line matching interface
TargetDataLine supporting format PCM_SIGNED 44100.0 Hz, 16 bit,
stereo, 4 bytes/frame, little-endian is supported.
at javax.sound.sampled.AudioSystem.getLine(AudioSystem.java:459)
at voice.AdminForm.jButtonStartRecordingActionPerformed(AdminForm.java:266)
That's where you should take a look at. There's an IllegalArgumentException thrown at the class AudioSystem / method getLine(), which is Line 459 of that file (please try to set the line count visible if not yet done - > Preferences).
The method getLine() will have at least one argument, which is not valid (probably it's null in this moment). Try to set a breakpoint on that exception and your debugger will show you the problem.
regards
Torsten
I never finish anyth...
|
|
|
|
|
same program works in one system,but not in another ...
do u need any specific audio driver or any software since its shows error in audiofile..
there is a error shown in this line of audio system..
target Dataline=(TargetDataline)Audiosystem.getLine(Info);
i have problem recording voice..it doesnt enable the stop button when start record is click.
|
|
|
|
|
public static Line getLine(Line.Info info) throws LineUnavailableException {
LineUnavailableException lue = null;
List providers = getMixerProviders();
// 1: try from default mixer for this line class
try {
Mixer mixer = getDefaultMixer(providers, info);
if (mixer != null && mixer.isLineSupported(info)) {
return mixer.getLine(info);
}
} catch (LineUnavailableException e) {
lue = e;
} catch (IllegalArgumentException iae) {
// must not happen... but better to catch it here,
// if plug-ins are badly written
}
// 2: if that doesn't work, try to find any mixing mixer
for(int i = 0; i < providers.size(); i++) {
MixerProvider provider = (MixerProvider) providers.get(i);
Mixer.Info[] infos = provider.getMixerInfo();
for (int j = 0; j < infos.length; j++) {
try {
Mixer mixer = provider.getMixer(infos[j]);
// see if this is an appropriate mixer which can mix
if (isAppropriateMixer(mixer, info, true)) {
return mixer.getLine(info);
}
} catch (LineUnavailableException e) {
lue = e;
} catch (IllegalArgumentException iae) {
// must not happen... but better to catch it here,
// if plug-ins are badly written
}
}
}
// 3: if that didn't work, try to find any non-mixing mixer
for(int i = 0; i < providers.size(); i++) {
MixerProvider provider = (MixerProvider) providers.get(i);
Mixer.Info[] infos = provider.getMixerInfo();
for (int j = 0; j < infos.length; j++) {
try {
Mixer mixer = provider.getMixer(infos[j]);
// see if this is an appropriate mixer which can mix
if (isAppropriateMixer(mixer, info, false)) {
return mixer.getLine(info);
}
} catch (LineUnavailableException e) {
lue = e;
} catch (IllegalArgumentException iae) {
// must not happen... but better to catch it here,
// if plug-ins are badly written
}
}
}
// if this line was supported but was not available, throw the last
// LineUnavailableException we got (??).
if (lue != null) {
throw lue;
}
// otherwise, the requested line was not supported, so throw
// an Illegal argument exception
throw new IllegalArgumentException("No line matching " +
info.toString() + " is supported.");//line 459
what could be the error
}
|
|
|
|
|
search for line 459 in your code. There is the problem. You're throwing multiple IllegalArgumentExceptions in this, I can't determinate which is reacting.
What I can tell you: the exception is just the consequence, the failure itself is produced before. So you need to find out who is calling that method and what that calling function is handing over to the getLine()-method.
regards
Torsten
I never finish anyth...
|
|
|
|
|
Hi guys,i am asking about webcam video recording thru java,i`ve tried this code but i get this output> Video Capture failed after approximately 0 seconds.
The code consists of 2 files web.java and location2location.java,Can anybody help me about that??thnxxx
import javax.swing.*;
import javax.swing.event.*;
import java.io.*;
import javax.media.*;
import javax.media.format.*;
import javax.media.util.*;
import javax.media.control.*;
import javax.media.protocol.*;
import java.util.*;
import java.awt.*;
import java.awt.image.*;
import java.awt.event.*;
import com.sun.image.codec.jpeg.*;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
public class Web extends Panel implements ActionListener
{
public static Player player = null;
public CaptureDeviceInfo di = null;
public MediaLocator ml = null;
public JButton capture1 = null;
public Buffer buf = null;
public Image img = null;
public VideoFormat vf = null;
public BufferToImage btoi = null;
public ImagePanel imgpanel = null;
public MediaLocator dl;
String destinationName = null;
public double duration = 10;
public int waitFor = 0;
public Vector devices;
public static final Format VIDEO_FORMAT = new VideoFormat(VideoFormat.CINEPAK);
public Location2Location capture;
public Format[] formats = new Format[1];
public ContentDescriptor videoContainer = new ContentDescriptor(FileTypeDescriptor.MSVIDEO);
public ContentDescriptor container = null;
public Web()
{
setLayout(new BorderLayout());
setSize(320,550);
imgpanel = new ImagePanel();
capture1 = new JButton("Capture1");
capture1.addActionListener(this);
String str1 = "vfw:Logitech USB Video Camera:0";
String str2 = "vfw:Microsoft WDM Image Capture (Win32):0";
di = CaptureDeviceManager.getDevice(str2);
ml = new MediaLocator("vfw://0");
String DEFAULT_VIDEO_NAME = "captured.avi";
String VIDEO = "video";
String selected = VIDEO;
formats[0] = VIDEO_FORMAT;
if (destinationName==null)
destinationName = DEFAULT_VIDEO_NAME;
container = videoContainer;
dl = new MediaLocator(destinationName);
System.out.println("Configuring for capture. Please wait.");
capture = new Location2Location(ml,
dl,formats,container,1.0);
System.out.println("Started recording " + duration +
" seconds of " + selected + " ...");
capture.setStopTime(new Time(duration));
if (waitFor==0)
waitFor = (int)(4000*duration);
else
waitFor *= 1000;
int waited = capture.transfer(waitFor);
int state = capture.getState();
if (state==Location2Location.FINISHED)
System.out.println(selected + " capture successful " +
"in approximately " + ((int)((waited+500)/1000)) +
" seconds. Data written to " + destinationName);
else if (state==Location2Location.FAILED)
System.out.println(selected + " capture failed " +
"after approximately " + ((int)((waited+500)/1000)) +
" seconds");
else {
System.out.println(selected + " capture still ongoing " +
"after approximately " + ((int)((waited+500)/1000)) +
" seconds");
System.out.println("Process likely to have failed");
}
System.exit(0);
Location2Location(MediaLocator sourceLocation,
MediaLocator destinationLocation, Format[] outputFormats,
ContentDescriptor outputContainer, double rate) {
state = TRANSLATING;
sinkLocation = destinationLocation;
try {
if (sourceLocation==null)
model = new ProcessorModel(outputFormats,outputContainer);
else
model = new ProcessorModel(sourceLocation,
outputFormats,outputContainer);
processor = Manager.createRealizedProcessor(model);
}
catch (Exception e) {
state = FAILED;
return;
}
translationRate = processor.setRate((float)Math.abs(rate));
processor.addControllerListener(this);
source = processor.getDataOutput();
try {
sink = Manager.createDataSink(source,sinkLocation);
}
catch (Exception sinkException) {
state = FAILED;
processor.removeControllerListener(this);
processor.close();
processor = null;
return;
}
sink.addDataSinkListener(new DataSinkListener() {
public void dataSinkUpdate(DataSinkEvent e) {
if (e instanceof EndOfStreamEvent) {
sink.close();
source.disconnect();
if (state!=FAILED)
state = FINISHED;
}
else if (e instanceof DataSinkErrorEvent) {
if (sink!=null)
sink.close();
if (source!=null)
source.disconnect();
state = FAILED;
}
}
});
processor.start();
}
Location2Location(String sourceName, String destinationName,
Format[] outputFormats, ContentDescriptor outputContainer) {
this(new MediaLocator(sourceName), new MediaLocator(destinationName),
outputFormats, outputContainer);
}
Location2Location(MediaLocator sourceLocation,
MediaLocator destinationLocation, Format[] outputFormats,
ContentDescriptor outputContainer) {
this(sourceLocation,destinationLocation,outputFormats,outputContainer,1.0f);
}
Location2Location(String sourceName, String destinationName,
Format[] outputFormats, ContentDescriptor outputContainer,
double rate) {
this(new MediaLocator(sourceName), new MediaLocator(destinationName),
outputFormats, outputContainer, rate);
}
public synchronized void controllerUpdate(ControllerEvent e) {
if (state==FAILED)
return;
if (e instanceof StopEvent) {
processor.removeControllerListener(this);
processor.close();
if (state==TRANSLATING)
state = TRANSFERRING;
}
else if (e instanceof ControllerErrorEvent) {
processor.removeControllerListener(this);
processor.close();
state = FAILED;
}
}
public int transfer(int timeOut) {
if (state==FAILED)
return -1;
try {
sink.open();
sink.start();
}
catch (Exception e) {
state = FAILED;
return -1;
}
if (state==TRANSLATING)
state = TRANSFERRING;
if (timeOut<=0)
return timeOut;
int waited = 0;
while (state!=FAILED && state!=FINISHED && waited<timeOut) {
try { Thread.sleep(WAIT_PERIOD); }
catch (InterruptedException ie) { }
waited += WAIT_PERIOD;
}
return waited;
}
|
|
|
|
|
Hi, i am asking how could i record a video from my webcam using java,i have tried lots of codes but nothing works I have installed the JMF and included the jmf.jar and sound.jar in my classpath but the jmfStudio and jmfRegistry don`t run(i dunno why?but when i compile the java files including javax.media they run with no errors but they don`t record).Can anyone help me about that? i am using windows vista.thnx in advance
|
|
|
|
|
I am not sure why you need this but I think I can still help you....
I have a peace of code, hope you understand that code and apply it appropriately
============CODE===============
CaptureDeviceInfo di = null;
try{
MediaLocator loc= new MediaLocator("vfw://0");
p=Manager.createRealizedPlayer(loc);
p.start();
f = new JFrame();
t.setTitle("StuMgtSystem Java:Lecture");
t.setLayout(new BorderLayout());
t.add("South", p.getControlPanelComponent());
// Adding the Visual Component to display Video captured by Player
// from URL provided by MediaLocator
t.add(p.getVisualComponent(), BorderLayout.CENTER);
t.pack();
t.setSize(200, 100);
t.setVisible(true);
t.setTitle("Capturing ON");
}catch(Exception e){
e.printStackTrace();
}
=========== END of CODE==========
I am not sure if I can help you further but hope this works for you as it does work for others
|
|
|
|
|
I have tried one time OpenCV with Java and work for me, maybe can be this last thing you want do
|
|
|
|
|
YOu need to use a mixed datasource for that.
One datasource would be handling audio and the other would take care of video.
Now combine these two datasource into a mixeddatasource and use the processor and datasink to obtain the output
|
|
|
|
|
hi for all
(SORRY FOR MY BAD ENGLISH)
i have a button , i want to open a website when i press that button
what should i do?
thank you .
|
|
|
|
|
williamroma wrote: i have a button , i want to open a website when i press that button what should i do?
Write some code! This question is far too vague to give a sensible answer.
I must get a clever new signature for 2011.
|
|
|
|
|
|
Yeah, some good stuff on that site.
I must get a clever new signature for 2011.
|
|
|
|
|
simlpy throw the link at the OS - it should be able to handle that (open default browser and refer to that given link).
The example David posted is good, take a look at that one.
regards
Torsten
I never finish anyth...
|
|
|
|
|
hi, I'm trying to create my own dialog by extending the JDialog class
this is the code i used to start:
import javax.swing.JDialog;
public class ColorManager extends JDialog{
private static final long serialVersionUID = 1L;
public ColorManager(){
super();
this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
this.pack();
this.setVisible(true);
}
}
when i try to run the code it works fine but i'm getting the following exception:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: defaultCloseOperation must be one of: DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, or DISPOSE_ON_CLOSE
i read that there were problems with WINDOWS_EXIT or something like that but the parameter i pass should do the job.
the thing that makes it even weirder is that when i change my class so it will contain a JDialog field instead of extending it, it seems to work just fine.
I asked a friend to test this on his computer and the code did not throw the exception, he is using jre version 1.6.022 and I'm using 1.6.022 both of us are using 64 bit.
so what did i do wrong? or is that a bug in the JRE?
thank,
Amit ofer
Edit: forgot to mention, I'm using eclipse
Edit2: i tried the same code in Netbeans and it works fine, what could be my problem??
modified on Saturday, March 26, 2011 7:12 AM
|
|
|
|
|
well, you did close the window - and wanted it to react afterwards. This must result in an exception.
The IDE is never the problem - this is all native java code.
regards
Torsten
I never finish anyth...
|
|
|
|
|
Hello ,
I have dump file generated by java.exe We are using JDK\1.5.0_10\bin\java.exe
FULLDUMP_FirstChance_epr_Process_Shut_Down_java.ex e.dmp.
When I open this dump file I can see with following call stack:
ntdll!KiFastSystemCallRet
kernel32!ExitProcess+14
msvcrt!__crtExitProcess+32
msvcrt!_cinit+d2
msvcrt!exit+11
jvm!jmm_GetLastGCStat+e0d5
jvm!jmm_GetLastGCStat+f154
jvm!jmm_GetLastGCStat+106cc
jvm!AsyncGetCallTrace+1cf20
jvm!AsyncGetCallTrace+1cc7d
jvm!JVM_StartThread+186
jvm!JVM_RegisterPerfMethods+2d4bc
jvm!JVM_RegisterPerfMethods+2d48a
msvcrt!_endthreadex+a3
kernel32!GetModuleHandleA+df
I've searched the internet, but was not able to find anything that described this problem.
WinDbx shows some additional information:
FAULTING_IP:
+0
00000000 ?? ???
EXCEPTION_RECORD: ffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 00000000
ExceptionCode: 80000003 (Break instruction exception)
ExceptionFlags: 00000000
NumberParameters: 0
FAULTING_THREAD: 00000cfc
DEFAULT_BUCKET_ID: WRONG_SYMBOLS
PROCESS_NAME: java.exe
MODULE_NAME: msvcrt
FAULTING_MODULE: 7c800000 ntdll
DEBUG_FLR_IMAGE_TIMESTAMP: 45d70b06
ERROR_CODE: (NTSTATUS) 0x80000003 - {EXCEPTION} Breakpoint A breakpoint has been reached.
PRIMARY_PROBLEM_CLASS: WRONG_SYMBOLS
BUGCHECK_STR: APPLICATION_FAULT_WRONG_SYMBOLS
LAST_CONTROL_TRANSFER: from 77e6690d to 7c82860c
STACK_TEXT:
WARNING: Stack unwind information not available. Following frames may be wrong.
066ce844 77e6690d 00000001 77e8f3b0 ffffffff ntdll!KiFastSystemCallRet
066ce858 77bcade4 00000001 066ce894 77bcaefc kernel32!ExitProcess+0x14
066ce864 77bcaefc 00000001 00000001 6d8b1390 msvcrt!strerror+0x2b4a
066ce894 77bcaf52 00000001 00000000 00000000 msvcrt!initterm+0xf6
066ce8a8 6d80c21a 00000001 6d8535b5 00000001 msvcrt!exit+0x11
066ce90c 6d80d299 00000000 00000000 00000000 jvm!jmm_GetLastGCStat+0xe0d5
066ce97c 6d80e811 7c81a379 77bc6cd5 066ce9ac jvm!jmm_GetLastGCStat+0xf154
066cfdf8 6d7b744d 6d7b7451 066cff08 066cfe1c jvm!jmm_GetLastGCStat+0x106cc
066cfe48 6d7b71aa 066cff08 05e6cd9c 6d8b2104 jvm!AsyncGetCallTrace+0x1cf20
066cfec4 6d7d1de8 066cff08 05e6cd98 05e6cd9c jvm!AsyncGetCallTrace+0x1cc7d
066cff18 6d83fad4 05e6d580 05e6d580 05e6d580 jvm!JVM_StartThread+0x186
066cff44 6d83faa2 04d50280 6d80beed 00000000 jvm!JVM_RegisterPerfMethods+0x2d4bc
066cff84 77bcb530 05e6d580 00000000 00000000 jvm!JVM_RegisterPerfMethods+0x2d48a
066cffb8 77e6482f 04a50280 00000000 00000000 msvcrt!endthreadex+0xa3
066cffec 00000000 77bcb4bc 04a50280 00000000 kernel32!GetModuleHandleA+0xdf
STACK_COMMAND: ~0s; .ecxr ; kb
FOLLOWUP_IP:
msvcrt!strerror+2b4a
77bcade4 cc int 3
SYMBOL_STACK_INDEX: 2
SYMBOL_NAME: msvcrt!strerror+2b4a
FOLLOWUP_NAME: MachineOwner
IMAGE_NAME: msvcrt.dll
BUCKET_ID: WRONG_SYMBOLS
FAILURE_BUCKET_ID: WRONG_SYMBOLS_80000003_msvcrt.dll!base_address
Any ideas?
Regards,
Kiril
|
|
|
|
|
ERROR_CODE: (NTSTATUS) 0x80000003 - {EXCEPTION} Breakpoint A breakpoint has been reached.
PRIMARY_PROBLEM_CLASS: WRONG_SYMBOLS
BUGCHECK_STR: APPLICATION_FAULT_WRONG_SYMBOLS
Is this from a debugging-session? If not debug your code. and if it fails, give us a look on the code or so. The machine code output is worthless.
regards
Torsten
I never finish anyth...
|
|
|
|
|
hi, I'm doing a path-finding project as part of my 4th year software engineering degree.
we're suppose to give visual representation to a bunch of multi-agent pathfinding algorithm.
the simplest one is A* adapted for multiagents.
anyway our environment is a grid map where every cell can be either blocked or used as part of an agent's path.
what i wanna do is use animation to give a good representation of the final movement of the agent, but animating color change in my grid.
i.e paint every step in the path for a second or so with some color to show how the agent moves.
and the other thing i wanna do is to represent the way the algorithm works by painting the changes in the open list and closed list of the A* algorithm while its doing its calculation.
I'm using an adapted version of the observer design pattern to send events from my algorithm layer to my controller and gui layer.
what i wanna do in the gui layer is everytime a tile is added to the open list, i want to have that cell painted in some color and then have it fade away according to a predefined timer or maybe later add a slider to control this timer.
I looked at the code here: http://www.java2s.com/Code/Java/2D-Graphics-GUI/Colorfadinganimation.htm.
it seems pretty simple, the problem is that every tile animation has to be independent of the others to allow the algorithm and everything to keep running and different animations to start.
so whats the best way to achieve the results i'm looking for? should i just open a different thread for each animation or have a pre-made thread for each cell.
would that be an over kill for the application, since there can be up to 1000 cells and therfore close to 1000 threads performing animation.
another issue i think i might encounter is the fact that it might happen that a cell will start its color fading animation and then will have to restart and i don't want the two animations to go at the same time (only one thread performing animation for the same cell at the same time).
I hope i was clear enough with what i'm trying to achieve, if someone has any ideas or thought it could really help me with my project.
thanks in advanced
Amit Ofer
|
|
|
|
|
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
|
|
|
|
|
|