Setting text output color
Is there a way to change the color of text output through System.out.println()? I want to have some text be shown in bright white while the rest of the output is in its normal attribute. I considered using some kind of ANSI opcodes but that is not portable to other platforms!
No.
Similar Messages
-
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 -
Work with JTable cell (check input, set text color)
I have a JTable with data
The task is:
User inputs some data into cell
I want to check his input string for equatily with other values in column
For example, I have these values in column:
1.example
2.exercise
3.execute
User inputs word "execution" in the same column
until user inputs "executi" his input string should be red.
What event I have to listen to if I want to get user input string?
Also a question:
Is there any opportunity to work with cell row (copy it to another JTable) ?
Message was edited by:
Holodi think you should use cell editor as textfield (although that is default for jtable) and then implements document listener and set text color in insert update method.
try this out :-) -
How to set text and background color of current row in a adf table?
Hi,
In jdev 11.1.2.3,
How to set text fond and background color of current row in a adf table?
I tried to set Background color in table property, but that is not what i want.
Thanks.Hi,
We almost had the same requirement, but we just needed to color a specific column.
Here goes the solution to that, you might do the same for your row highlighting
Changes are required in jsff and one method to be added in backing bean
1. JSFF :
<af:column headerText="Amount"
id="c4" width="100"
inlineStyle="#{backingBeanScope.BackingBean.cellColor}">2. Backing Bean
//searchResultTableVO is Table's VO
public String getCellColor() {
FacesContext ctx = FacesContext.getCurrentInstance();
ExpressionFactory ef = ctx.getApplication().getExpressionFactory();
ValueExpression ve = ef.createValueExpression(ctx.getELContext(), "#{row}", FacesCtrlHierNodeBinding.class);
FacesCtrlHierNodeBinding node = (FacesCtrlHierNodeBinding)ve.getValue(ctx.getELContext());
Row row = node.getRow();
if(row.equals(searchResultTableVO.getCurrentRow())){
//You can add your inline style for font-style too
return "background-color:Red;";
return null;
}Hope this is helpful :)
Regards,
Neha.. -
Hi,
how can I give colored text output to a screen???
Tnx!!
RomisrFrom that link I gave you, it looks like Solaris directly supports escape sequences which allow color. Some Windows enviroments support ansi.sys which will handle escape sequences and allow color. If you do a little searching, you can probably find something in JNI which will allow you to do this.
So the answer is...
is it possible? Yes
Is it easy and platform independent? No -
I'm feeling really... stupid. I just can't set up irssi colors, almost ashame for asking advice on this
Here's my theme (just cloned the default theme):
# When testing changes, the easiest way to reload the theme is with /RELOAD.
# This reloads the configuration file too, so if you did any changes remember
# to /SAVE it first. Remember also that /SAVE overwrites the theme file with
# old data so keep backups :)
# TEMPLATES:
# The real text formats that irssi uses are the ones you can find with
# /FORMAT command. Back in the old days all the colors and texts were mixed
# up in those formats, and it was really hard to change the colors since you
# might have had to change them in tens of different places. So, then came
# this templating system.
# Now the /FORMATs don't have any colors in them, and they also have very
# little other styling. Most of the stuff you need to change is in this
# theme file. If you can't change something here, you can always go back
# to change the /FORMATs directly, they're also saved in these .theme files.
# So .. the templates. They're those {blahblah} parts you see all over the
# /FORMATs and here. Their usage is simply {name parameter1 parameter2}.
# When irssi sees this kind of text, it goes to find "name" from abstracts
# block below and sets "parameter1" into $0 and "parameter2" into $1 (you
# can have more parameters of course). Templates can have subtemplates.
# Here's a small example:
# /FORMAT format hello {colorify {underline world}}
# abstracts = { colorify = "%G$0-%n"; underline = "%U$0-%U"; }
# When irssi expands the templates in "format", the final string would be:
# hello %G%Uworld%U%n
# ie. underlined bright green "world" text.
# and why "$0-", why not "$0"? $0 would only mean the first parameter,
# $0- means all the parameters. With {underline hello world} you'd really
# want to underline both of the words, not just the hello (and world would
# actually be removed entirely).
# COLORS:
# You can find definitions for the color format codes in docs/formats.txt.
# There's one difference here though. %n format. Normally it means the
# default color of the terminal (white mostly), but here it means the
# "reset color back to the one it was in higher template". For example
# if there was /FORMAT test %g{foo}bar, and foo = "%Y$0%n", irssi would
# print yellow "foo" (as set with %Y) but "bar" would be green, which was
# set at the beginning before the {foo} template. If there wasn't the %g
# at start, the normal behaviour of %n would occur. If you _really_ want
# to use the terminal's default color, use %N.
# default foreground color (%N) - -1 is the "default terminal color"
default_color = "-1";
# print timestamp/servertag at the end of line, not at beginning
info_eol = "false";
# these characters are automatically replaced with specified color
# (dark grey by default)
replaces = { "[]=" = "%K$*%n"; };
abstracts = {
## generic
# text to insert at the beginning of each non-message line
line_start = "%B-%n!%B-%n ";
# timestamp styling, nothing by default
timestamp = "%K$*%n";
# any kind of text that needs hilighting, default is to bold
hilight = "%_$*%_";
# any kind of error message, default is bright red
error = "%R$*%n";
# channel name is printed
channel = "%_$*%_";
# nick is printed
nick = "%_$*%_";
# nick host is printed
nickhost = "[$*]";
# server name is printed
server = "%_$*%_";
# some kind of comment is printed
comment = "[$*]";
# reason for something is printed (part, quit, kick, ..)
reason = "{comment $*}";
# mode change is printed ([+o nick])
mode = "{comment $*}";
## channel specific messages
# highlighted nick/host is printed (joins)
channick_hilight = "%C$*%n";
chanhost_hilight = "{nickhost %c$*%n}";
# nick/host is printed (parts, quits, etc.)
channick = "%c$*%n";
chanhost = "{nickhost $*}";
# highlighted channel name is printed
channelhilight = "%c$*%n";
# ban/ban exception/invite list mask is printed
ban = "%c$*%n";
## messages
# the basic styling of how to print message, $0 = nick mode, $1 = nick
msgnick = "%K<%y$0%n$1-%K>%n %|";
# message from you is printed. "msgownnick" specifies the styling of the
# nick ($0 part in msgnick) and "ownmsgnick" specifies the styling of the
# whole line.
# Example1: You want the message text to be green:
# ownmsgnick = "{msgnick $0 $1-}%g";
# Example2.1: You want < and > chars to be yellow:
# ownmsgnick = "%Y{msgnick $0 $1-%Y}%n";
# (you'll also have to remove <> from replaces list above)
# Example2.2: But you still want to keep <> grey for other messages:
# pubmsgnick = "%K{msgnick $0 $1-%K}%n";
# pubmsgmenick = "%K{msgnick $0 $1-%K}%n";
# pubmsghinick = "%K{msgnick $1 $0$2-%n%K}%n";
# ownprivmsgnick = "%K{msgnick $*%K}%n";
# privmsgnick = "%K{msgnick %R$*%K}%n";
# $0 = nick mode, $1 = nick
ownmsgnick = "{msgnick $0 $1-}";
ownnick = "%_$*%n";
# public message in channel, $0 = nick mode, $1 = nick
pubmsgnick = "{msgnick $0 $1-}";
pubnick = "%N$*%n";
# public message in channel meant for me, $0 = nick mode, $1 = nick
pubmsgmenick = "{msgnick $0 $1-}";
menick = "%Y$*%n";
# public highlighted message in channel
# $0 = highlight color, $1 = nick mode, $2 = nick
pubmsghinick = "{msgnick $1 $0$2-%n}";
# channel name is printed with message
msgchannel = "%K:%c$*%n";
# private message, $0 = nick, $1 = host
privmsg = "[%R$0%K(%r$1-%K)%n] ";
# private message from you, $0 = "msg", $1 = target nick
ownprivmsg = "[%r$0%K(%R$1-%K)%n] ";
# own private message in query
ownprivmsgnick = "{msgnick $*}";
ownprivnick = "%_$*%n";
# private message in query
privmsgnick = "{msgnick %R$*%n}";
## Actions (/ME stuff)
# used internally by this theme
action_core = "%_ * $*%n";
# generic one that's used by most actions
action = "{action_core $*} ";
# own action, both private/public
ownaction = "{action $*}";
# own action with target, both private/public
ownaction_target = "{action_core $0}%K:%c$1%n ";
# private action sent by others
pvtaction = "%_ (*) $*%n ";
pvtaction_query = "{action $*}";
# public action sent by others
pubaction = "{action $*}";
## other IRC events
# whois
whois = "%# $[8]0 : $1-";
# notices
ownnotice = "[%r$0%K(%R$1-%K)]%n ";
notice = "%K-%M$*%K-%n ";
pubnotice_channel = "%K:%m$*";
pvtnotice_host = "%K(%m$*%K)";
servernotice = "%g!$*%n ";
# CTCPs
ownctcp = "[%r$0%K(%R$1-%K)] ";
ctcp = "%g$*%n";
# wallops
wallop = "%_$*%n: ";
wallop_nick = "%n$*";
wallop_action = "%_ * $*%n ";
# netsplits
netsplit = "%R$*%n";
netjoin = "%C$*%n";
# /names list
names_prefix = "";
names_nick = "[%_$0%_$1-] ";
names_nick_op = "{names_nick $*}";
names_nick_halfop = "{names_nick $*}";
names_nick_voice = "{names_nick $*}";
names_users = "[%g$*%n]";
names_channel = "%G$*%n";
# DCC
dcc = "%g$*%n";
dccfile = "%_$*%_";
# DCC chat, own msg/action
dccownmsg = "[%r$0%K($1-%K)%n] ";
dccownnick = "%R$*%n";
dccownquerynick = "%_$*%n";
dccownaction = "{action $*}";
dccownaction_target = "{action_core $0}%K:%c$1%n ";
# DCC chat, others
dccmsg = "[%G$1-%K(%g$0%K)%n] ";
dccquerynick = "%G$*%n";
dccaction = "%_ (*dcc*) $*%n %|";
## statusbar
# default background for all statusbars. You can also give
# the default foreground color for statusbar items.
sb_background = "%4%w";
# default backround for "default" statusbar group
#sb_default_bg = "%4";
# background for prompt / input line
sb_prompt_bg = "%n";
# background for info statusbar
sb_info_bg = "%8";
# background for topicbar (same default)
#sb_topic_bg = "%4";
# text at the beginning of statusbars. sb-item already puts
# space there,so we don't use anything by default.
sbstart = "";
# text at the end of statusbars. Use space so that it's never
# used for anything.
sbend = " ";
topicsbstart = "{sbstart $*}";
topicsbend = "{sbend $*}";
prompt = "[$*] ";
sb = " %c[%n$*%c]%n";
sbmode = "(%c+%n$*)";
sbaway = " (%GzZzZ%n)";
sbservertag = ":$0 (change with ^X)";
sbnickmode = "$0";
# activity in statusbar
# ',' separator
sb_act_sep = "%c$*";
# normal text
sb_act_text = "%c$*";
# public message
sb_act_msg = "%W$*";
# hilight
sb_act_hilight = "%M$*";
# hilight with specified color, $0 = color, $1 = text
sb_act_hilight_color = "$0$1-%n";
It's almost the way I want it, but a couple of things:
- I want everyone nickname but mine in gray
- I want the join/quit text (... has joined/quit) in gray
- I want the mode (@, +, etc) in yellow
I tried to format the text according irssi site, but without luck.
For example tried this to change others nickname color:
pubmsgnick = "{msgnick %y$0%n %K$1%n-}";
pubnick = "%K$*%n";
and this for the quit msg
# mode change is printed ([+o nick])
mode = "{comment %K$*%n}";
# nick/host is printed (parts, quits, etc.)
channick = "%c$*%n";
chanhost = "{nickhost %c$*%n}";
all without any luck. Also tried to put the format strings outside the curly braces, with the same result. I've been editing the config file for a while now, not sure what other information could you possibly need.
I know it's not a big deal, I stil can use the program with no hassle, but it would really be nice to set the colors like that, to help me distinguish between lines.
Thank you for reading, and sorry for my lousy englishNobody can tell you anything without proper system info or other technical details.
Mylenium -
Open Text output of a Report in Excel - Bad format
Hi All,
We have a report in Oracle Apps 11i(11.5.10) with Text as output format. We would like to open the file in Excel format.
We have done the recommended setups from the metalink note ID 316752.1.
Output is generated in Excel, but the format is not proper. Column level data is not displayed on Cell wise in the Excel, instead all the output is
dispalyed in single column in the Excel.
Any pointers on how to format the output to align each column in the output to the individual cell in the Excel.
Or else.. how to generate the output to Excel file?
Regards,
Ramuser504044 wrote:
Helios,
Kind regards for the reply.
I have surfed all the notes. My problem is.. I can open the text output in Excel. But the format is bad.
Output is nor properly alinged to the cells in the Excel.
And being the report is .RDF, any way we can do on the format?Hi Ram,
1. Are you using XML publisher to get the excel output?
2. If yes did you set the layout to excel when you run the concurrent request on the SRS screen?
Thanks
Shailendra
>
Regards,
Ram -
Set back ground color to a particular cell in table view
hi,
iam working on a jspDynpage and have a htmlb table view for which i need a way to set back ground color to a particular cell in table view, the color has to be set based on a value..is there a way to do it without using an iterator...well iam using a cellRenderer for the table but cant find a way to set the colors...if anyone does have a way please do reply...regardsYou can mention the color in <b>textview</b> as well as <b>Label as follows:</b>
<htmlb:textView text = "<span style='background-color: #00FF00'>My Textview</span>"
design = "EMPHASIZED" />
<htmlb:label for = "MyLabel"
text = "<span style='background-color: #00FF00'>Label </span>"
encode = "false"/>
Reward each helpful answer
Raja T
Message was edited by:
Raja Thangamani -
Need help with Set Text behavior
In Dreamweaver CS3/Mac, I am creating a disjointed rollover
that is initiated by rolling over an image. I need it to swap two
images and hopefully set text in two divs. I want this to happen on
rollover and not on click. I don't want it to restore on mouse out.
The images are no problem but I can't seem to make this happen for
the text. Is this possible? Any help? Thanks.http://murraytestsite.com/carneros.html
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"LB:Monroe" <[email protected]> wrote in
message
news:fsp2da$l1$[email protected]..
> Thanks for your response. You can view the page under
construction at:
>
http://www.monroest.com/tlcd/
>
> As one rolls over a square (image file) in the top bar,
the following is
> to
> occur:
> the large image swaps (simple swap image)
> the caption text changes (text, not an image)
> the text to the right of the image changes (text, not an
image)
> the background color of the text div (currently light
gray) changes
> (property
> change?)
> on some of them, the text color of the long text block
changes (property
> change?)
http://www.monroest.com/tlcd
> -
How to take Text Output in File as It shows error of Printer definition file
I want to take Output of a report in text file or rtf format so that i could be able to print on a DMP, it is very difficult to take printing on Inkjets with wide information. How can i take fast printing on Dot Matrix Printer.
Looking forward for a quick & positive response.Hi ,
Text outut dump can be got by running the report with desformat as delimited. Alternatively You can run the Report in character mode and set the desformat=dflt and destype=file. This will give you a simple text output of the report which can then be printed.
Thanks
Oracle Reports Team. -
CS3 print:output:color:separations problem
I have InDesign CS3 running on XP SP1. When trying to print an .indd file, the separations option under file/print/output/color is grayed out. How do I set this so I can print separations?
Thank you.The AdobePDF virtual printer is a postscript device, so if you have a full version of Acrobat installed you can print seps to PDF, then print the PDF.
-
Setting font and color TextItems
This script is failing to set font, and how can I set font color?; I am new to PS Scripting:
var originalUnit = preferences.rulerUnits
preferences.rulerUnits = Units.INCHES
var docRef = app.documents.add( 11, 17, 300, "Test", NewDocumentMode.CMYK)
MyLayer = docRef.artLayers.add()
MyLayer.kind = LayerKind.TEXT
var myFont = app.fonts.getByName("ArialMT");
// Set the contents of the text layer.
var textItemRef = MyLayer.textItem
textItemRef.font = myFont;
textItemRef.size = UnitValue(36, 'pt');
textItemRef.font = '_Aviano-Regular';
textItemRef.style = "Italic";
textItemRef.contents = "Sample Text";
// Restore original ruler unit setting
app.preferences.rulerUnits = originalUnit
ThanksThe font needs to be the postscript name, this will give you a list of them.
var Dlog =
"dialog{text:'Script Interface',bounds:[100,100,500,270],"+
"FontName:DropDownList{bounds:[30,40,370,60]},"+
"PostScriptName:DropDownList{bounds:[30,100,370,120]},"+
"statictext0:StaticText{bounds:[40,10,200,30] , text:'Font Name'},"+
"statictext1:StaticText{bounds:[40,70,141,87] , text:'Postscript Name'},"+
"button0:Button{bounds:[140,130,240,150] , text:'Ok' }}";
win = new Window(Dlog,"Use the Postscript Name in your script.");
var item;
var item2;
for (var i=0,len=app.fonts.length;i<len;i++) {
item = win.FontName.add ('item', "" + app.fonts[i].name);
item2 = win.PostScriptName.add ('item', "" + app.fonts[i].postScriptName);
win.FontName.selection = win.FontName.items[0] ;
win.PostScriptName.selection = win.PostScriptName.items[0] ;
win.FontName.onChange = function() {
win.PostScriptName.selection = win.PostScriptName.items[parseInt(this.selection)] ;
$.writeln(win.PostScriptName.items[parseInt(this.selection)]);
win.PostScriptName.onChange = function() {
win.FontName.selection = win.FontName.items[parseInt(this.selection)] ;
win.center();
win.show();
Here is your code with colour addded...
var originalUnit = preferences.rulerUnits
preferences.rulerUnits = Units.INCHES
var FillColor = new SolidColor;
FillColor.rgb.hexValue = 'ff0000';
var docRef = app.documents.add( 11, 17, 300, "Test", NewDocumentMode.CMYK)
MyLayer = docRef.artLayers.add()
MyLayer.kind = LayerKind.TEXT
var myFont = "ArialMT";
// Set the contents of the text layer.
var textItemRef = MyLayer.textItem
textItemRef.font = myFont;
textItemRef.size = UnitValue(36, 'pt');
textItemRef.font = myFont;
//textItemRef.style = "Italic";
textItemRef.fauxItalic = true;
textItemRef.contents = "Sample Text";
textItemRef.color = FillColor;
// Restore original ruler unit setting
app.preferences.rulerUnits = originalUnit -
Error in selected text background color
Here example.
The selected text in white is really not good visible selected.
Why flash does not suppor that?
http://lionhead.nl/voorbeelden/flash_selected_text_error/Flash%20text%20error.html
How come there is nowhere to set anything to make this work properly. Like in html does this automatic?
Adobe is this a bug or not help for this?
Regards,
Michielhii
textPane.setSelectionColor(Color.YELLOW);
its not work.bcz i want to highlight the selected text with color of my choice n if i select different text to highlight with different color then previous selected text should remain highlighted ... -
Change text "link" color only in Spry Tab content area
I need to have multiple text link colors in my site for light
and dark background colors. The only regions in my site that have a
white background are in the Spry Tab Panel content area. I can't
figure out how to change the text color for text links in the spry
content only. I tried to add a:link ..etc... to the style sheet,
but it did not effect anything
(I also need to clean my style sheet (s). But that comes
next.
Here
is a Link to a Sample Page in my site
nullHere is the SpryTabbedPanels style sheet in my site. I can't
seem to figure out the changes I need to make to effect the content
area.
I tried to add the following (see .TabbedPanelsContentGroup
below)
a: link {
color: #0099CC;
text-decoration: none
a:active {
color: #99CC33;
text-decoration: none
a:visited {
color: #0099CC;
text-decoration: none
a:hover {
color: #99CC33;
text-decoration: underline
@charset "UTF-8";
/* SpryTabbedPanels.css - version 0.4 - Spry Pre-Release 1.6
/* Copyright (c) 2006. Adobe Systems Incorporated. All rights
reserved. */
/* Horizontal Tabbed Panels
* The default style for a TabbedPanels widget places all tab
buttons
* (left aligned) above the content panel.
/* This is the selector for the main TabbedPanels container.
For our
* default style, this container does not contribute anything
visually,
* but it is floated left to make sure that any floating or
clearing done
* with any of its child elements are contained completely
within the
* TabbedPanels container, to minimize any impact or
undesireable
* interaction with other floated elements on the page that
may be used
* for layout.
* If you want to constrain the width of the TabbedPanels
widget, set a
* width on the TabbedPanels container. By default, the
TabbedPanels widget
* expands horizontally to fill up available space.
* The name of the class ("TabbedPanels") used in this
selector is not
* necessary to make the widget function. You can use any
class name you
* want to style the TabbedPanels container.
.TabbedPanels {
margin: 0px;
float: right;
clear: none;
width: 82%; /* IE Hack to force proper layout when preceded
by a paragraph. (hasLayout Bug)*/
padding-top: 0px;
padding-right: 0px;
padding-bottom: 2px;
padding-left: 0px;
/* This is the selector for the TabGroup. The TabGroup
container houses
* all of the tab buttons for each tabbed panel in the
widget. This container
* does not contribute anything visually to the look of the
widget for our
* default style.
* The name of the class ("TabbedPanelsTabGroup") used in
this selector is not
* necessary to make the widget function. You can use any
class name you
* want to style the TabGroup container.
.TabbedPanelsTabGroup {
margin: 0px;
padding: 0px;
/* This is the selector for the TabbedPanelsTab. This
container houses
* the title for the panel. This is also the tab "button"
that the user clicks
* on to activate the corresponding content panel so that it
appears on top
* of the other tabbed panels contained in the widget.
* For our default style, each tab is positioned relatively 1
pixel down from
* where it wold normally render. This allows each tab to
overlap the content
* panel that renders below it. Each tab is rendered with a 1
pixel bottom
* border that has a color that matches the top border of the
current content
* panel. This gives the appearance that the tab is being
drawn behind the
* content panel.
* The name of the class ("TabbedPanelsTab") used in this
selector is not
* necessary to make the widget function. You can use any
class name you want
* to style this tab container.
.TabbedPanelsTab {
position: relative;
top: 1px;
float: left;
padding: 4px 10px;
margin: 0px 1px 0px 0px;
background-color: #CCCC99;
list-style: none;
border-left: solid 1px #CCC;
border-bottom: solid 1px #999;
border-top: solid 1px #999;
border-right: solid 1px #999;
-moz-user-select: none;
-khtml-user-select: none;
cursor: pointer;
font-family: sans-serif;
font-size: 12px;
font-weight: bold;
color: #000000;
/* This selector is an example of how to change the appearnce
of a tab button
* container as the mouse enters it. The class
"TabbedPanelsTabHover" is
* programatically added and removed from the tab element as
the mouse enters
* and exits the container.
.TabbedPanelsTabHover {
background-color: #99CC33;
color: #000000;
/* This selector is an example of how to change the
appearance of a tab button
* container after the user has clicked on it to activate a
content panel.
* The class "TabbedPanelsTabSelected" is programatically
added and removed
* from the tab element as the user clicks on the tab button
containers in
* the widget.
* As mentioned above, for our default style, tab buttons are
positioned
* 1 pixel down from where it would normally render. When the
tab button is
* selected, we change its bottom border to match the
background color of the
* content panel so that it looks like the tab is part of the
content panel.
.TabbedPanelsTabSelected {
background-color: #FFFFFF;
border-bottom: 1px solid #EEE;
color: #000000;
/* This selector is an example of how to make a link inside
of a tab button
* look like normal text. Users may want to use links inside
of a tab button
* so that when it gets focus, the text *inside* the tab
button gets a focus
* ring around it, instead of the focus ring around the
entire tab.
.TabbedPanelsTab a {
color: black;
text-decoration: none;
/* This is the selector for the ContentGroup. The
ContentGroup container houses
* all of the content panels for each tabbed panel in the
widget. For our
* default style, this container provides the background
color and borders that
* surround the content.
* The name of the class ("TabbedPanelsContentGroup") used in
this selector is
* not necessary to make the widget function. You can use any
class name you
* want to style the ContentGroup container.
.TabbedPanelsContentGroup {
clear: both;
border-left: solid 1px #CCC;
border-bottom: solid 1px #CCC;
border-top: solid 1px #999;
border-right: solid 1px #999;
background-color: #FFFFFF;
color: #000000;
a: link {
color: #0099CC;
text-decoration: none
a:active {
color: #99CC33;
text-decoration: none
a:visited {
color: #0099CC;
text-decoration: none
a:hover {
color: #99CC33;
text-decoration: underline
/* This is the selector for the Content panel. The Content
panel holds the
* content for a single tabbed panel. For our default style,
this container
* provides some padding, so that the content is not pushed
up against the
* widget borders.
* The name of the class ("TabbedPanelsContent") used in this
selector is
* not necessary to make the widget function. You can use any
class name you
* want to style the Content container.
.TabbedPanelsContent {
padding: 4px;
/* This selector is an example of how to change the appearnce
of the currently
* active container panel. The class
"TabbedPanelsContentVisible" is
* programatically added and removed from the content element
as the panel
* is activated/deactivated.
.TabbedPanelsContentVisible {
/* Vertical Tabbed Panels
* The following rules override some of the default rules
above so that the
* TabbedPanels widget renders with its tab buttons along the
left side of
* the currently active content panel.
* With the rules defined below, the only change that will
have to be made
* to switch a horizontal tabbed panels widget to a vertical
tabbed panels
* widget, is to use the "VTabbedPanels" class on the
top-level widget
* container element, instead of "TabbedPanels".
/* This selector floats the TabGroup so that the tab buttons
it contains
* render to the left of the active content panel. A border
is drawn around
* the group container to make it look like a list container.
.VTabbedPanels .TabbedPanelsTabGroup {
float: left;
width: 10em;
height: 20em;
background-color: #CCCC99;
position: relative;
border-top: solid 1px #999;
border-right: solid 1px #999;
border-left: solid 1px #CCC;
border-bottom: solid 1px #CCC;
/* This selector disables the float property that is placed
on each tab button
* by the default TabbedPanelsTab selector rule above. It
also draws a bottom
* border for the tab. The tab button will get its left and
right border from
* the TabGroup, and its top border from the TabGroup or tab
button above it.
.VTabbedPanels .TabbedPanelsTab {
float: none;
margin: 0px;
border-top: none;
border-left: none;
border-right: none;
/* This selector disables the float property that is placed
on each tab button
* by the default TabbedPanelsTab selector rule above. It
also draws a bottom
* border for the tab. The tab button will get its left and
right border from
* the TabGroup, and its top border from the TabGroup or tab
button above it.
.VTabbedPanels .TabbedPanelsTabSelected {
background-color: #CCCC99;
border-bottom: solid 1px #999;
/* This selector floats the content panels for the widget so
that they
* render to the right of the tabbed buttons.
.VTabbedPanels .TabbedPanelsContentGroup {
clear: none;
float: left;
padding: 0px;
width: 30em;
height: 20em; -
Having problems setting text to a JLabel!!
HI *.*,
i'm having problems setting text to a JLabel.
i have a JFrame with a JPanels and on the JPanel i have a JLabel.
I have a text field wihich is used to input text.
So, i'm using textField.getText() to read the text of the text field and setText() to write it to the Label.
but setText() isn't displaying the text on the label.
I'm using NetBeans as an ide
Does anyone have any ideas??Here is some code
public class AddClass extends JFrame implements ActionListener{
public AddClass() {
initComponents();
}//end of 1st constructor with initComp
//initComponents
private void initComponents() {
getContentPane().setLayout(new java.awt.GridLayout(3, 1));
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
prodPanel.setLayout(new java.awt.GridLayout(1, 3));
prodPanel.setBackground(new java.awt.Color(255, 255, 255));
prodPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Production", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 1, 12)));
westPanel.setLayout(new java.awt.GridLayout(6, 0));
westPanel.setBackground(new java.awt.Color(255, 255, 255));
westPanel.add(westLab1);
westLab2.setBackground(new java.awt.Color(255, 255, 255));
westLab2.setFont(new java.awt.Font("Arial", 1, 36));
westLab2.setForeground(new java.awt.Color(0, 204, 0));
westLab2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
westLab2.setIcon(new javax.swing.ImageIcon("C:\\icontexto-webdev-bullet-048x048.png"));
westLab2.setText("MQ 35");
westLab2.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
westLab2.setIconTextGap(10);
westLab2.setInheritsPopupMenu(false);
westPanel.add(westLab2);
westPanel.add(westLab3);
westPanel.add(westLab4);
westPanel.add(westLab5);
prodPanel.add(westPanel);
setJMenuBar(menuBar);
setTitle("Broker Monitor");
this.setSize(700, 700);
BrokerWindowCloser brkWindowCloser = new BrokerWindowCloser();
this.addWindowListener(brkWindowCloser);
pack();
// setVisible(true);
}//end of initComponents
public AddClass(String st) {
initComponents();
westLab6.setVisible(true);
// System.out.println("in broker " + st);
westLab6.setText(st);
System.out.println(st);
westLab6.setBackground(new java.awt.Color(255, 255, 255));
westLab6.setFont(new java.awt.Font("Arial", 1, 36));
westLab6.setForeground(new java.awt.Color(0, 204, 0));
westLab6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
westLab6.setIcon(new javax.swing.ImageIcon("C:\\PNG\\icontexto-webdev-bullet-048x048.png"));
westLab6.setEnabled(true);
westLab6.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
westLab6.setIconTextGap(15);
westLab6.setInheritsPopupMenu(false);
westPanel.add(westLab6);
// this.validate();
westPanel.repaint();
public void actionPerformed(ActionEvent ae) {
Object source = ae.getSource();
if(source == exitMI) {
System.exit(0);
}//end of if exitMI
if(source == addMI){
new AddMQ_1_1();
if(source == removeMI){
new RemoveMQ_1();
}//end of actionPerformed
class BrokerWindowCloser extends WindowAdapter {
public void windowClosing(WindowEvent we) {
}//end of windowcloserclass
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new AddClass().setVisible(true);
}//end of main
}// End of variables declaration
public void addButtonActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
Object source = evt.getSource();
if(source == addButton){
System.out.println("here");
String st = mqNameJTF.getText();
Broker1 br = new Broker1(st);
AddClass adc = new AddClass(st);
this.repaint();
this.dispose();
}//end of if addButton
}//end addButtonActionPerformed
Maybe you are looking for
-
How can I make the font bigger in Creative Cloud?
Since I saw no other posts come up in the search, I need to know if I can make the Creative Cloud app itself have a bigger font. I finally found where someone had shown how to do it for Photoshop. (This is due to the fact I am on a Toshiba laptop w
-
Address book - finding a contact's associated group
Hello! Question for the community. I'm going through my address book at the minute. I've got the latest version of Lion and everything's all pretty much up to date. When selecting a contact, is there an easy way to see which group I have assigned a p
-
Transmission-cli webui startup delay - transmission-cli 2.82-1 - x64
For some reason there is a ~2 minute and 15 second delay minute delay when I start transmission before the webui becomes available. Here's the output of systemctl status transmission -l: transmission.service - Transmission BitTorrent Daemon Loaded:
-
Oracle 11 + unixODBC - cannot find valid attributes for odbc.ini
hello. i am trying to write asterisk's cdr into Oracle Database 11g Release 11.2.0.3.0 - 64bit Production. sqlplus and isql works fine, but when * writes cdr, it gives an error. i've enabled odbc tracing and have received that: /var/log/odbc.log [ODB
-
GL Balances on Daily Basis/ Per Day
Hi Any One Know How Get Gl Balances on Daily Basis. I Mean Per Day. We have Requirement for Daily P & L. I have searched on every segment. but not found any answer of this question. Is there any development. Please Suggest Mann