Moving a rectangle or change color in "Run-Time "?
First step, the objects of decoration you can modify its properties in "Run-Time "?
Moving a rectangle or change color in "Run-Time "?
I want to develop a mini SCADA application, where I have to do some animations usingsimple objects like Shapes.
Yes, it is possible to modify decorations in runtime. An example is below.
As you can see, you just need to get a reference to the front panel containing the decoraitions, and then use the Decos[] property to get an array of references to the decorations. These can be passed to a property node.
Unfortunately, the decorations cannot be given a unique identifier, such as a label. So if you have multiple decorations, it can be tricky to modify the properties of a specific one. If you are only dealing with one shape, this won't be an issue. One roundabout way to pick out a particular decoration would be to search through the array references until you find the one with matching size and location on the front panel. Alternatively, you could use a disabled control, such as a boolean push button with no caption, and refer to that directly.
Hope this helps.
-Garrett
Similar Messages
-
How to change options in Run time menu while labView was running
Hello Good Afternoon,
I m Using LabView 8.5.How to change the options in Run time menu for any control while Labview was running
Thanks
Jai
Jayavel
Solved!
Go to Solution.Hi Jai,
Try the below attached VI and let me know if u still need some explanation.
Rgds,
Venky
Attachments:
Run Time Menu.zip 6 KB -
Issues with changing connection at run-time
Post Author: dmazourick
CA Forum: Data Connectivity and SQL
Weu2019ve tried a lot of different ways to resolve this issue, but are getting every time the different result.
Probably someone deal with that issue before and know how to correctly resolve it.
Weu2019re using Crystal Reports Runtime Components X+ (X, XI, XI R2) u2013 all of them has this issue.
We need client application to connect to multiple data sources u2013 user chooses report, chooses data source and we show the report for specified data source.
The data sources are tables or stored procedures stored in different databases on different servers.
For sure, every data source for a single report has the same structure, but that doesnu2019t matter.
The issue is: when the name of the database on one server is the same as the name of database on second server, the connection caching occurs.
How we can check that:
1. Weu2019re running report for Server1:<DBN> - report shows data from Server1.
2. Weu2019re opening second report for Server2:<DBN> - report shows data from Server1.
3. Weu2019re closing application and run 1-2 in opposite order, now both reports show data from Server2.
Weu2019ve tried different approaches u2013 below is a code sample that opens the report for specific connection.
Juts to be sure that no one will ask u2013 u201CAre you sure youu2019re passing the correct connection info etc.u201D. Yes! We are sure because weu2019re trying to fix this issue for a long time and tried a lot of different approaches and still cannot find the right solution.
The code looks like below. This is VB6 code, but also the same situation was tried on VC++ 6.0
Weu2019re not looking into CR.NET solution for now.
=================================================
Sub DisplayReport(Server as String, DB as String, UID as String, PWD as String, viewer as Object)
Dim app As New CRAXDRT.Application
Dim report As CRAXDRT.report
Dim database As CRAXDRT.database
Dim table As CRAXDRT.DatabaseTable
Dim par As CRAXDRT.ParameterFieldDefinition
Set report = app.OpenReport("D:\TestReport_X.rpt")
report.database.LogOnServer "pdssql.dll", Server, DB, UID, PWD
Set table = report.database.Tables(1)
table.SetLogOnInfo Server, DB, UID, PWD
table.Location = table.Name
report.database.Verify
viewer.ReportSource = report
viewer.ViewReport
end sub
=================================================
The result of above code is the following:
1. If we will pass the same viewer and will use different Server u2013 the report will be displayed correctly
2. If we will pass different viewers and will use different Server u2013 the reports will contain same data
The result of above code also depends from the version of Crystal Reports the report was designed in:
1. For Report designed in 8.5 u2013 passing of the same viewer with same connection info second time will refresh report
2. For Report designed in X, XI, XI R2 u2013 no refresh
Also, a slight modification of the above code helps for reports designed in XI to work properly, but not for reports designed in X and 8.5:
1. Before calling LogonServer, make the following: DB = DB & u201C;u201D & Int(rnd()*32767)
That makes report designed in XI to display properly in different viewers, but doesnu2019t have any impact to X and no any impact to 8.5
Weu2019re really looking for any help in this questionPost Author: fburch
CA Forum: Data Connectivity and SQL
I am having similar problems and some successes.
I have 70+ reports and now suddenly I want to point them at two different servers, but at databases with the same name like you talked about.
I first just tried the following:
#1. Load report:
Dim myReport As New ReportDocument
myReport.Load(filename)
#2. Pass in parameter values
''Get the collection of parameters from the report
Dim crParameterFieldDefinitions As ParameterFieldDefinitions = r.DataDefinition.ParameterFields
''Access the specified parameter from the collection
Dim crParameter1 As ParameterFieldDefinition = crParameterFieldDefinitions.Item(ParamName)
''Get the current values from the parameter field. At this point
''there are zero values set.
'crParameter1Values = crParameter1.CurrentValues
''Set the current values for the parameter field
Dim crDiscrete1Value As New ParameterDiscreteValue
If crParameter1.ValueType = FieldValueType.DateField Or crParameter1.ValueType = FieldValueType.DateTimeField Then
If ParamValue Is System.DBNull.Value Then
crDiscrete1Value.Value = CDate("1/1/1900")
ElseIf ParamValue Is Nothing Then
crDiscrete1Value.Value = CDate("1/1/1900")
Else
crDiscrete1Value.Value = ParamValue
End If
ElseIf crParameter1.ValueType = FieldValueType.StringField Then
If ParamValue Is Nothing Then
crDiscrete1Value.Value = ""
Else
crDiscrete1Value.Value = ParamValue
End If
ElseIf crParameter1.ValueType = FieldValueType.BooleanField Then
If ParamValue Is Nothing Then
crDiscrete1Value.Value = False
ElseIf ParamValue.ToString.ToUpper = "TRUE" Then
crDiscrete1Value.Value = True
Else
crDiscrete1Value.Value = False
End If
ElseIf crParameter1.ValueType = FieldValueType.NumberField Then
If ParamValue Is Nothing Then
crDiscrete1Value.Value = 0
Else
crDiscrete1Value.Value = ParamValue
End If
Else
If ParamValue Is System.DBNull.Value Then
crDiscrete1Value.Value = Nothing
ElseIf ParamValue Is Nothing Then
crDiscrete1Value.Value = Nothing
Else
crDiscrete1Value.Value = ParamValue
End If
End If
''Add the first current value for the parameter field
Dim crParameter1Values As New ParameterValues
crParameter1Values.Add(crDiscrete1Value)
''All current parameter values must be applied for the parameter field.
crParameter1.ApplyCurrentValues(crParameter1Values)
#3 Set "Table Log in info" (most of my reports using stored procedures, but I guess I still needed this step).
Dim CrTables As Tables = r.Database.Tables
Dim CrTable As Table
Dim crtableLogoninfos As New TableLogOnInfos()
Dim crtableLogoninfo As New TableLogOnInfo()
With crConnectionInfo
.ServerName = connectionParser.GetServerName(connectionString)
.DatabaseName = connectionParser.GetDatabaseName(connectionString)
If connectionParser.DoesUseIntegratedSecurity(connectionString) = True Then
.IntegratedSecurity = True
Else
.UserID = connectionParser.GetServerUserName(connectionString)
.Password = connectionParser.GetServerPassword(connectionString)
.IntegratedSecurity = False
End If
End With
For Each CrTable In CrTables
crtableLogoninfo = CrTable.LogOnInfo
crtableLogoninfo.ConnectionInfo = crConnectionInfo
CrTable.ApplyLogOnInfo(crtableLogoninfo)
If InStr(CrTable.Location, ".dbo.") = 0 Then
CrTable.Location = crConnectionInfo.DatabaseName + ".dbo." + CrTable.Location
End If
Next
If r.Subreports.Count > 0 Then
Dim crSections As Sections
Dim crSection As Section
Dim crReportObjects As ReportObjects
Dim crReportObject As ReportObject
Dim crSubreportObject As SubreportObject
Dim crDatabase As Database
Dim subRepDoc As New ReportDocument()
'SUBREPORTS
'Set the sections collection with report sections
crSections = r.ReportDefinition.Sections
'Loop through each section and find all the report objects
'Loop through all the report objects to find all subreport objects, then set the
'logoninfo to the subreport
For Each crSection In crSections
crReportObjects = crSection.ReportObjects
For Each crReportObject In crReportObjects
If crReportObject.Kind = ReportObjectKind.SubreportObject Then
'If you find a subreport, typecast the reportobject to a subreport object
crSubreportObject = CType(crReportObject, SubreportObject)
'Open the subreport
subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
crDatabase = subRepDoc.Database
CrTables = crDatabase.Tables
'Loop through each table and set the connection info
'Pass the connection info to the logoninfo object then apply the
'logoninfo to the subreport
For Each CrTable In CrTables
crtableLogoninfo = CrTable.LogOnInfo
crtableLogoninfo.ConnectionInfo = crConnectionInfo
CrTable.ApplyLogOnInfo(crtableLogoninfo)
If InStr(CrTable.Location, ".dbo.") = 0 Then
CrTable.Location = crConnectionInfo.DatabaseName + ".dbo." + CrTable.Location
End If
Next
End If
Next
Next
#4 go get the data
crv.ReportSource = myReport
crv.Refresh()
#5 Call export to disk function.
This was not changing server - did not realize it was a caching problem as you suggested. That makes sense. So anyway, then of course I threw a verify database statement on there, before I get the data. Now looks like this:
#1 Load Report
#2. Pass in parameter values (dummy values that will generate schema of table without having to actually run long running procedures, i.e. select (cast 1 as int) as somefield1, cast(2.0 as numeric(10,0)) as somefield2
#3 Set "Table Log in info"
#3b Verify the database which seems to be a necessity:
myReport.VerifyDatabase()
#3c Re-populate the report with real parameter values, same as #2 but this time with the ones that will generate the real data
#4 go get the data
#5 Call export to disk function.
This does work, some of the time. When the datasource underlying report are tables, it works. I made a dummy crystal report with lots of different types of params (stored procedure underlying database) - this also worked!
Unfortunately, when I run this against the majority of my reports, I get this stupid "invalid mapping type value", for which I have not been able to resolve yet.
I also tried putting a myreport.SetDatabaseLogon("","") -- what would this do, clear it out? (saw this referenced somewhere).
Then I tried putting the real connection info in there as well ...
myReport.SetDatabaseLogon(uid, pwd, serverName, DBname)
I put this setdatabase thing before I called verifydatabase, which is where the process is bombing out and giving me invalid mapping type for the reports that do not run.
At this point I am still working on solution. I have tried creating dummy report that used same parameter types as a report that was failing and voila - the dummy report worked. Anyway, let me know if you get your problem fixed and I will do the same. Looks like you are using a different method that I didn't notice "LogOnServer" -
Change Color of OTL Time Entry Warning Messages
We are using time entry rules in OTL and in some cases have warnings instead of errors. The warning message shows up in blue so it is barely visible on the timecard. Is there an easy way to change the color of the warning message?
Thanks in advance.These colors are based on standard BLAF standards used in oracle apps. You will have to use CLAF Customizing Look-and-Feel. Check OAF personalization guide.
--Shiv -
How to change dynamically text label at run time in the forms
Hi,
I am having a form in which i want to change the text label dynamically. I mean when a certain condition match then text label should be change and when condition does not match then the text label should reamin as it is in the same form.
plz help
thanks in advance
azharHi,
Use this code to change the label at run time.
set_item_property('deptno',prompt_text,'pagal dept');
Prompt_text is used for changing label at run time. -
How to change value of instance variable and local variable at run time?
As we can change value at run time using debug mode of Eclipse. I want to do this by using a standalone prgram from where I can change the value of a variable at runtime.
Suppose I have a class, say employee like -
class employee {
public String name;
employee(String name){
this.name = name;
public int showSalary(){
int salary = 10000;
return salary;
public String showName()
return name;
i want to change the value of instance variable "name" and local variable "salary" from a stand alone program?
My standalone program will not use employee class; i mean not creating any instance or extending it. This is being used by any other calss in project.
Can someone tell me how to change these value?
Please help
Regards,
Sujeet SharmaThis is the tutorial You should interest in. According to 'name' field of the class, it's value can be change with reflection. I'm not sure if local variable ('salary') can be changed - rather not.
-
How to change the Schema (DB2, Oracle) in CommandTable at run time
Dear all,
I have a problem as below:
I have created report with CommandTable, then I am using Java and CRJ 12 to export data. So how to change the SCHEMA in CommandTable?
Please help me on this.
Ex: CommandTable is SELECT * from SCHEMA.TableA, SCHEMA.TableB
Thanks,
NhaDear Ted,
I want to change DataSource, it means the report will be load and change connection at run time (using CRJ SDK) and i want to change the SCHEMA.Tablename in CommandTable in report.
I also use the parameter to do it, but it can not be at run time, just correct when designing.
Could you please help me on this. You can post the code if any.
Thanks,
Nha -
I saw that there is the possibility to change color to present a variety of calendars.
My webcal in particular should be on existing services WEBCAL, eg, the lunar calendar.
I change color, but every time my iPad or iPhone sync, returns the default color!
What can I do?Yep, I just noticed this behavious on my iPhone 4 as well. Built-in calendars ("On My iPhone") stay locked in their colours, but subscribed calendars keep changing theirs. It's quite annoying.
-
Can i change the running time of an itunes song?
I have made a slideshow that incorporates several vacations running in a continuous loop. I used different songs from itunes for each individual vacation, i.e., Mexico, Bermuda, etc.. The timing of the slideshow segments(vacations) do not match the running time of the songs. (close but not quite) The songs are all in the order needed, on the same itunes playlist. I need to change either the running time of the music or maybe as a last choice, delete or add more photos. Can the running time for a song be condensed or expanded ?
John,
The use of the "Stop" time in iTunes gives you an abrupt end, not a fade-out. If you play back with "Cross-Fade" turned on, you will not notice it. Cross-Fade can be turned on in Edit > Preferences > Playback.
Note that Cross-Fade causes overlap, so will affect the timings.
If you actually want to edit the file to have a fade-out, you will need 3rd party software such as MP3 Trim, or Audacity, and then put the editied file into iTunes. -
How to change the application (MIDlet) input language at MIDlet run-time?
Hi,
I am working on a Messaging (SMS) J2ME MIDlet where it is required to change the input language for a TextField/Area at run-time.
For example if default handset language is set to Chinese, during MIDlet execution time the textfield language (locale) should be changed to Arabic/Spanish/French. Here I understand that provided the required languages are supported on handset, one can change them from handset settings.
Can anyone help me out with changing the microedition.locale to zh_CN from en_US?
ThanksDear Ted,
I want to change DataSource, it means the report will be load and change connection at run time (using CRJ SDK) and i want to change the SCHEMA.Tablename in CommandTable in report.
I also use the parameter to do it, but it can not be at run time, just correct when designing.
Could you please help me on this. You can post the code if any.
Thanks,
Nha -
Create at run-time enumeration of a Dictionary simple type - String
How can I change dynamically (at run-time) the enumeration of a Dictionary simple type (String) ?
This reference explains how to set values for a simple type.
http://help.sap.com/saphelp_nw04/helpdata/en/86/16e13d82fcfb34e10000000a114084/frameset.htm
Cindy -
Run-Time Engine 7.0 and Excel
I found out that Run-Time Engine 7.0 running executable generated at LabVIEW 7.0 environment (code written in LabVIEW 7.1 but save as 7.0) cannot open Excel 2000 files. If I replace Excel 2000 with Excel 2003 application on my pc, the executable code will open the Excel file (Run-Time Engine 7.0 works with Excel 2003).
Is the Excel 2003 and higher versions will only work with Run-Time Engine 7.0 and higher code?
How can I make executables using Run-Time Engine 7.0 work with Excel 2000 (Windows 98 operating system)??? (I cannot change Excel and Run-Time Engine and OS versions due to limitations, how can I work with what I have?).
Thanks for your help.
Regards,
LVLVDuplicate post.
-
Change in background MRP time with EDI scenario for sale order booking
Hi All,
I have a scenario where Sales orders are booked through EDI. Now because of some reasons duplicate orders are getting booked in SAP. Now users are manually deleting the duplicate sales orders.
Now MRP is running at Night with duplicate orders in background. So users wanted to run MRP after deleting the duplicate SO.( i.e. during office Hrs)
Should i change MRP timings to suit the user requirement? what will be the pros & cons if change MRP timings.will it throw errors in EDI.
Thanks & regards,
devDear,
If you change the MRP run time for periodic job in MDBT it would not affect any where only system will create the procrument after MRP run only.
Please try to find out the reason why duplicate orders are getting booked?
Regards,
R.Brahmankar -
Default maximum run time for updates
Is there a way to change the default "Max run time" for each update? In SCCM 2007 the default run time was 20 minutes per update, now it is 5 minutes. I have machines that repeatedly fail to install updates because the max time of 300 seconds was
reached.Hi,
What is the powershell command to change the maximum run time?
Thanks.
probably this:
http://technet.microsoft.com/en-us/library/jj850138(v=sc.20).aspx
Don
(Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!) -
How to change object background color on java run time
Hi,
I create object loading program. my problem is run time i change object background color using color picker. i select any one color of color picker than submit. The selecting color not assign object background.
pls help me? How to run time change object background color?
here follwing code
import com.sun.j3d.loaders.objectfile.ObjectFile;
import com.sun.j3d.loaders.ParsingErrorException;
import com.sun.j3d.loaders.IncorrectFormatException;
import com.sun.j3d.loaders.Scene;
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
import com.sun.j3d.utils.applet.MainFrame;
import com.sun.j3d.utils.universe.*;
import javax.media.j3d.*;
import javax.vecmath.*;
import java.io.*;
import com.sun.j3d.utils.behaviors.vp.*;
import java.net.URL;
import java.net.MalformedURLException;
import java.awt.Graphics ;
import javax.swing.*;
public class ObjLoad1 extends Applet implements ActionListener
private boolean spin = false;
private boolean noTriangulate = false;
private boolean noStripify = false;
private double creaseAngle = 60.0;
private URL filename = null;
private SimpleUniverse u;
private BoundingSphere bounds;
private Panel cardPanel;
private Button Tit,sub;
private CardLayout ourLayout;
private BorderLayout bl;
Background bgNode;
BranchGroup objRoot;
List thelist;
Label l1;
public BranchGroup createSceneGraph()
BranchGroup objRoot = new BranchGroup();
TransformGroup objScale = new TransformGroup();
Transform3D t3d = new Transform3D();
t3d.setScale(0.7);
objScale.setTransform(t3d);
objRoot.addChild(objScale);
TransformGroup objTrans = new TransformGroup();
objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
objScale.addChild(objTrans);
int flags = ObjectFile.RESIZE;
if (!noTriangulate) flags |= ObjectFile.TRIANGULATE;
if (!noStripify) flags |= ObjectFile.STRIPIFY;
ObjectFile f = new ObjectFile(flags,(float)(creaseAngle * Math.PI / 180.0));
Scene s = null;
try {
s = f.load(filename);
catch (FileNotFoundException e) {
System.err.println(e);
System.exit(1);
catch (ParsingErrorException e) {
System.err.println(e);
System.exit(1);
catch (IncorrectFormatException e) {
System.err.println(e);
System.exit(1);
objTrans.addChild(s.getSceneGroup());
bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);
if (spin) {
Transform3D yAxis = new Transform3D();
Alpha rotationAlpha = new Alpha(-1, Alpha.INCREASING_ENABLE,0,0,4000,0,0,0,0,0);
RotationInterpolator rotator = new RotationInterpolator(rotationAlpha,objTrans,yAxis,0.0f,(float) Math.PI*2.0f);
rotator.setSchedulingBounds(bounds);
objTrans.addChild(rotator);
//Background color setting
Color3f bgColor = new Color3f(100,200,230);
bgNode = new Background(bgColor);
bgNode.setApplicationBounds(bounds);
objRoot.addChild(bgNode);
return objRoot;
private void usage()
System.out.println("Usage: java ObjLoad1 [-s] [-n] [-t] [-c degrees] <.obj file>");
System.out.println("-s Spin (no user interaction)");
System.out.println("-n No triangulation");
System.out.println("-t No stripification");
System.out.println("-c Set crease angle for normal generation (default is 60 without");
System.out.println("smoothing group info, otherwise 180 within smoothing groups)");
System.exit(0);
} // End of usage
public void init() {
if (filename == null) {
try {
URL path = getCodeBase();
filename = new URL(path.toString() + "./galleon.obj");
catch (MalformedURLException e) {
System.err.println(e);
System.exit(1);
//setLayout(new BorderLayout());
//setLayout(new GridLayout(5,0));
//setLayout(new CardLayout());
//setLayout(new FlowLayout(FlowLayout.LEFT, 5, 5));
GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
Canvas3D c = new Canvas3D(config);
add(c);
BranchGroup scene = createSceneGraph();
u = new SimpleUniverse(c);
ViewingPlatform viewingPlatform = u.getViewingPlatform();
PlatformGeometry pg = new PlatformGeometry();
Color3f ambientColor = new Color3f(45,27,15);
AmbientLight ambientLightNode = new AmbientLight(ambientColor);
ambientLightNode.setInfluencingBounds(bounds);
pg.addChild(ambientLightNode);
Color3f light1Color = new Color3f(111,222,222);
Vector3f light1Direction = new Vector3f(1.0f, 1.0f, 1.0f);
Color3f light2Color = new Color3f(1.0f, 1.0f, 1.0f);
Vector3f light2Direction = new Vector3f(-1.0f, -1.0f, -1.0f);
DirectionalLight light1 = new DirectionalLight(light1Color, light1Direction);
light1.setInfluencingBounds(bounds);
pg.addChild(light1);
DirectionalLight light2 = new DirectionalLight(light2Color, light2Direction);
light2.setInfluencingBounds(bounds);
pg.addChild(light2);
viewingPlatform.setPlatformGeometry(pg);
viewingPlatform.setNominalViewingTransform();
if (!spin) {
OrbitBehavior orbit = new OrbitBehavior(c,OrbitBehavior.REVERSE_ALL);
BoundingSphere bounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0), 100.0);
orbit.setSchedulingBounds(bounds);
viewingPlatform.setViewPlatformBehavior(orbit);
u.addBranchGraph(scene);
public ObjLoad1(String[] args) {
if (args.length != 0) {
for (int i = 0 ; i < args.length ; i++) {
if (args.startsWith("-")) {
if (args[i].equals("-s")) {
spin = true;
} else if (args[i].equals("-n")) {
noTriangulate = true;
} else if (args[i].equals("-t")) {
noStripify = true;
} else if (args[i].equals("-c")) {
if (i < args.length - 1) {
creaseAngle = (new Double(args[++i])).doubleValue();
} else usage();
} else {
usage();
} else {
try {
if ((args[i].indexOf("file:") == 0) ||
(args[i].indexOf("http") == 0)) {
filename = new URL(args[i]);
else if (args[i].charAt(0) != '/') {
filename = new URL("file:./" + args[i]);
else {
filename = new URL("file:" + args[i]);
catch (MalformedURLException e) {
System.err.println(e);
System.exit(1);
public void actionPerformed(ActionEvent e)
if (e.getSource() == Tit)
//Color Picker tool
Color c1 = JColorChooser.showDialog(((Component)e.getSource()).getParent(),"Zaxis Color Picker", Color.blue);
cardPanel.setBackground(c1);
objRoot.removeChild(bgNode);
int a = c1.getRed();
int b = c1.getBlue();
int c = c1.getBlue();
System.out.println(a);
System.out.println(b);
System.out.println(c);
Color3f ccc = new Color3f(a,b,c);
bgNode.setApplicationBounds(bounds);
objRoot.addChild(bgNode);
else
System.out.println("mathi");
public ObjLoad1()
Tit = new Button("BG Color");
sub = new Button("Object Color");
cardPanel = new Panel();
cardPanel.add(Tit);
cardPanel.add(sub);
//cardPanel.add(l1);
//cardPanel.add(thelist);
sub.addActionListener(this);
Tit.addActionListener(this);
// thelist.addActionListener(this);
//setLayout for applet to be BorderLayout
this.setLayout(new BorderLayout());
//button Panel goes South, card panels go Center
this.add(cardPanel, BorderLayout.SOUTH);
//this.add(cardPanel, BorderLayout.CENTER);
this.setVisible(true);
public void destroy() {
public static void main(String[] args) {
new MainFrame(new ObjLoad1(args),400, 400);hi,
i am using setColor(Color3f color) method
like
if (e.getSource() == Tit)
Color c1 = JColorChooser.showDialog(((Component)e.getSource()).getParent(),"Zaxis Color Picker", Color.blue);
bgColor = new Color3f(c1);
System.out.println(bgColor.get());
bgNode.setColor(bgColor);
bgNode.setApplicationBounds(bounds);
objRoot.addChild(bgNode);
but error will be displayed
like
javax.media.j3d.CapabilityNotSetException: Background: no capability to set color
at javax.media.j3d.Background.setColor(Background.java:307)
at ObjLoad1.actionPerformed(ObjLoad1.java:230)
at java.awt.Button.processActionEvent(Unknown Source)
at java.awt.Button.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
pls help me
Maybe you are looking for
-
What type of OS X do I need?
Hi. I recently tried to download a free trial of Final Cut Pro X, but the trial would not download because my MacBook Pro is an OS X 10.6.7. I'm not a computer genius, but is Snow Leopard supposed to be OS X 10.6.8 in order to install FCP X? Thanks.
-
How to easily change drive location .. from O: to F: in Itunes
I have had to move my external drive with all music to new port. That has changed the drive letter from O to F. O is now taken by another drive. Is there a simple way to tell iTunes files are now on F and not O?
-
Best book for designing and architecting a java application?
Hi, Please recommend the best book(s) in the market or on line tutorials which would help me architect and design a java application using SWING. I have used most of the swing components in many small GUI apps I have developed [JTable, JTree, etc, et
-
When run my custom application in ME SP02, the window of the mobile engine it's fullscreen(ex. 800x600) but the main page size of the my application is 350x500. When run the my application in the my browser (test with MDK in SAP-IDE)it's ok (resize w
-
Mail not displaying the email contents correctly
Im trying to use Mail on one of my machines. Its not showing me the body of the email. I can only see the intro part. What the heck! Switching between classic and regular view doesn't help I tried that. What else can I do to fix this.