Click here to Skip to main content
15,888,102 members
Home / Discussions / Java
   

Java

 
GeneralRe: 3 x 3 plane,clockwise or counterclockwise rotate the four tiles Pin
zarkerBlack20-Jun-16 3:09
zarkerBlack20-Jun-16 3:09 
GeneralRe: 3 x 3 plane,clockwise or counterclockwise rotate the four tiles Pin
Richard MacCutchan20-Jun-16 4:00
mveRichard MacCutchan20-Jun-16 4:00 
GeneralRe: 3 x 3 plane,clockwise or counterclockwise rotate the four tiles Pin
zarkerBlack21-Jun-16 3:17
zarkerBlack21-Jun-16 3:17 
GeneralRe: 3 x 3 plane,clockwise or counterclockwise rotate the four tiles Pin
Richard MacCutchan21-Jun-16 3:25
mveRichard MacCutchan21-Jun-16 3:25 
QuestionSerializing object to disc. Only retreives one object. Pin
larsp77714-Jun-16 1:42
larsp77714-Jun-16 1:42 
AnswerRe: Serializing object to disc. Only retreives one object. Pin
Richard MacCutchan14-Jun-16 3:47
mveRichard MacCutchan14-Jun-16 3:47 
GeneralRe: Serializing object to disc. Only retreives one object. Pin
larsp77714-Jun-16 22:22
larsp77714-Jun-16 22:22 
GeneralRe: Serializing object to disc. Only retreives one object. Pin
Richard MacCutchan14-Jun-16 22:47
mveRichard MacCutchan14-Jun-16 22:47 
That is different from your original question. The code that works is the code I copied from your question, and the only changes I made are:
Java
ArrayList<Book> bList = (ArrayList<Book>) oistr.readObject();
oistr.close();
for (Book bb : bList) {
    bb.skrivUt();
    // ta1.append("Titel " + b.getTitle() + "\n");
    // ta1.append("Författare: " + b.getAuthor() + "\n");
    // ta1.append("Pris: " + Integer.toString(b.getPrice()) + "\n");
    // ta1.append("\n");
    }//foreach

which worked, and listed all the items I added to the original list.

You are now asking something concerned with pressing buttons, which you have not shown in your code.
GeneralRe: Serializing object to disc. Only retreives one object. Pin
larsp77714-Jun-16 23:28
larsp77714-Jun-16 23:28 
GeneralRe: Serializing object to disc. Only retreives one object. Pin
Richard MacCutchan14-Jun-16 23:39
mveRichard MacCutchan14-Jun-16 23:39 
GeneralRe: Serializing object to disc. Only retreives one object. Pin
larsp77714-Jun-16 23:52
larsp77714-Jun-16 23:52 
GeneralRe: Serializing object to disc. Only retreives one object. Pin
Richard MacCutchan15-Jun-16 0:43
mveRichard MacCutchan15-Jun-16 0:43 
GeneralRe: Serializing object to disc. Only retreives one object. Pin
larsp77716-Jun-16 21:28
larsp77716-Jun-16 21:28 
GeneralRe: Serializing object to disc. Only retreives one object. Pin
Richard MacCutchan16-Jun-16 22:16
mveRichard MacCutchan16-Jun-16 22:16 
GeneralRe: Serializing object to disc. Only retreives one object. Pin
larsp77716-Jun-16 22:43
larsp77716-Jun-16 22:43 
GeneralRe: Serializing object to disc. Only retreives one object. Pin
Richard MacCutchan17-Jun-16 2:56
mveRichard MacCutchan17-Jun-16 2:56 
GeneralRe: Serializing object to disc. Only retreives one object. Pin
larsp77717-Jun-16 12:48
larsp77717-Jun-16 12:48 
GeneralRe: Serializing object to disc. Only retreives one object. Pin
Member 1211167124-Jun-16 20:57
Member 1211167124-Jun-16 20:57 
GeneralRe: Serializing object to disc. Only retreives one object. Pin
Richard MacCutchan24-Jun-16 21:02
mveRichard MacCutchan24-Jun-16 21:02 
Questionapplication architecture Pin
AppNewbie6-Jun-16 5:35
AppNewbie6-Jun-16 5:35 
AnswerRe: application architecture Pin
Richard MacCutchan6-Jun-16 6:39
mveRichard MacCutchan6-Jun-16 6:39 
Questionhow do i get IP address of the email sender's PC Pin
Member 125677045-Jun-16 23:43
Member 125677045-Jun-16 23:43 
AnswerRe: how do i get IP address of the email sender's PC Pin
Richard MacCutchan6-Jun-16 0:43
mveRichard MacCutchan6-Jun-16 0:43 
AnswerRe: how do i get IP address of the email sender's PC Pin
Richard Deeming6-Jun-16 4:54
mveRichard Deeming6-Jun-16 4:54 
QuestionWeb Questions Pin
tzungshian3-Jun-16 23:23
tzungshian3-Jun-16 23:23 

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.