Can i set the label to be a different colour in an applet?
Hi,
i have written an applet, and am now adding a panel so that i can
give a guide to what the components on the applet are. i am using gridlayout as a layout manager for the panel, (0,2) (it is a 2 row layout). i have two labels in each of the columms but in the second column i want to change the colour of the text. can i do this with a label or do i have to use something else?
thanx for any help in advance
regards
vanessa
its still not working.
i have the following:
panelColorCode.setForeground(Color.black);
panelColorCode.setLayout(new Gridlayout(0, 2));
panelColorCode.setBackground(Color.white);
....add(new Label("Colour code"));
....add(new Label.. these are both white backgrounds
....add(new Label... ditto
panelColorCode.setBackground(Color.gray);
....add(new Label....
this last line sets the whole panel to gray, but i just want the last label to be greyed out. is this possible, am i being dim?
thanks again for help
Similar Messages
-
Can I set the text color in a Label?
Hi everyone ~
Can I set the font color in PP? I only found that there is a "setBackground".. but I want to set the color within a Label.
Thanks!
GaryFixed it!
There was a global style for s|Label and since the Spark button uses one of these for the text, that was it. -
I would like to be able to set the label color as can be done with tracks, and clips. At the moment, all the submix tracks are the default green.
Is there a way to set the label color?
In the manual, there is only a mention that the submix tracks have a color label, but no mention on how to change it, and cntl-click does not review a pop-up menu, and using the "Multitrack > Track Color" menu, has no effect.
To me, is seems if a track has a color label, I should be able to change it...
Any help would be greatly appreciated.
TIAits still not working.
i have the following:
panelColorCode.setForeground(Color.black);
panelColorCode.setLayout(new Gridlayout(0, 2));
panelColorCode.setBackground(Color.white);
....add(new Label("Colour code"));
....add(new Label.. these are both white backgrounds
....add(new Label... ditto
panelColorCode.setBackground(Color.gray);
....add(new Label....
this last line sets the whole panel to gray, but i just want the last label to be greyed out. is this possible, am i being dim?
thanks again for help -
How can i set the space between two button?
Hello,
I have
<mx:HBox>
<mx:Button label="one" />
<mx:Button label="two" />
</mx:HBox>
how can i set the distance between this two compotents?
Thanksquote:
Originally posted by:
robinbouc77
Hi,
you can use horizontalGap property on HBox to change the
space between your buttons. I think the default value is 6. You can
also use <mx:Spacer/>, but changing the gap on HBox is
probably the cleanest way ;)
C U
perfect!!! works fine -
HELP !!! How can I set the size of each component separately
Please tell me, when adding components (a mix of
labels , buttons etc.) on a container (swing), how can I set the size
of each component separately.
for example:
the code here has a mix of button and a grid that is actually another JPanel. Its a part of a bigger
program. When running the grid is cut (not seen in its full size).
So, please try to anser also about the specific acse of frame contining another frame in it , and the interior should be right sized.
The relevant part of the code:
=========================================
public class Reversi extends JFrame {
public static void main(String[] args) {
Reversi ourGame = new Reversi();
public Reversi() {
super("Grid Reversi");
setSize(new Dimension(300, 300));
setDefaultCloseOperation(EXIT_ON_CLOSE);
Grid g = new Grid(); // the grid was built at another part..
ReversiGame ourGame = new ReversiGame();
JButton b;
JFrame f = new JFrame("Hello Java");
f.setSize(new Dimension(300, 300));
f.setDefaultCloseOperation(EXIT_ON_CLOSE);
Container c = f.getContentPane();
c.add(g,BorderLayout.NORTH );
c.add(b = new JButton("Hola"), BorderLayout.CENTER);
//f.pack();
f.show();BorderLayout chooses the sizes of each of the components added to it. Choose a different layout manager (or set the placement/size manually with a 'null' layout)
http://java.sun.com/developer/onlineTraining/GUI/AWTLayoutMgr/shortcourse.html -
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 -
I have 2 ipod touches on the same apple ID/account. My daughter uses one, and I use the other. Can I set facetime up on each with different access email addresses (so that we don't get each others calls?)?
I recommend that you
Create a NEW account/ID for her using these instructions. Make sure you follow the instructions. Many do not and if you do not you will not get the None option. You must use an email address that you have not used with Apple before.
Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
Use the new ID on her iPod but only for:
Settings>Messages>Send and Receive
Settings>FaceTime
Settings>GameCenter
and Settings>iCloud if you want her to have separate Contacts Calendar and some other things.
Continue to use the same/common Apple ID for Settings>iTunes and App stores so you can share purchases. -
How can I set the page that will open, when I open a new tab, to be the same as the homepage?
An app changed it to some other search engine, before installing the app, I the tab that would open was the homepage I set.
In my case it is Google, and I want my new tabs to open on Google like they did before the installation.
thank you,
Asaf Privman.You can middle-click or Ctrl left-click the Home button on the Navigation toolbar to open the Home page in a new tab.
You can look at one of these extensions:
* NewTabURL : https://addons.mozilla.org/firefox/addon/newtaburl/
* New Tab Homepage : https://addons.mozilla.org/firefox/addon/new-tab-homepage/ -
Subject:
Please help , I have iPhone 4S and have updated to iso6, don't know if that has anything to do with the problem but I can't set the year on date and time to the correct year, it automatically goes to 2578 ? Plz helpSettings>General>International.
Set the calendar to "Gregorian". You have it set to Buddhist. -
Can i set the content of input text in a form layout in the uix page center
Hi
i have a simple question, how can i set the content of an input text in a form layout in the .uix page center?
i saw in the page properties but i didn't found.
thank you for your help.
Edited by: Islem on 19 déc. 2008 00:22Sirrick,
If I understand your question correctly, you want to programmatically set how many array elements (clusters) to show. You can do this with the Array properties: Number of Rows and Number of Columns. Please see the attached VI.
Zvezdana S.
National Instruments
Attachments:
Array_Elements.vi 20 KB -
== Issue
==
I have another kind of problem with Firefox
== Description
==
I have various formatting issues:
a. When I open a msg from my web browser (Cablevision), the font is sooo small I need a magnifier to read it. How can I set the font to a size I can easily read?
b. When I forward msgs, the text gets all distorted and I need to clean it up (some symbols, lots of spaces between words). How can this be fixed?
c. When I want to tell someone about a website, I cannot type the URL in so that all they have to do is click on it. How can this be fixed?
d. When I open messages, the text opens in a small window and covers the "Show Images" button. Why?
== This happened
==
Every time Firefox opened
== Ever since I started using Firefox (a few months ago)
==
'''Troubleshooting information'''
I didn't find any results
== Firefox version
==
3.6.3
== Operating system
==
Windows 7
== User Agent
==
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
== Plugins installed
==
*-nphpclipbook
*Office Plugin for Netscape Navigator
*The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
*Default Plug-in
*Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
*NPRuntime Script Plug-in Library for Java(TM) Deploy
*The Hulu Desktop Plugin allows Hulu.com to integrate with the Hulu Desktop application.
*Shockwave Flash 10.0 r45
*Adobe Shockwave for Director Netscape plug-in, version 11.5
*iTunes Detector Plug-in
*3.0.40624.0
*NPWLPG
*Next Generation Java Plug-in 1.6.0_20 for Mozilla browsersThe text editor is the text area that you use on the webmail (Yahoo, Hotmail) website to create a new mail.
You can compare that with the ''Post new message'' text area that you use to create a new post on this forum.
Just above the text area that you use to enter the message text there is usually a button bar with buttons that allows some text formatting like Bold and Italic and can also include a button to make a clickable hyperlink.
Check the tooltip of each button by hovering with the mouse over each button.
Make Link - https://addons.mozilla.org/firefox/addon/142 -
How can I set the language when sending an e-mail with attachment - 'Html'?
"Character Broken"
I made an ALV program, and this convert to "HTML', and send an e-mail with this.
Used Process is:
DATA: gt_abaplist LIKE TABLE OF abaplist,
gt_html LIKE TABLE OF w3html,
doc_chng LIKE sodocchgi1,
objpack LIKE TABLE OF sopcklsti1 WITH HEADER LINE,
objhead LIKE TABLE OF solisti1 WITH HEADER LINE,
mail LIKE TABLE OF solisti1 WITH HEADER LINE,
reclist LIKE TABLE OF somlreci1 WITH HEADER LINE,
lv_line TYPE i.
DELETE FROM MEMORY ID '%_LIST'.
SUBMIT z_template
AND RETURN EXPORTING LIST TO MEMORY.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = gt_abaplist
EXCEPTIONS
not_found = 1
OTHERS = 2.
CALL FUNCTION 'WWW_HTML_FROM_LISTOBJECT'
TABLES
html = gt_html
listobject = gt_abaplist.
doc_chng-obj_name = 'URGENT'.
doc_chng-sensitivty = 'O'.
doc_chng-obj_descr = ' '.
doc_chng-obj_langu = '3'.
objhead-line = ' '.
APPEND objhead.
mail[] = gt_html[].
DESCRIBE TABLE mail LINES lv_line.
CLEAR: objpack.
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = lv_line.
objpack-doc_type = 'htm'.
objpack-obj_descr = ' '.
objpack-doc_size = lv_line * 255.
objpack-obj_langu = '3'.
APPEND objpack.
CLEAR: reclist.
reclist-receiver = 'e-mail address'.
reclist-rec_type = 'U'.
APPEND reclist.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = objpack
object_header = objhead
contents_bin = mail
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
SUBMIT rsconn01 AND RETURN.
I want to show this by "Japanese".
But the character is broken.
LIke This:
u01D1u072C u0205| u0205u072C u0508 QC u04B90m
How can I set the language? How can I solve "Charancter Broken" ?
Plesse, let me know.
Thank you so much.
Edited by: Jaime White 999 on Nov 21, 2011 8:45 AM
Edited by: Jaime White 999 on Nov 21, 2011 8:46 AMHi Jaime,
Are you saying, you are getting junk characters in the email attachment? Then pls check the following. Since you want to send Japanese fonts, please pass language 'J' in both objpack-obj_langu = '3' & doc_chng-obj_langu = '3' instead of '3' please replace it with 'J'.
Another thing which you may have to check is the SCOT device type. As I understand from my basis colleague, this may also affect your attachment fonts since the emails are sent through SCOT. Go to transaction SCOT-> Settings-> Device types for format conversion. Check whether wrong device type is defined for Japanese there. Hope this helps
Regards,
Gokul -
How can I set the data binding between Web Dynpro & Database table
Dear friend,
I am a beginner of Web Dynpro. I want to develop my simple project like these:
1. Create my own database table via Dictionary Project such as TAB_USER and have 3 fields: USER_ID, USER_NAME, USER_POSITION and I have already deployed & archived it.
2. Create my own Web Dynpro Project, and create the input fields as User ID, User name, User position and icon 'Save' on the selection screen and I have deployed it already.
For the process, I want to input data at the screen and save the data in the table, please give me the guide line like these:
1. How can I set the data binding between Web Dynpro and Database table ?
2. Are there any nescessary steps that I will concern for this case?
Sorry if my question is simple, I had try to find solution myself, but it not found
Thanks in advances,
SeMsHi,
You can write your own connection class for establishing the connection with DB.
Ex:
public class ConnectionClass {
static Connection con = null;
public static Connection getConnection() {
try{
Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("jdbc/TSPAGE");
con = ds.getConnection();
return con;
}catch(Exception e){
return null;
You can place the above class file in src folder and you can use this class in webdynpro.
You can have another UserInfo class for reading and writing the data into the DB .
Regards, Anilkumar
PS : Refer
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/simple java bean generator for database.pdf
Message was edited by: Anilkumar Vippagunta -
In EIC, how can we set the SLA of a subcategory to none SLA-related.
Hi Experts,
This is our current setup in EIC...
Category 0501 has an SLA of 8 hours. Subcategory 050101 has to be none SLA relevant. But if we put zero or blank to the SLA Target Value field, it will automatically have a due date defaulted to today. If we will not indicate 050101 on the configuration, it will have the 0501 SLA of 8 hours.
How can we set the 050101 SLA off?
The path: IMG --> Personnel Management --> Employee Interaction Center (EIC) --> Interaction Center Web-Client --> Application Functions --> Activity --> Service Level Agreement (SLA) --> Define SLV Properties
Thanks in advance.Hi Harish and Jarret.
@Harish, I already tried unchecking the checkbox of the Display field but the problem with this is, it will also apply for the rest of the categories. It should only be for this specific subcategory.
@Jarret, apology, but can you explain to me further about your instruction/advise? I get the feeling that we're on to something with your advise but I didn't quite get it on how to exactly.
1. You should build the SLA from the lowest level up...
-I'm not really sure how, actually.
2. If you have 8 subcats... will put the 8 entries in the table...
-where do I put the 1 subcat? This is because if I don't put that "No SLA" subcat in the table, the due date of that specific subcat will automatically appear todayu2019s date.
Thanks for both of you. I really appreciate your help. -
Can we set the dynamic data source when using getReportParameters() ?
Hello!
I have a report where one of its parameters refers to a list of values (LOVs). This list of values is an SQL Query type. When the data source used in the report is defined in the BI Publisher server, I'm able to get the report parameters using the getReportParameters() function in my application. However, if the data source is not defined the function throws an exception, which is understandable.
I decided to dynamically set the data source so that even if the data source used by the report is not defined in the BI Publisher server, it still will be able to get the LOVs for the parameter. I tried setting the JDBCDataSource of the dynamicDataSource for the ReportRequest object that I passed to the getReportParameters() function. Please see the sample code below:
reportRequest.dynamicDataSource = new BIP10.BIPDataSource();
reportRequest.dynamicDataSource.JDBCDataSource = new BIP10.JDBCDataSource();
setReportDataSource(reportRequest.dynamicDataSource.JDBCDataSource, connectstr, jdbc, dc); //function to set the values for JDBCDataSource object
reportParams = webrs.getReportParameters(reportRequest, uid, pwd); //call the getReportParameters
I was expecting this to work as this is what I did to dynamically set the data source before calling the runReport function. So, my question is -- can we set the dynamic data source when using getReportParameters() ? I tried this both in versions 10g and 11g. It does not seem to work on both versions.
Regards,
Stephaniereport_id column of apex_application_page_ir_rpt can help us uniquely identify each saved report.
We can assign this report_id value to a page item and this page item can be put in the Report ID Item text box of the Advanced section of the Report Attributes page of the IR.
This should load the saved report identified by report_id and you can get rid of javascript
Regards,
Vishal
http://obiee-oracledb.blogspot.com
http://www.packtpub.com/oracle-apex-4-2-reporting/book
Kindly mark the reply as helpful/correct if it solves your problem
Maybe you are looking for
-
Fed up with q10 issues from 10.3 restarting and wiping phone
I have been a bberry user for over 7 years and have never been this close to switching OS's I updated to 10.3 on 10 days ago. All was going well until on the saturday my phone ran out of battery. Normal issue I thought until when i put the charged ba
-
Corrupt PDF File Recovery in CS6 Help!!
This is actually happening more often than I would like, after I save a file, then come back to it, I receive the message "Could not complete your request because the file is not compatible with this version of photoshop". I created this file in the
-
Is the PDF slideshow in PSE 7 like the one in PSE 3 ?
I have PSE 3 and convert photos from vacations and trips to the "Simple PDF Slideshow" in PSE 3. When PSE 4 came out it seemed it no longer supported the PDF Slideshow so I stayed with PSE 3. Recently I noticed that PSE 7 has the PDF slideshow option
-
Error when loading actuals re: admin task exception thrown
The "admin task" step (#176 below) of an actuals load package we run is failing and yielding the error message "exception has been thrown by the target of an invocation". We have seen this error ourselves in the past on the front end when we try to
-
Where to enable component in UCM
According to Oracle guide, I log in to EM of Admin Server, navigate to Content Management - Universal Content Management - Content Server - Oracle Universal Content Management Inbound Refinery(IBR_server1), cannot find component server. Henry