How can i set background color of child window in jdk 1.6
Hi friends i hv devoloped simple java app using javax.swing.JFrame in which on click button event i open new child window using JFrame to draw some image.
i set childs background color as setBackground(Color.lightGray);
but the problem is,child window takse its background color same as its parent window.(i.e. main window's color or desktop ).i get this problem in jdk 1.6.but it is working fine in jdk 1.5.
how can i set background color of child window in jdk 1.6 .
plz solve my problem.
thanks in advanced.
Mo,
Call me old fassioned, but I simply refuse to demangle SMS speak.
You've got a whole keyboard, so learn how to use it.
Keith.
Similar Messages
-
How can a text background color be saved?
How can a text background color be saved in TextEdit?
Care to share which OS you are using?
-
How can i control background colors with items (registry.dat)
Hello Evry one.....
plzzzzzzzzz help.
how can i control background colors with display items
in registry.dat
like app.ui.requiredFieldvABGCOLOR=255.0.0
how can i control background colors with others items ????
thanks.The iPhone has a "remote" app that lets you control Keynote on a Mac, but not on another iOS device (iPhone/iPad/iPod Touch).
There are some apps that let you control limited content on another iOS device - but the content has to be within the app. You might check out SyncPad - perhaps you can import the presentation into it and then control it on the iPad. -
[SOLVED]Can't set background color for Knotes
Today I'm testing KDE 4.9.5 and the app Knotes start well, can add new notes, save them, etc, but it is not changing the background color of the notes...
Here's the app log:
╒══[ /home/jairo ]══════╕
└> knotes
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.
knotes(5896) ResourceLocal::ResourceLocal: ResourceLocal::ResourceLocal()
knotes(5896) KNotesResourceManager::load: "Opening resource Notes"
knotes(5896) KNotesLegacy::convertKNotes1Config: The file " "/home/jairo/.kde4/share/apps/knotes/notes/libkcal-122400669.545" " lacks version information but is not a valid KNotes 1 config file either!
╒══[ /home/jairo ]══════╕
└> knotes(5896)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer a qt_plugin_instance function.
knotes(5896)/kdecore (KLibrary) kde3Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer an "init_kcm_knote" function.
knotes(5896)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer a qt_plugin_instance function.
knotes(5896)/kdecore (KLibrary) kde3Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer an "init_kcm_knote" function.
knotes(5896)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer a qt_plugin_instance function.
knotes(5896)/kdecore (KLibrary) kde3Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer an "init_kcm_knote" function.
knotes(5896)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer a qt_plugin_instance function.
knotes(5896)/kdecore (KLibrary) kde3Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer an "init_kcm_knote" function.
knotes(5896)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer a qt_plugin_instance function.
knotes(5896)/kdecore (KLibrary) kde3Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer an "init_kcm_knote" function.
knotes(5896)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer a qt_plugin_instance function.
knotes(5896)/kdecore (KLibrary) kde3Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer an "init_kcm_knote" function.
knotes(5896)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer a qt_plugin_instance function.
knotes(5896)/kdecore (KLibrary) kde3Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer an "init_kcm_knote" function.
knotes(5896)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer a qt_plugin_instance function.
knotes(5896)/kdecore (KLibrary) kde3Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer an "init_kcm_knote" function.
knotes(5896)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer a qt_plugin_instance function.
knotes(5896)/kdecore (KLibrary) kde3Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer an "init_kcm_knote" function.
knotes(5896)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer a qt_plugin_instance function.
knotes(5896)/kdecore (KLibrary) kde3Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer an "init_kcm_knote" function.
I'm googling but can not find anything concrete
Any help?
Thank in advance
EDIT:
It was my mistake, the truth is that this application can change the background color, but does so in a cumbersome way.
Each note can change the background color (individually) and to make it globally, you must remove all existing notes and the new notes then take the chosen color :S ...anyway.... issue solved
Last edited by JohnnyDeacon (2013-02-01 16:02:47)bmishoe wrote:But all to no avail...I can click on the control and it changes from red to green, like I originally defined in the control. Why can't I programatically change the color?
It is probably more likely that your imported pictures are just covering the background of the button.
A picture ring is the better way to go anyways.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
How can I add background color to NSView?
In NSView how can I add a background color?
A Google search for nsview background color turned up many results, including the following Stack Overflow questions:
Setting the background color of an NSView
Best way to change the background color for an NSView -
How can I correct background color and graphics in Firefox?
For some reason some background color images and fonts do not appear in Firefox. Other browsers are mostly fine. I've tried most common fixes to no avail. I'm running Windows 7 Ultimate.
I've attached two screenshots. One is Firefox viewing Google. The other one may be relevant because I can't change the color of fonts in Word and other Office docs.
Anyway, I'm stumped on the Firefox side. The browser has been uninstalled, re installed, and refreshed.Make sure that you haven't enabled a High Contrast theme in the Windows/Mac Accessibility settings.
*http://windows.microsoft.com/en-us/windows7/turn-on-high-contrast
Make sure that you allow pages to choose their own colors.
*Tools > Options > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
Note that these settings affect background images.
See also:
*http://kb.mozillazine.org/Website_colors_are_wrong -
How can I change background color for a text field
Hi I tried this
style="BACKGROUND-COLOR:#00FFFF"
working fine in IE
but not working in Netscape.. any other way to set the background color?Netscape 4.x does not support this feature. Only Netscape 6.x does.
-
How can I set the color for a textfield
Hi all,
I use a textfield and I want to set the color for characters which are typed in the textfield. I didn't find anywhere a solution for this. Do you know how I should implement this?
ThanksNot possible. If you want this, you'll need to make a custonItem that implements this.
-
How do I set background color of cell using JTable?
Hello all!
I have a question on the use of JTables. I am using a JDialog consisting of a JTable and a number of buttons to insert and to select OK or cancel. Everything is working perfectly, but I now must add editing capabilities to prevent invalid data being used in a SQL query to update or insert rows.
So far I can't figure out how to get at a cell to set the background to red if the user inputs a Date incorrectly. Upon setValueAt(), I take this value and check for standard format errors. I hope to someday convert the column altogether to a Data object (or some form since Date is deprecated):-) For the time being, I know when an error occurs, but don't have the foggiest idea how to render the error (set backround to red).
I need to give you more info too, since the way we do things is to make it as complicated as possible for job security and to impress the newbies(or scare them back to COBOL). When I setValueAt(), I have a DefaultDataElement object that houses everything for a given column in DB2. It has column name, length, data type, is it new, original value, current value, etc. If one doesn't exist, then I create one. After all said and done, I parse thru these elements and build my update/insert query and then execute the query.
The event starts as soon as the user presses the OK button. But, if a date cell contains an invalid date, I need to halt processing (which I've done) and somehow let the user know which cell was invalid. We consider our users dumb (they really aren't, but the assumption is made), so I can't just say "error occurred in table. Verify data and try again". That won't work:-) Gotta be able to show them what cell is bad.
Any ideas?
Thanks,
PatrickI finally figured it out. I was always close, but it wasn't until late yesterday that the light bulb came on. I was setting the background on the component in getTableCellEditorComponent() by grabbing the super.getTableCellEditorComponent(). The problem was all this was located in an editor, not renderer. So what happened was as I edited the cell the check would be performed then, not as focus was lost. When focus was lost, the red background went back to normal.
I ripped the code out and made a custom renderer and got closer. Problem was the whole column had a red background. Even specifying the row and column in getTableCellRendererComponent didn't apply just to that cell. That row and column is only for obtaining the data in the cell, but anything affecting the component will affect the column, since I added the renderer to my TableColumn:-) I need to add error logic to my model and when an error occurs, set a boolean flag in a 2 dimensional array where the row and column is used to get to it from the renderer.
Thanks for the help!!! -
Can't set background color of boolean
I'm trying my hand at a custom control. It's a simple boolean 'arrow' indicator. I started by placing a classic "flat square button", then imported the 'false' and 'true' versions of the arrow, which correspond to red and green.
However, I want a 3rd state (off). To accomplish this, I tried to use a property node, but it doesn't seem to work. I created a simple VI to test with, I've pasted the image below...I know the event structure is being executed, because I tested that by changing the boolean text inside the event structure. To prove it can be done, I set every value of the array to blue, just to make sure I wasn't missing something about the true/false/t->f/f->t arrangement of the array.
But all to no avail...I can click on the control and it changes from red to green, like I originally defined in the control. Why can't I programatically change the color? thanks in advancebmishoe wrote:But all to no avail...I can click on the control and it changes from red to green, like I originally defined in the control. Why can't I programatically change the color?
It is probably more likely that your imported pictures are just covering the background of the button.
A picture ring is the better way to go anyways.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
How can I change background color of the cover in ibooks Author?
I'm trying to change the color of the background of the cover of the iBook I'm creating. I can't find how to.
Please help.
GabyGaby -
Click on Book Title, unlock it, delete.
Select a square graphic, turn Object causes wrap off.
Make the square any color you like.
Enlarge it to cover the page.
Send to back. Lock it down.
That's it.
Now go here and download this free book, Publishing With iBooks Author, from O'Reilly press.
http://shop.oreilly.com/product/0636920025597.do?sortby=publicationDate
- Fabe -
How can I set button colors from xml file data?
I am reading an xml file to create a group of buttons. I am
also using repeater to create the group of buttons.
I am getting the buttons created, but am unable to set the
fill color properly. I keep getting the error "Implicit coercion of
a value of type String to an unrelated type Array" if I try to plug
in r.currentItem.value, even when I used an Actionscript function
to convert from a String to an array of 2 uints. Is there a simple
type casting solution to this I'm just not getting?
Any help would be greatly appreciated!
The xml file has the following format:
<colors>
<color>
<name>Canteloupe</name>
<value>0xFFCC66</value>
</color>
<color>
<name>Banana</name>
<value>0xFFFF66</value>
</color>
<color>
<name>Lemon</name>
<value>0xFFFF00</value>
</color>
<color>
<name>Honeydew</name>
<value>0xCCFF66</value>
</color>
</colors>
The code I have so far is:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
initialize="colors.send()" layout="absolute">
<mx:HTTPService id="colors"
url="assets/colors_standard.xml" resultFormat="e4x"/>
<mx:XMLListCollection id="xlc_colors"
source="{colors.lastResult.color}"/>
<mx:TabNavigator left="0" top="0" right="0"
bottom="0">
<mx:Canvas label="Tab 1" width="100%" height="100%">
<mx:Accordion width="200" left="0" top="0" bottom="0">
<mx:Canvas label="Colors" width="100%" height="100%">
<mx:Label text="Current Color Selection" left="10"
right="10" top="10" height="20" fontWeight="bold"/>
<mx:Button label="Update Colors" left="10" right="10"
top="227" height="22" id="button_colors_update"/>
<mx:Canvas height="189" left="10" right="10" top="30"
borderStyle="outset" backgroundColor="#e9e9e9">
<mx:Tile id="tile_standard" direction="horizontal"
tileWidth="25" tileHeight="25" horizontalAlign="center"
verticalAlign="middle" borderStyle="outset" left="10" right="10"
top="10" height="134" backgroundColor="#ffffff">
<mx:Repeater id="r" dataProvider="{xlc_colors}">
<mx:Button toolTip="{r.currentItem.name}" height="15"
width="15" x="10" y="10"/>
</mx:Repeater>
</mx:Tile>
<mx:Button label="Additional Colors"
id="button_colors_online" height="22" left="10" right="10"
bottom="10"/>
</mx:Canvas>
</mx:Canvas>
</mx:Accordion>
</mx:Canvas>
</mx:TabNavigator>
</mx:Application>Thanks atta707!
If I send an array of 2 uints via a function call that
converts from String to Number to uint in an Actionscript function
and try to feed that into fillColors via:
<mx:Script>
<![CDATA[
public function fillcolors (_colorvalue:String):uint {
return uint(Number(_colorvalue));
]]>
</mx:Script>
<mx:Button height="15" width="15"
toolTip="{r.currentItem.name}" x="10" y="10"
fillColors="[fillcolors({r.currentItem.value}),fillcolors({r.currentItem.value})]"
I still get the "Implicit coercion of a value of type String
to an unrelated type Array." on the line that creates the button. I
have tried returning an Array of two uints with the Actionscript
funtion and get the same result.
<mx:Script>
<![CDATA[
public function fillcolors (_colorvalue:String):Array {
return new Array(uint(Number(_colorvalue)),
uint(Number(_colorvalue)));
]]>
</mx:Script>
<mx:Button toolTip="{r.currentItem.name}" height="15"
width="15" x="10" y="10"
fillColors="[fillcolors({r.currentItem.value})]"/>
Am I mistaken in my conversion of r.currentItem.value to
fillColors as arguments? Sorry about the newbie question - the
error I get makes me think it is a type conversion issue, but I
can't seem to get this to work/compile. If fillColors is expecting
an Array, should the Actionscript function returning an Array at
least get this to compile? -
How can I set background for JTextArea
plz help me!
textArea.setBackground(Color.black);What's the problem? If you need an image, you could try layering the JTextArea over a JLabel, and have the background of the JTextArea transparent. It might work.
-
How can I change background color in parameter box
Hi all,
I would like to change back ground color of parameters box from blue to other color.
where i have change?
see attached screenshot.
please help me
Thanks in advance for your supportHello,
I don't think this is documented in BIP's manuals.
All you will find regarding "changing the colour" is related to conditional formatting
see section 3.8.3.5 About Conditional Formats from Fusion Middleware Report Designer's Guide for Oracle Business Intelligence Publisher
http://docs.oracle.com/cd/E28280_01/bi.1111/e22254/create_lay_tmpl.htm#cond_format
If you open a service request to support we can open an enhancement request with Development.
If this will be approved, you can have this option implemented in future versions.
Bogdan -
FF31: How can I set a color for the empty page opened by new tab ?
Currently my new tabs open an empty, white colored page.
Is it possible to give this page a color of my choosing, say sky blue ?
If so, how ?Try:
*Customize about:newtab: https://addons.mozilla.org/firefox/addon/customize-aboutnewtab/
Maybe you are looking for
-
My iPad Air randomly restarts itself at least once a day. Any help?
My ipad keeps crashing and restarting itself and I'm not sure wether to take it into apple or how to fix it?
-
I upgraded to Mountain Lion and now I'm having trouble with Time Machine. It appears that since the upgrade Time Machine is not recognizing the external hard drive. When I go to Time Machine and select Disk for the current HD I am left with one of tw
-
How to find out whether the transaction logs are being truncated or not
Hi, We are using Veritas Backup tool for Backups and restores on our MS SQL 2000. One of our Veritas Tech has disabled the Truncation of Transaction Log Backup using the Job setup in Veritas. We want to confirm whether the Truncation is happening or
-
Approvals in Move Order.
Hi, In the Move Order screen, after saving and approving the Move Order, a notification will be sent to the Planner to approve or reject the Move Order, when its approved it will be sent to the Transact Move Order screen so the items could be issued.
-
Problem in installing adobe premiere elements 12
Hi Everyone, I just purchased Adobe premiere elements 12. when I tried to install it on my Mac, when the installer requested to enter serial number I was surprised that it requires 24 digits serial number while on the back of the DVD I bought there i