Normand Briere
2019-04-29 8c837a9e50c29e66bdf5bd7ea2fd15b1a7d5d598
ObjEditor.java
....@@ -978,10 +978,10 @@
978978 fasterButton = AddButton(oe, "Fast");
979979 remarkButton = AddButton(oe, "Rem");
980980
981
- Return();
981
+ //Return();
982982
983
- normalpushField = AddSlider(oe.ctrlPanel, "Push", -10, 10, 0, -1);
984
- Return();
983
+ //normalpushField = AddSlider(oe.ctrlPanel, "Push", -10, 10, 0, -1);
984
+ //Return();
985985
986986 // oe.ctrlPanel.add(stepButton = new cButton("Step"), ObjEditor.aConstraints, oe.ctrlPanel.getComponentCount() - 2);
987987 // ObjEditor.aConstraints.gridx += 1;
....@@ -1445,17 +1445,13 @@
14451445 //aConstraints.gridx += 1;
14461446 //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
14471447
1448
- JPanel colorPanel = new JPanel(new BorderLayout());
1449
- colorPanel.setBorder(BorderFactory.createLineBorder(Color.black));
1450
-
14511448 cGridBag colorSection = new cGridBag().setVertical(true);
1452
-
1453
- colorPanel.add(colorSection);
14541449
14551450 cGridBag color = new cGridBag();
14561451 color.add(colorLabel = new JLabel("Color/hue")); // , aConstraints);
14571452 colorLabel.setHorizontalAlignment(SwingConstants.TRAILING);
14581453 color.add(colorField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
1454
+ //colorField.preferredWidth = 200;
14591455 colorSection.add(color);
14601456
14611457 cGridBag modulation = new cGridBag();
....@@ -1488,16 +1484,13 @@
14881484 shadowbias.add(shadowbiasField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
14891485 colorSection.add(shadowbias);
14901486
1491
- ctrlPanel.add(colorPanel);
1487
+ ctrlPanel.add(new JSeparator());
1488
+
1489
+ ctrlPanel.add(colorSection);
14921490
14931491 //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
14941492
1495
- JPanel diffusePanel = new JPanel(new BorderLayout());
1496
- diffusePanel.setBorder(BorderFactory.createLineBorder(Color.black));
1497
-
14981493 cGridBag diffuseSection = new cGridBag().setVertical(true);
1499
-
1500
- diffusePanel.add(diffuseSection);
15011494
15021495 cGridBag diffuse = new cGridBag();
15031496 diffuse.add(diffuseLabel = new JLabel("Diffuse")); // , aConstraints);
....@@ -1541,16 +1534,13 @@
15411534 fakedepth.add(fakedepthField = new cNumberSlider(this, 0.001, 50, -1)); // , aConstraints);
15421535 diffuseSection.add(fakedepth);
15431536
1544
- ctrlPanel.add(diffusePanel);
1537
+ ctrlPanel.add(new JSeparator());
1538
+
1539
+ ctrlPanel.add(diffuseSection);
15451540
15461541 //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
15471542
1548
- JPanel specularPanel = new JPanel(new BorderLayout());
1549
- specularPanel.setBorder(BorderFactory.createLineBorder(Color.black));
1550
-
15511543 cGridBag specularSection = new cGridBag().setVertical(true);
1552
-
1553
- specularPanel.add(specularSection);
15541544
15551545 cGridBag specular = new cGridBag();
15561546 specular.add(specularLabel = new JLabel("Specular")); // , aConstraints);
....@@ -1595,16 +1585,13 @@
15951585 // aConstraints.gridwidth = 1;
15961586
15971587
1598
- ctrlPanel.add(specularPanel);
1588
+ ctrlPanel.add(new JSeparator());
1589
+
1590
+ ctrlPanel.add(specularSection);
15991591
16001592 //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
16011593
1602
- JPanel globalPanel = new JPanel(new BorderLayout());
1603
- globalPanel.setBorder(BorderFactory.createLineBorder(Color.black));
1604
-
16051594 cGridBag globalSection = new cGridBag().setVertical(true);
1606
-
1607
- globalPanel.add(globalSection);
16081595
16091596 cGridBag camera = new cGridBag();
16101597 camera.add(cameraLabel = new JLabel("GlobalLight")); // , aConstraints);
....@@ -1630,16 +1617,13 @@
16301617 opacity.add(opacityField = new cNumberSlider(this, 0.001, 1, -0.5)); // , aConstraints);
16311618 globalSection.add(opacity);
16321619
1633
- ctrlPanel.add(globalPanel);
1620
+ ctrlPanel.add(new JSeparator());
1621
+
1622
+ ctrlPanel.add(globalSection);
16341623
16351624 //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
16361625
1637
- JPanel texturePanel = new JPanel(new BorderLayout());
1638
- texturePanel.setBorder(BorderFactory.createLineBorder(Color.black));
1639
-
16401626 cGridBag textureSection = new cGridBag().setVertical(true);
1641
-
1642
- texturePanel.add(textureSection);
16431627
16441628 cGridBag bump = new cGridBag();
16451629 bump.add(bumpLabel = new JLabel("Bump")); // , aConstraints);
....@@ -1677,7 +1661,9 @@
16771661 opacityPower.add(opacityPowerField = new cNumberSlider(this, 0.0, 10 /*10 dec 2013*/)); // , aConstraints);
16781662 textureSection.add(opacityPower);
16791663
1680
- ctrlPanel.add(texturePanel);
1664
+ ctrlPanel.add(new JSeparator());
1665
+
1666
+ ctrlPanel.add(textureSection);
16811667
16821668 //ctrlPanel.add(new JLabel("----------------------------------")); // , aConstraints);
16831669