Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / September 2003

Tip: Looking for answers? Try searching our database.

column of checkboxs from an array

Thread view: 
simon - 08 Sep 2003 17:22 GMT
Hi,

how do I create a list of checkboxes from an array?

thanks

Simon
Christian Kaufhold - 08 Sep 2003 23:24 GMT
Hello!

> how do I create a list of checkboxes from an array?

Please be more specific.

Christian
olivier.roland - 09 Sep 2003 18:02 GMT
Hi,

I don't understand the display of this basic jface sample.
What is this space to the left of "Button 1" ?
I'm sure the answer is simple and I propably missed something but what ?

Thanks,

Olivier.

If you know a better newsgroup for specific SWT/jface questions, let me
know.

import org.eclipse.jface.window.ApplicationWindow;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.RowLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;

public class Test extends ApplicationWindow {
    public Test() {
        super(null);
    }
    public static void main(String[] args) {
        Test application = new Test();
        application.setBlockOnOpen(true);
        application.open();
    }
    protected Control createContents(Composite parent) {
        Shell shell = this.getShell();
        RowLayout layout = new RowLayout();
        layout.wrap = true;
        shell.setLayout(layout);
        new Button(shell, SWT.PUSH).setText("Button 1");
        new Button(shell, SWT.PUSH).setText("Button 2");
        new Button(shell, SWT.PUSH).setText("Button 3");
        return shell;
    }
}
Olivier Roland - 09 Sep 2003 23:16 GMT
Sorry for my previous message.
Nothing to do with this thread.

Regards,

Olivier.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.