Petar Kanchev

Greenhorn
+ Follow
since Apr 14, 2008
Merit badge: grant badges
For More
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Petar Kanchev

Hi again, I tried that but I must missing something because it did't work again. Here is my fragment of code:

...
public Interface() throws IOException {
initComponents();
getContentPane().add(new JScrollPane(dPanel,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED));
for (int i=0; i<5; i++){
JCheckBox box = new JCheckBox("region"+i);
dPanel.add(box);
dPanel.revalidate();
}
}
...

Can you give me a simple but whole example code so I can see all the picture? Thanks again!
15 years ago
Hi, I'm trying to make such programm like the one above - with dynamically added checkboxes, but my problem is that I don't know how to implement it in jFrame, automaticlally generted as NetBeans project with some other components, visually added from the IDE. My idea was to bound it with something like jPanel but no success (checkboxes never shows). Please, help!
15 years ago