|
|
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
|
|
|
|
|
never mind Sir,
But, thanx for your help..
|
|
|
|
|
Why not?
Let as say A connects to be B and B to C
A sends a message "C do X" to B.
B gets the message and forwards it C.
This is how a peer-to-peer network works. If you receive a message for someone else you forward it to the next person.
You may need to set up some tables so that when A needs to send a message, he knows which of his connections to send it via.
Good luck.
Panic, Chaos, Destruction. My work here is done.
Drink. Get drunk. Fall over - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer
Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett
|
|
|
|
|
every node (mobile->laptop device) act as a router and node C also can do that connection.
So, the topology of network not like peer to peer. It means that not only one router and another as a client, but, every node is a router.
|
|
|
|
|
Nobody can help me?..
Please....
|
|
|
|
|
Susy Nainggolan wrote: Nobody can help me?..
With what? As I said earlier I can see nothing here about Java.
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
Your question is not clear.
You have 3 computers: A, B and C.
A uses a socket to connect to B. Then A sends a message.
At that point A is done. It no longer controls in any way shape or form what happens on B.
So if you want to send a message from A to C via B then you MUST do the following.
1. Create a client App that runs on A. Call this AppM.
2. Create a server App that runs on B. It accepts messages from ANY client (anyone that connects to it) and then it sends those to C. Call this AppS.
3. Create a service App on C that accepts messages from ANY client. Call this AppZ.
So the message flow is then AppM -> AppS -> AppZ.
The above is basically how routers work with some differences. However each router still has an App on it.
|
|
|
|