# Search:

Type: Posts; User: gerre

## Search: Search took 0.18 seconds.

by gerre
Replies
1
Views
512

### Advice how to sort data from database

I want to create a class, where I want to take a number of rows out of the database, which among others include what day that assignment should be done.

I then want to sort the data after what day...
2. ## Thread: Beginner for loop

by gerre
Replies
11
Views
708

### Re: Beginner for loop

In other words the check should be the same as this one at the top, where I individually check for every day:

if (opgCheck == true) {
if (dag.equals("Monday") || dag.equals("Tuesday") ||...
3. ## Thread: Beginner for loop

by gerre
Replies
11
Views
708

### Re: Beginner for loop

The code should probably look like this:

String day = "";
for (int i=0; i< days.length; i++) {
day += days[i];
if (!dag.equals(day)) {...
4. ## Thread: Beginner for loop

by gerre
Replies
11
Views
708

### Re: Beginner for loop

Well, the end product should be to add data to a database. This particular part of the class is supposed to check whether the entered input is a valid day. In other words the program should go: Is it...
5. ## Thread: Beginner for loop

by gerre
Replies
11
Views
708

### Re: Beginner for loop

Yeah I can also print it. But the if statement somehow doesn't wanna work. Pitty since I now need to test for the days individually so it says Monday OR Tuesday etc. It just doesn't look good that...
6. ## Thread: Beginner for loop

by gerre
Replies
11
Views
708

### Re: Beginner for loop

I can see where you are going, and it solved a problem I probably would have run into at some point (Removed the =). But it does not solve the problem itself. I tried to change a bit in that line 32,...
7. ## Thread: Beginner for loop

by gerre
Replies
11
Views
708

### Re: Beginner for loop

Line 32 is:

day.equals(day + days[i]);
8. ## Thread: Beginner for loop

by gerre
Replies
11
Views
708

### Beginner for loop

Hi guys

I'm having a bit problem with my for-loop, and would just want to hear if i'm way of, or if there is something small i'm missing.

String[] days = {"Monday", "Tuesday", "Wednesday",...
9. ## Thread: New frame should only show GUI once!

by gerre
Replies
6
Views
472

### Re: New frame should only show GUI once!

Well it turned out that it's not the problem. But you put me on the track so still thanks. The problem is there are components in the different classes that have been called the same name and have...
10. ## Thread: New frame should only show GUI once!

by gerre
Replies
6
Views
472

### Re: New frame should only show GUI once!

I guess that's logic. But what is the correct way to use listeners then? I kinda need a listener to every button. The way I use it in this program is shown in the last line in the second class. And...
11. ## Thread: New frame should only show GUI once!

by gerre
Replies
6
Views
472

### New frame should only show GUI once!

Hi guys
First, the code works as it was supposed to, but I have a little problem with it still. I am opening a new frame from an actionListener with gui contents. The first time I open the new...
Results 1 to 11 of 11