Click here to Skip to main content
15,921,169 members
Home / Discussions / Java
   

Java

 
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 
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
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 
AnswerRe: Java Socket in Ad Hoc Pin
TorstenH.26-Apr-12 21:01
TorstenH.26-Apr-12 21:01 
GeneralRe: Java Socket in Ad Hoc Pin
Susy Nainggolan26-Apr-12 21:23
Susy Nainggolan26-Apr-12 21:23 
GeneralRe: Java Socket in Ad Hoc Pin
TorstenH.26-Apr-12 21:53
TorstenH.26-Apr-12 21:53 
GeneralRe: Java Socket in Ad Hoc Pin
Susy Nainggolan26-Apr-12 22:29
Susy Nainggolan26-Apr-12 22:29 
GeneralRe: Java Socket in Ad Hoc Pin
Susy Nainggolan26-Apr-12 23:25
Susy Nainggolan26-Apr-12 23:25 
AnswerRe: Java Socket in Ad Hoc Pin
Richard MacCutchan26-Apr-12 22:26
mveRichard MacCutchan26-Apr-12 22:26 
GeneralRe: Java Socket in Ad Hoc Pin
Susy Nainggolan26-Apr-12 23:02
Susy Nainggolan26-Apr-12 23:02 
GeneralRe: Java Socket in Ad Hoc Pin
Richard MacCutchan26-Apr-12 23:08
mveRichard MacCutchan26-Apr-12 23:08 
GeneralRe: Java Socket in Ad Hoc Pin
Susy Nainggolan26-Apr-12 23:12
Susy Nainggolan26-Apr-12 23:12 
GeneralRe: Java Socket in Ad Hoc Pin
Nagy Vilmos27-Apr-12 0:20
professionalNagy Vilmos27-Apr-12 0:20 
GeneralRe: Java Socket in Ad Hoc Pin
Susy Nainggolan27-Apr-12 2:56
Susy Nainggolan27-Apr-12 2:56 

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.