Click here to Skip to main content
15,914,225 members
Home / Discussions / Java
   

Java

 
AnswerRe: Method in Java Pin
Richard MacCutchan7-May-12 22:00
mveRichard MacCutchan7-May-12 22:00 
QuestionHow to remove Duplicates in ArrayList Pin
B.Bryce7-May-12 4:02
B.Bryce7-May-12 4:02 
AnswerRe: How to remove Duplicates in ArrayList Pin
ekolis7-May-12 5:31
ekolis7-May-12 5:31 
GeneralRe: How to remove Duplicates in ArrayList Pin
BobJanova8-May-12 3:09
BobJanova8-May-12 3:09 
AnswerRe: How to remove Duplicates in ArrayList Pin
koropatva7-May-12 20:28
koropatva7-May-12 20:28 
QuestionEducational Imap client Pin
Pinifiux6-May-12 23:17
Pinifiux6-May-12 23:17 
AnswerRe: Educational Imap client Pin
TorstenH.7-May-12 1:07
TorstenH.7-May-12 1:07 
QuestionHashMap... am I doing it wrong? Pin
Stephen Dycus2-May-12 12:17
professionalStephen Dycus2-May-12 12:17 
I'm rolling my own text system, or trying to anyways...

I cycle through the bitmap to determine the texture coordinates of every character. Then add them to the map via their associated char. Later I cycle through a string to pull the texture coords and add them to the buffer... the coords are correct going in but not pulling out.

Java
private HashMap<Character, float[]> glyphs = new HashMap<Character, float[]>();
//cycle bla bla
glyphs.put(c[i], temp);


/// later
float temp[] = glyphs.get(a);


The array returned is the same one for every char sent to the retrieval function. I must be doing this wrong... any help?

EDIT: The coord to be retrieved is the coord of the last thing put into the map.

modified 2-May-12 18:27pm.

AnswerRe: HashMap... am I doing it wrong? Pin
Stephen Dycus2-May-12 12:55
professionalStephen Dycus2-May-12 12:55 
GeneralRe: HashMap... am I doing it wrong? Pin
Peter_in_27802-May-12 13:06
professionalPeter_in_27802-May-12 13:06 
GeneralRe: HashMap... am I doing it wrong? Pin
Stephen Dycus2-May-12 13:07
professionalStephen Dycus2-May-12 13:07 
AnswerRe: HashMap... am I doing it wrong? Pin
Peter_in_27802-May-12 13:05
professionalPeter_in_27802-May-12 13:05 
GeneralRe: HashMap... am I doing it wrong? Pin
Stephen Dycus2-May-12 13:06
professionalStephen Dycus2-May-12 13:06 
Question-Xlint Pin
jigar - shah 22-May-12 7:06
jigar - shah 22-May-12 7:06 
AnswerRe: -Xlint Pin
Stephen Dycus2-May-12 7:45
professionalStephen Dycus2-May-12 7:45 
Questionproject for you Pin
silverbuyer1-May-12 18:39
silverbuyer1-May-12 18:39 
QuestionJava + OpenGL ES: Test for Transparency? Pin
Stephen Dycus1-May-12 15:38
professionalStephen Dycus1-May-12 15:38 
GeneralRe: Java + OpenGL ES: Test for Transparency? Pin
Stephen Dycus2-May-12 6:45
professionalStephen Dycus2-May-12 6:45 
QuestionJTables Implementation Pin
pawlu8929-Apr-12 1:53
pawlu8929-Apr-12 1:53 
AnswerRe: JTables Implementation Pin
BobJanova30-Apr-12 0:17
BobJanova30-Apr-12 0:17 
GeneralRe: JTables Implementation Pin
pawlu8930-Apr-12 22:37
pawlu8930-Apr-12 22:37 
QuestionRouting information Pin
debasish deb28-Apr-12 16:53
professionaldebasish deb28-Apr-12 16:53 
AnswerRe: Routing information Pin
Richard MacCutchan28-Apr-12 21:31
mveRichard MacCutchan28-Apr-12 21:31 
AnswerRe: Routing information Pin
jschell29-Apr-12 6:44
jschell29-Apr-12 6:44 
QuestionJava Socket in Ad Hoc Pin
Susy Nainggolan26-Apr-12 18:13
Susy Nainggolan26-Apr-12 18:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.