Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 32
Search took 0.24 seconds.
Search: Posts Made By: icm9768
Forum: Java and JSP 01-26-2009, 01:31 PM
Replies: 1
Views: 934
Posted By icm9768
I don't see you actually instantiating an...

I don't see you actually instantiating an ImagePanel anywhere and putting it in the frame. Try adding something like:

super("");
setSize(300, 300);
...
Forum: Java and JSP 12-03-2008, 01:55 AM
Replies: 1
Views: 1,045
Posted By icm9768
When I run this, it seems to work fine although I...

When I run this, it seems to work fine although I did have to fix a typo in the code you posted:

Color mySytle=new Color(666);

I changed mySytle to myStyle.

I saw the string painted in black...
Forum: Java and JSP 12-03-2008, 01:49 AM
Replies: 0
Views: 963
Posted By icm9768
Image Interpolation - Need different approach

I'm having problems with built in Java image interpolation methods and haven't had any success finding a way to create my own, or using a different existing one. Basically I'd like to interpolate...
Forum: Java and JSP 11-20-2008, 09:11 PM
Replies: 5
Views: 6,076
Posted By icm9768
5 points of precision would be sufficient but it...

5 points of precision would be sufficient but it would be cool to have a variable number of points. I'd be willing to help you out, but I'm not very familiar with the inner workings of fp type math.
Forum: Java and JSP 11-20-2008, 05:55 PM
Replies: 5
Views: 6,076
Posted By icm9768
I have a very high data rate coming in off the...

I have a very high data rate coming in off the socket of floating point data. Values will always be between -0.5 and 0.5 so 32 bits seemed like overkill. I could always just multiply values by 10 (or...
Forum: Java and JSP 11-19-2008, 10:51 PM
Replies: 5
Views: 6,076
Posted By icm9768
16 bit floating point (Half)

After googling around for a while, I haven't been able to find anything helpful about an implementation of a 16-bit floating point type for Java. Does anyone know of any sites that might help me out?
Forum: Java and JSP 09-08-2008, 03:06 AM
Replies: 2
Views: 1,528
Posted By icm9768
A fairly straight forward approach would be to...

A fairly straight forward approach would be to multiply your existing number by 10 and then add the new digit.

So in your example below the user enters 5. Since your initial number would be zero...
Forum: Java and JSP 08-15-2008, 03:57 AM
Replies: 5
Views: 1,742
Posted By icm9768
It would be Student.getStudentNum(). Static...

It would be Student.getStudentNum(). Static variables are shared among ALL instances of the class so it doesn't require you to reference it via any particular instance (bob in your case), nor should...
Forum: Java and JSP 05-01-2008, 05:52 PM
Replies: 1
Views: 1,436
Posted By icm9768
Try calling validate() on your container.

Try calling validate() on your container.
Forum: Java and JSP 04-08-2008, 05:22 AM
Replies: 1
Views: 2,000
Posted By icm9768
What you need is a basic tutorial in Java2D. With...

What you need is a basic tutorial in Java2D. With it, you can draw virtually anything you need, including a signal structure. There are many tutorials available. Here's a link to Sun's 2D trail:
...
Forum: Java and JSP 04-08-2008, 05:08 AM
Replies: 1
Views: 1,976
Posted By icm9768
The problem you're encountering is mixing...

The problem you're encountering is mixing lightweight(JMenuBar) and heavyweight(Canvas) components. A common issue but it's easily correctable. Use the JPopupMenu.setLightWeightPopupEnabled() method....
Forum: Java and JSP 03-27-2008, 05:56 AM
Replies: 1
Views: 1,824
Posted By icm9768
Now that you're reading the file in okay you have...

Now that you're reading the file in okay you have multiple steps to take.

1) The first question I have is if you have to store your data in arrays or if you can use Vectors/ArrayLists. I don't see...
Forum: Java and JSP 03-24-2008, 06:15 AM
Replies: 1
Views: 2,080
Posted By icm9768
There are at least two basic ways of handling...

There are at least two basic ways of handling this. One is to use the Character.isDigit() method to check if each character that the user entered is in fact a digit. This would require that you parse...
Forum: Computer Programming 02-29-2008, 06:41 PM
Replies: 1
Views: 718
Posted By icm9768
Two things I notice off the top of my head when I...

Two things I notice off the top of my head when I looked at your code.

1) You're base case is missing a 'return' statement. This is what's giving you a stack overflow. You app will continue to...
Forum: Java and JSP 02-28-2008, 03:52 AM
Replies: 1
Views: 1,136
Posted By icm9768
Yes you can change it with the setContentPane()...

Yes you can change it with the setContentPane() method. Initially you would call the setContentPane method with you login panel and if the user want's to register then you call the same...
Forum: Java and JSP 01-28-2008, 05:22 AM
Replies: 1
Views: 1,351
Posted By icm9768
"\u0000" is a null terminator character. If you...

"\u0000" is a null terminator character. If you take the string "\u0000蚞ȊŽ" instead of "蚞ȊŽ" and convert that back to a BigInteger then you will see that you've recreated your original number....
Forum: Java and JSP 01-23-2008, 10:35 PM
Replies: 3
Views: 5,665
Posted By icm9768
If the filename doesn't use an absolute path, it...

If the filename doesn't use an absolute path, it will look in the directory from which the application was launched. I believe this is stored in the system property "user.dir" but I could be wrong.
...
Forum: Java and JSP 01-23-2008, 04:45 AM
Replies: 3
Views: 5,665
Posted By icm9768
Answers to your questions: 1) Every...

Answers to your questions:

1) Every application is inherently single threaded. Every time an application is kicked off it is running in it's own thread so the static call to Thread.currentThread()...
Forum: Java and JSP 01-22-2008, 05:23 AM
Replies: 1
Views: 8,015
Posted By icm9768
Look into using the Process class to execute a...

Look into using the Process class to execute a command you might use on the command line (DATE in your case). Small tutorial that you can use to get you started is at:...
Forum: Java and JSP 01-22-2008, 05:10 AM
Replies: 1
Views: 1,134
Posted By icm9768
Not sure why it's doing that, but there's a...

Not sure why it's doing that, but there's a pretty easy fix. Just create a JPanel with a grid layout of 3 x 3 and add the buttons to that. Then after the loop, add that panel to the frame and your...
Forum: Java and JSP 10-05-2007, 12:53 AM
Replies: 0
Views: 2,017
Posted By icm9768
JOGL vs. Java2D

Does anyone have any statistics or experience with performance gains between Java2D and JOGL? I havn't been able to find any definitive kinds of figures that show if one is better than the other.
...
Forum: Java and JSP 06-01-2007, 04:27 PM
Replies: 0
Views: 1,042
Posted By icm9768
Slow copyArea Operation

I have a JPanel that scrolls an image across the screen in any given direction, as new data is collected. When new data comes in, I use copy area to move the existing image to the right, left, up, or...
Forum: Computer Programming 02-14-2007, 04:49 PM
Replies: 6
Views: 1,198
Posted By icm9768
I can't help you with the serial communication...

I can't help you with the serial communication aspect like why your transmitted data isn't always what you expect but to create a delay I'd use the Thread.sleep( int millis ) method rather than the...
Forum: Computer Programming 02-13-2007, 05:59 PM
Replies: 6
Views: 1,198
Posted By icm9768
Based on what objects you're putting into your...

Based on what objects you're putting into your ComboBox (i.e. "30" and "50") you're still accessing too many indices in your WriteParamToPic method.

Your parameter will be either "c30" or "c50",...
Forum: Java and JSP 02-24-2006, 03:05 PM
Replies: 0
Views: 1,156
Posted By icm9768
Java Paint Problems

Im having some painting problems involving a BufferedImage. Every once in a while, only part of the image will show up as if the entire image wasn't drawn. I need to eliminate this flickering effect....
Showing results 1 to 25 of 32

 
Forum Jump

All times are GMT +1. The time now is 08:16 PM.