|
Figured it out... <.>
I wasn't instantiating a new temp each pass. So the last element is stored for every key. Easy fix, just re-instantiate the variable before setting a value and calling put()
|
|
|
|
|
snap! You got it while I was typing (and taking a phone call....)
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
Np, thanks for trying. ^^
|
|
|
|
|
I can't see the rest of your code, but it smells like you are reusing the same temp , effectively overwriting the same item on every put() .
Peter
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
Yup, had just posted that. XD Thank you though ^^
|
|
|
|
|
When I was compiling one of my java program i got the error to recompile with -Xlint ? I m unknown to this can anybody help and xplain that what is -Xlint?
|
|
|
|
|
|
Have project that requires fix protocol over tcp and encryption, need userinterface gui made as well. skype me at: silverbuyer or email me canadametalsauction@gmail.com
|
|
|
|
|
ByteBuffer pixel = ByteBuffer.allocateDirect(1);
byte transparentByte = 0;
gl.glBindTexture(GL10.GL_TEXTURE_2D, _id);
pixel.position(0);
gl.glTexSubImage2D(GL10.GL_TEXTURE_2D, 0, x, y, 1, 1, GL10.GL_ALPHA, GL10.GL_UNSIGNED_BYTE, pixel); pixel.position(0);
if(pixel.get() != transparentByte)
{
}
This never hits... It'll cycle through every pixel in the texture and never hit on a non-transparent pixel. What am I doing wrong?
EDIT: It looks like whether or not I use GL_ALPHA or GL_RGBA, pixel.get() returns 0 for every pixel... it's not grabbing it from the texture or I'm not using ByteBuffer correctly... hmm...
modified 1-May-12 22:11pm.
|
|
|
|
|
Well... I fixed my problem by just not using OpenGL so the question still stands for anyone who comes across this thread.
modified 2-May-12 13:42pm.
|
|
|
|
|
I have a list of objects, and I need to output them in a JTable. In order to do this, I am trying with a while loop.
Without the while loop, rows are inserted. On the other hand, using the while loop, the applications goes inside the loop but it does not effect the JTable output.
Code used
DefaultTableModel starModel = new DefaultTableMode();
int starCounter = 0;
while (starCounter < list.size()){
starModel.addRow(new Object[]{"test"})
}
jtableVariable = new JTable(starModel);
Pawlu89
|
|
|
|
|
i) you never increment the counter, so this is an infinite loop
ii) ... unless the list has zero items in which case you won't get any rows.
|
|
|
|
|
Thanks....on the other hand I solved the problem by doing an action listener on another object. Thanks anyways, thought something was missing.
|
|
|
|
|
i am developing an application on network monitoring tool and i have almost completed 70% of my project ... now i want to show the routing information in my GUI design ...
my motive is to display routing table information in my GUI design... i m using netbeans 7.1 IDE and windows 7 (OS).
(u can see images/photo) of routing table from google)
even we are using netscan.exe software to see all this thing .. so how to display it in java .... plz help..
|
|
|
|
|
debasish deb wrote: so how to display it in java
Display what? You need to decide what you wish to display and then use the Java drawing classes to create whatever it is your project is doing. Take a look at the sections on graphics in the Java Tutorials[^].
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
debasish deb wrote: plz help..
1. Research router management protocols. Be assured that every different vendor will have their own different way of doing this.
2. Write code based on 1 to retrieve the information.
3. Create a GUI that can display the information.
3. Put 2 and 3 together.
Note that 1 has nothing to do with Java.
|
|
|
|
|
How to enable the node (laptop device) where
node A connect to node B and node B can connect to node C then A enable connect to C..
thank u before..
|
|
|
|
|
WHAT do you want to do? Connect Laptops serial over LAN?
|
|
|
|
|
no sir,
I meant via wireless sir..
sorry if I make u be confuse..
|
|
|
|
|
Thinking of this must every machine have 2 WLAN-Devices - one for the left side connection and one to pass over the signal to the right side...
You are thinking about some kind of switch or range extender. But that's not a computer.
|
|
|
|
|
so, how to make an ad-hoc network not only peer to peer sir..
thanx before..
|
|
|
|
|
anyone else can help me please?..
|
|
|
|
|
There is nothing to enable, you just make a socket connection by IP address from A to B etc.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
we have already tried it Sir,
But, the problem is the message can not send hop by hop. And our purpose is to enable sending message and file with aodv routing algorithm and udp protocol in mobile(laptop device) ad hoc network (not peer).
thanx before Sir.
|
|
|
|
|
Sorry, I don't know the answer, nor do I know what this has to do with Java.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|