Al_11
Junior Member
Offline
Posts: 75
Re: G4P arteffact or other approach???
Reply #7 - Nov 11th , 2009, 4:35pm
Code: import guicomponents.*; GTextField txf1, txf2, txf3, txf4, txf5, txf6, txf7, txf8, txf9, txf10, txf11; GButton btnCopy12, btnCopy21; GLabel dined1,dinea1, dinel2, Line13, Line14, Line15, Line16, Line17, Line18, Line19, l0blLine1, Line110, Line111, Linea1; GPanel p; GOption namess, percentss; GOptionGroup opgPlacetext; GCheckbox shown, showp; void setup() { size(1300,850); GComponent.globalColor = GCScheme.getColor(this, GCScheme.BLUE_SCHEME); GComponent.globalFont = GFont.getFont(this, "PalatinoLinotype", 12); pushStyle(); txf1 = new GTextField(this, "", 100,30,50,0); txf2 = new GTextField(this, "", 100,60,50,0); txf3 = new GTextField(this, "", 100,90,50,0); txf4 = new GTextField(this, "", 100,120,50,0); txf5 = new GTextField(this, "", 100,150,50,0); txf6 = new GTextField(this, "", 100,180,50,0); txf7 = new GTextField(this, "", 100,210,50,0); txf8 = new GTextField(this, "", 100,240,50,0); txf9 = new GTextField(this, "", 100,270,50,0); txf10 = new GTextField(this, "", 100,300,50,0); txf11 = new GTextField(this, "", 100,330,50,0); popStyle(); dinea1 = new GLabel(this, "1", 15, 30, 100, 0); dined1 = new GLabel(this, "2", 15, 60, 100, 0); dinel2 = new GLabel(this, "Parts quantity", 15, 30+60, 100, 0); Line13 = new GLabel(this, "Parts quantity", 15, 60+60, 100, 0); Line14 = new GLabel(this, "Parts quantity", 15, 90+60, 100, 0); Line15 = new GLabel(this, "Parts quantity", 15, 120+60, 100, 0); Line16 = new GLabel(this, "Parts quantity", 15, 150+60, 100, 0); Line17 = new GLabel(this, "Parts quantity", 15, 180+60, 100, 0); opgPlacetext = new GOptionGroup(); namess = new GOption(this, "Names", 85, 390,60); opgPlacetext.addOption(namess); percentss = new GOption(this, "Percent", 190, 390,60); opgPlacetext.addOption( percentss); shown = new GCheckbox(this,"Show names",85,420,50); showp = new GCheckbox(this,"Show percent",190,420,50); shown.setSelected(true); showp.setSelected(true); p = new GPanel(this, "Toroid Control Panel", 5, 20, 390, 600); p.setAlpha(192); p.add(txf1); p.add(txf2); p.add(txf3); p.add(txf4); p.add(txf5); p.add(txf6); p.add(txf7); p.add(txf8); p.add(txf9); p.add(txf10); p.add(txf11); p.add(btnCopy12); p.add(btnCopy21); p.add(Line13); p.add(Line14); p.add(Line15); p.add(Line16); p.add(Line17); p.add(Line18); p.add(Line19); p.add(Line110); p.add(Line111); p.add(namess); p.add(percentss); p.add(showp); p.add(shown); } void draw() { background(235,235,235); }