How do I set the ProgressIndicator color?
What css would I use to set the color of a ProgressIndicator?
Here is my ProgressIndicator:
ProgressIndicator progress = new ProgressIndicator(-1.0);
Here is the CSS that I have which is not working:
.progress-indicator:indeterminate *.spinner {
-fx-background-color: red;
}
cjavapro wrote:
@db
My ProgressIndicator is indeterminate. new ProgressIndicator(-1.0) creates an animated "infinite" progress icon.You're right. I guess either the API needs correction or the FX source needs to throw an IllegalArgumentException for a negative parameter to the constructor.
With either <tt>new ProgressIndicator()</tt> or <tt>new ProgressIndicator(-1.0)</tt> I do get the background color from the CSS, so long as I don't set any <tt>Effect</tt>.
To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example along with your CSS file, that demonstrates the problem.
db
Similar Messages
-
How can i set the alternating colors for a table rows
Dear All,
Please any one help me how can i set the Alternating colors for Table Rows.
i created a theam there i set the background alternating color to brown and i set the table design properity to alternating. but it is not reflecting.Hi,
The design property in Table properties should work for your requirement. Select "alternating" value for design.
Please see the API below:
design
Determines the appearance of the table. The property design can take the following values and is represented by enumeration type WDTableDesign.
alternating - The table rows are displayed alternately in a different color.
standard - The table background has one color. The individual table rows are displayed with grid net lines.
transparent - The table background is transparent. The individual table rows are displayed without grid net lines.
Check whether you have changed the right property or not? Also table should contain more than one rows to test this scenario.
Regards,
Jaya.
Edited by: VJR on Jun 17, 2009 6:43 PM -
How do you set the font color for a specific entire row inside a JTable?
How do you set the font color for a specific entire row inside a JTable?
I want to change the font color for only a couple of rows inside a JTable.
I've seen some ways to possibly do this with an individual cell.
Clarification on changing the font color in an individual cell would be helpful too if
there is no easy way to do this for a row.hai,
Try out with this piece of code.Create your table and assign the renderer to each column in the table.
CellColorRenderer m_CellColorRenderer = new CellColorRenderer();
for(int i=0;i<your_JTable.getColumnCount();i++)
your_JTable.getColumnModel().getColumn(i).setCellRenderer(m_CellColorRenderer);
class CellColorRenderer extends JLabel implements TableCellRenderer
CellColorRenderer()
setOpaque(true);
setHorizontalAlignment(LEFT);
setVerticalAlignment(CENTER);
setBackground(Color.white);
setForeground(Color.black);
protected void setValue(Object value)
setText((value == null) ? "" : value.toString());
public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected, boolean hasFocus, int row,int column)
if(isSelected == true)
setForeground(Color.red);
else
setForeground(Color.black);
setValue(value);
return this;
regards,
bala -
When I click an image or a glass pipe(which belongs to Industry/Chesmitry category in palette), I want a SubVI to be invoked.
The purpose is to fetch an OPC-UA data from a web service and to write to it via the service.
We are building an HMI solution which displays an interactive water plant diagram.
When users click pipes and motors in the diagram, clicked devices should be turned on and off and change their animations or colors accordingly.
OPC-UA is for communication with devices.
I couldn't even set the background color of a pipe to "#0000ff", but setting it to "Red" or "Blue" was possible, and I don't know how to invoke SubVIs in event scripts.
The documentations in NI.com are confusing and lack depth.
Even silverlight references are confusing.
How do I do all of these?Hi iCat,
Can you provide some more information about your current implementation so that we can help to answer your questions. Some questions I have for you are:
Are you creating this project in the NI LabVIEW Web UI Builder or in LabVIEW?
How are you publishing your webservice? Is this also in LabVIEW?
How is your webservice interacting with an OPC-UA server?
How is the certification set up with OPC-UA so that you can communicate between the server and the client?
Best Regards,
Allison M.
Applications Engineer
National Instruments
ni.com/support -
How do I set the background color of a page_item?
I've been pasting "background-color:#5CD65C" in a number of places, like "HTML Table Cell Attributes" under the Label and the Element tabs, but get no results. Can anyone tell me how to set the background color of a cell, please?
Hi Doug,
Dynamic Actions is an alternative also, especially if it is conditional.
Action Set Style
Fire When Event Result Is True
Style Name background-color
Value #5CD65C
Selection Type DOM Object
DOM Object your item name
Set your Condition Type and you have it.
Jeff
Edited by: jwellsnh on May 24, 2011 3:55 PM -
How can I set the background color of JLabel?
Can any one tell me how to set the background color of a JLabel?
I have:
JLabel prop = new JLabel("blahblah");
prop.setBackground(Color.red);
Thank you in advance...JLabel prop = new JLabel("blahblah");
prop.setBackground(Color.red);
prop.setOpaque(true); -
How can i set the different colors for a different group ui elements
Hi All,
I Created a View Container in that i crated 2 views. In first view i created a group and in second
view also i created a group. I want to set The First view group header colour as Golden colour and for second view group heder colour as Green colour. Please any one help me on this.
Thanks&Regards,
Bhargava.Dear GLM,
i got that. while creating the theme, in Complex Elements select the group element and set the primary group header colour to golden and secondary group Header colour to Green and in ur webdynpro application set the Group Design property as Primary Color for which group u want to set the Golden color and set the Group Design property as Secondary Color for which group u want to set the Green color.
Thanks&Regards,
Bhargava. -
How can i set the Header colors for a group ui element
Hi All,
I Created a View Container in that i crated 2 views. In first view i created a group and in second
view also i created a group. I want to set The First view group header colour as Golden colour and for second view group heder colour as Green colour. Please any one help me on this.
Thanks&Regards,
Bhargava.Dear Jean,
i creted the theam. in the Complex Element Group i changed the Primary group colour to Golden Colour and secondry group colour to Green Colour. but in my application for all group's header it iis taking the golden colour.
in my senario i have 2 views in view container. each view have the separate Group ui element. i wan to set golden colour for first view's group and Green colour for the Second View Group.
how can i do that.
Thanks&Regards,
Bhargava. -
How 2 set the background color in j2me
Can any body tell me how to set the background color to midlet.??
if you are using Screen then you can call its setBackColor()
or if you are using Canvas then you can call
g.setColor(r,g,b);
g.fillRect(0,0,getWidth,getHieght);
where g is the Graphics instance of Canvas,for further information consult documentation -
How can I set the default print settings of my document as color. I want the default print setting to be color when someone opens a document. similar to duplex print preset is there a color print preset?
Hi,
Try saving your settings as a Preset by clicking the Preset drop down and then select Save Current Settings as a Preset.
Next try changing the settings by selecting the saved preset.
That allow saving the settings for a specific printer, I assume it may also allow selecting these settings for another printer. -
Link Color not changing for Visited Pages - How do I set the Color?
In earlier versions of Safari, the user could select the color used to display links that have already been visited. I can't find that option in Preferences anymore. Some visited links do show a different color, some don't. Is it just random? How do I set the color in Safari 4.0.4 and activate the behavior?
HI,
I think you change visited pages link colors using Google preferences.
http://www.googleguide.com/preferences.html
Carolyn -
Help!!! How do I get the bit color depth the user has his screen set to?
Help!!! How do I get the bit color depth the user has his screen set to?
Thank you.i'm not sure if it's what you 're looking for but it worked for me:
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice[] gs = ge.getScreenDevices();
for(int i=0;i<gs.length;i++){ //length is 1 (= i have only one screen? )
GraphicsDevice g=gs[ i ];
int nBits=g.getDisplayMode().getBitDepth(); //method getDisplayMode() only in jdk1.4 , i think
System.out.println( nBits+"");
output is 32 if i set my screen color to 32bits, 24 if...24, ... -
How to set the (specific) color for a Chart Series in a Flash Diagramm
Hello all,
I wonder how I can set the color (of a bar) for a Chart Series in a Flash Diagramm.
So far I found now set-screw for this.
Can someone give me a hint please.
Thanks in advance.
AndreHi,
On the Chart Attributes page for the region, change the "Color Scheme" setting to Custom. Then, in the "Custom Colors" setting, enter the colours you want for all series, separated by a comma. For example:
red,yellow,greenAndy -
How to set the Background Color of a Text Field in a Tabular Report.
Hello,
I tried to set the Background Color of a Text Field in a Tabular Report.
But I was not able to change this colur.
In the report attributes --> column attributes
I tried already:
1. Column Formating -- >CSS Style (bgcolor: red)
2. Tabular Form Element --> Element Attributes (bgcolor: red)
but nothing worked.
Can anybody help me?
I Use Oracle Apex 2.2.1 on 10gR2
thank you in advance.
Oliverin "Report Attributes" select the column to move to the "Column Attributes" page. In the "Element Attributes" field under the "Tabular Form Element" region enter
style="background-color:red;"
I will also check if there is a way to do this via the template and post here again
edit:
in your template definition, above the template, enter the following:
< STYLE TYPE="text/css" >
.class INPUT {background-color:red;}
< /STYLE >
(remove the spaces after the < and before the >)
change "class" to the class that the template is calling
(I'm using theme 9, the table has: class="t9GCCReportsStyle1" so I would enter t9GCCReportsStyle1)
A side-effect of using this second version is that ALL input types will have a red background color--checkboxes, input boxes, etc.
Message was edited by:
TheJosh -
I am Making a program for purchasing games, with the basic layout alsot done, except on problem. When the purchase button is pressed, a dialog shows up but nothing is seen until i resize it. How would i set the frame size so that i do not need to resize it each time? below is the code for the files. Many thanks in advance.
CreditDialog
import java.awt.*;
import java.awt.event.*;
class CreditDialog extends Dialog implements ActionListener { // Begin Class
private Label creditLabel = new Label("Message space here",Label.RIGHT);
private String creditMessage;
private TextField remove = new TextField(20);
private Button okButton = new Button("OK");
public CreditDialog(Frame frameIn, String message) { // Begin Public
super(frameIn); // call the constructor of dialog
creditLabel.setText(message);
add("North",creditLabel);
add("Center",remove);
add("South",okButton);
okButton.addActionListener(this);
setLocation(150,150); // set the location of the dialog box
setVisible(true); // make the dialog box visible
} // End Public
public void actionPerformed(ActionEvent e) { // Begin actionPerformed
// dispose(); // close dialog box
} // End actionPerformed
} // End Class
MobileGame
import java.awt.*;
import java.awt.event.*;
class MobileGame extends Panel implements ActionListener { // Begin Class
The Buttons, Labels, TextFields, TextArea
and Panels will be created first.
private int noOfGames;
// private GameList list;
private Panel topPanel = new Panel();
private Panel middlePanel = new Panel();
private Panel bottomPanel = new Panel();
private Label saleLabel = new Label ("Java Games For Sale",Label.RIGHT);
private TextArea saleArea = new TextArea(7, 25);
private Button addButton = new Button("Add to Basket");
private TextField add = new TextField(3);
private Label currentLabel = new Label ("Java Games For Sale",Label.RIGHT);
private TextArea currentArea = new TextArea(3, 25);
private Button removeButton = new Button("Remove from Basket");
private TextField remove = new TextField(3);
private Button purchaseButton = new Button("Purchase");
private ObjectList gameList = new ObjectList(20);
Frame parentFrame; //needed to associate with dialog
All the above will be added to the interface
so that they are visible to the user.
public MobileGame (Frame frameIn) { // Begin Constructor
parentFrame = frameIn;
topPanel.add(saleLabel);
topPanel.add(saleArea);
topPanel.add(addButton);
topPanel.add(add);
middlePanel.add(currentLabel);
middlePanel.add(currentArea);
bottomPanel.add(removeButton);
bottomPanel.add(remove);
bottomPanel.add(purchaseButton);
this.add("North", topPanel);
this.add("Center", middlePanel);
this.add("South", bottomPanel);
addButton.addActionListener(this);
removeButton.addActionListener(this);
purchaseButton.addActionListener(this);
The following line of code below is
needed inorder for the games to be
loaded into the SaleArea
} // End Constructor
All the operations which will be performed are
going to be written below. This includes the
Add, Remove and Purchase.
public void actionPerformed (ActionEvent e) { // Begin actionPerformed
If the Add to Basket Button is pressed, a
suitable message will appear to say if the game
was successfully added or not. If not, an
ErrorDialog box will appear stateing the error.
if(e.getSource() == addButton) { // Begin Add to Basket
// GameFileHandler.readRecords(list);
try { // Begin Try
String gameEntered = add.getText();
if (gameEntered.length() == 0 ) {
new ErrorDialog (parentFrame,"Feild Blank");
} else if (Integer.parseInt(gameEntered)< 0
|| Integer.parseInt(gameEntered)>noOfGames) { // Begin Else If
new ErrorDialog (parentFrame,"Invalid Game Number");
} else { // Begin Else If
//ADD GAME
} // End Else
} catch (NumberFormatException num) { // Begin Catch
new ErrorDialog(parentFrame,"Please enter an Integer only");
} // End Catch
} // End Add to Basket
If the Remove From Basket Button is pressed, a
a suitable message will appear to say if the
removal was successful or not. If not, an
ErrorDialog box will appear stateing the error.
if(e.getSource() == removeButton) { // Begin Remove from Basket
try { // Begin Try
String gameEntered = remove.getText();
if (gameEntered.length() == 0 ) {
new ErrorDialog (parentFrame,"Feild Blank");
} else if (Integer.parseInt(gameEntered)< 1
|| Integer.parseInt(gameEntered)>noOfGames) { // Begin Else If
new ErrorDialog (parentFrame,"Invalid Game Number");
} else { // Begin Else If
//ADD GAME CODE
} // End Else
} catch (NumberFormatException num) { // Begin Catch
new ErrorDialog(parentFrame,"Please enter an Integer only");
} // End Catch
} // End Remove from Basket
If the purchase button is pressed, the
following is executed. NOTE: nothing is done
when the ok button is pressed, the window
just closes.
if(e.getSource() == purchaseButton) { // Begin Purchase
String gameEntered = currentArea.getText();
if (gameEntered.length() == 0 ) {
new ErrorDialog (parentFrame,"Nothing to Purchase");
} else { // Begin Else If
new CreditDialog(parentFrame,"Cost � 00.00. Please enter Credit Card Number");
} // End Else
} // End Purchase
} // End actionPerformed
} // End Class
RunMobileGame
import java.awt.*;
public class RunMobileGame { // Begin Class
public static void main (String[] args) { // Begin Main
EasyFrame frame = new EasyFrame();
frame.setTitle("Game Purchase for 3G Mobile Phone");
MobileGame purchase = new MobileGame(frame); //need frame for dialog
frame.setSize(500,300); // sets frame size
frame.setBackground(Color.lightGray); // sets frame colour
frame.add(purchase); // adds frame
frame.setVisible(true); // makes the frame visible
} // End Main
} // End Class
EasyFrame
import java.awt.*;
import java.awt.event.*;
public class EasyFrame extends Frame implements WindowListener {
public EasyFrame()
addWindowListener(this);
public EasyFrame(String msg)
super(msg);
addWindowListener(this);
public void windowClosing(WindowEvent e)
dispose();
public void windowDeactivated(WindowEvent e)
public void windowActivated(WindowEvent e)
public void windowDeiconified(WindowEvent e)
public void windowIconified(WindowEvent e)
public void windowClosed(WindowEvent e)
System.exit(0);
public void windowOpened(WindowEvent e)
} // end EasyFrame class
ObjectList
class ObjectList
private Object[] object ;
private int total ;
public ObjectList(int sizeIn)
object = new Object[sizeIn];
total = 0;
public boolean add(Object objectIn)
if(!isFull())
object[total] = objectIn;
total++;
return true;
else
return false;
public boolean isEmpty()
if(total==0)
return true;
else
return false;
public boolean isFull()
if(total==object.length)
return true;
else
return false;
public Object getObject(int i)
return object[i-1];
public int getTotal()
return total;
public boolean remove(int numberIn)
// check that a valid index has been supplied
if(numberIn >= 1 && numberIn <= total)
{ // overwrite object by shifting following objects along
for(int i = numberIn-1; i <= total-2; i++)
object[i] = object[i+1];
total--; // Decrement total number of objects
return true;
else // remove was unsuccessful
return false;
ErrorDialog
import java.awt.*;
import java.awt.event.*;
class ErrorDialog extends Dialog implements ActionListener {
private Label errorLabel = new Label("Message space here",Label.CENTER);
private String errorMessage;
private Button okButton = new Button("OK");
public ErrorDialog(Frame frameIn, String message) {
/* call the constructor of Dialog with the associated
frame as a parameter */
super(frameIn);
// add the components to the Dialog
errorLabel.setText(message);
add("North",errorLabel);
add("South",okButton);
// add the ActionListener
okButton.addActionListener(this);
/* set the location of the dialogue window, relative to the top
left-hand corner of the frame */
setLocation(100,100);
// use the pack method to automatically size the dialogue window
pack();
// make the dialogue visible
setVisible(true);
/* the actionPerformed method determines what happens
when the okButton is pressed */
public void actionPerformed(ActionEvent e) {
dispose(); // no other possible action!
} // end class
I Know there are alot of files. Any help will be much appreciated. Once again, Many thanks in advancesetSize (600, 200);orpack ();Kind regards,
Levi
PS:
int i;
parses to
int i;
, but
[code] int i;[code[i]]
parses to
int i;
Maybe you are looking for
-
So i have a table with one column: SUMA_LEI LEI I have a form made for this table. My purpose is to have just on row for this table, so when the user gets to the form page of this table, it gets an error like: "delete previous value, then insert new
-
Billing doc is not appearing :CRM_SRVBIL - Release Billing Documents
Hello Experts, We are running the SAP CRM service process and we are also doing the billing in CRM itself. For one service confirmation we are facing the billing problem. The isue: We have completed the Confiremation and while we are doing the billin
-
Support Packages Execution consuming too long time to get complete
Hi, I installed the SAP Solution Manager 4.0 SR1, I have downloaded the support package stack till june 2007, and applied it. while importing I faced one error XPRA_EXECUTION, Resolved it (by refering sap note:979594) and again click on import. Now i
-
Myself and colleagues, using the various CS3 tools, have recently come across a worrying problem in Dreamweaver CS3. We create Flash movies and save them out in Flash 8 format, so that they can be played on machines with Flash Player v8 without the u
-
Apple tv in only black and white
I just got an Apple TV, and I can't get it to show color; it is only in black and white. I have tried putting the red yellow and white cables in everywhere that they would really connect..anyone else have and fix this problem by any chance?