Win a copy of Head First Android this week in the Android forum!

W Lis

Greenhorn
+ Follow
since Nov 20, 2016
W likes ...
Netbeans IDE Chrome Java
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by W Lis

I meant this of course as first IF:
5 years ago
Im coding simple text editor. Im stuck in determining whether to save JTextAreas() upon exitting. I have nice JOptionPane.showConfirmDialog() which shows window where I ask for users choice. Now this is my code



I need to negate first IF condition so it looks more like
How to achieve this?
5 years ago

Knute Snortum wrote:I think you need "j" instead of "i".


Thats it, but its only part of solution.
I modified it so now it looks like this:

for (int i = 1; i <= 10; i++) {
           tabsForm.add("Tab "+i, new Label("Tab "+i));  
       }


I had to get rid of initializer. Now it works flawlesly. Thanks.
5 years ago
Im trying to add tabs to JTabbedPane with for loop. It works but I have naming question - how to assign new i value to each tab?


This works well:


This isn't:


Whats wrong here?

5 years ago
Im developing MVC app written in SpringFW and my scenario is as follows:

USER (in this case card holder) sues someone. Form is in JSP file. Together with JSP code we need to show user validation status (if has permission to sue based on whats returned from DB)

DB handler in PHP) rest in JSP.
5 years ago