How to place a degree symbol in a JLabel
I'm trying to place a degree symbol in a JLabel with the following code
JLabel label = new JLabel ("<html>º</html>");but all I'm getting is the literal, not the degree symbol.
It's close enough, but here's what I really have:Turns out it wasn't quite close enough.
The <html> tag has to be the very first thing in the
string.
So, change this to:
final String DEGREE_SYMBOL = "�";
String degrees...
String minutes...
String labelStr = "<html>" + degrees +DEGREE_SYMBOL + minutes + "'";
JLabel label = new JLabel (labelStr);
That got 1 of the 3 instances working, so I'm narrowing it down (thank you). I'll just have to keep plugging until I get it figured out.
thanks for your help.
Similar Messages
-
How to place a partbox symbol in a header as a global item
Here's a score writing question.
Is is possible to place a Partbox symbol in the header on the 1st page of printed parts as a global item as one would for text. I'm thinking of things such as the tempo indicators or the swing eighths symbol. I can get the symbols into the header OK but they are not treated as a global item and I have to enter them on the individual parts
thanks
SwingtonesIt's close enough, but here's what I really have:Turns out it wasn't quite close enough.
The <html> tag has to be the very first thing in the
string.
So, change this to:
final String DEGREE_SYMBOL = "�";
String degrees...
String minutes...
String labelStr = "<html>" + degrees +DEGREE_SYMBOL + minutes + "'";
JLabel label = new JLabel (labelStr);
That got 1 of the 3 instances working, so I'm narrowing it down (thank you). I'll just have to keep plugging until I get it figured out.
thanks for your help. -
How to create a degree symbol with vi editor?
Running Solaris 9 SPARC
How do I create a degree symbol (as in 33 degrees ) using vi
ThanksWell, it should be exactly the same way as you would create it in any other application such as your shell.
On my Sun keyboard i can get a degree symbol by using Meta-0 (thats a zero :-)
.7/M. -
[solved] How to type a degree symbol?
In Windows, it's Alt+0176. Is there something similar to this that will type a degree symbol?
Last edited by synthead (2008-05-31 07:29:51)Copy and paste from a table on wikipedia.
Here it is:
http://en.wikipedia.org/wiki/Latin-1_Su … code_block
Here is more stuff:
http://en.wikipedia.org/wiki/List_of_Unicode_characters -
How can I make the degree symbol in Apple TV?
Specifically I want to add a user in Flickr whose name includes the degree symbol. Thanks.
While I would still be curious whether this is possible in Apple TV, I was able to accomplish the task using Ipad Remote and holding the number 0.
-
Best way to insert Degree symbol?
Hello,
I have an inspection form set up for restaurant/health inspectors. Often times during an inspection they need to enter temperatures of food and like to use the degree symbol. They're running this form on a convertible tablet pc, so a normal keyboard is not available to them in tablet mode and when in laptop mode using the combination of ALT+0176 that's still a PITA because the keyboard doesn't have full number pad and the people using this form aren't the most computer literate people out there to be able to activate the Function keys to endable number pad keys and then enter an ASCII code many times during an inspection.
I was looking for suggestion on how to inforporate something into the form to assist in entering the degree symbol in any text field they are in at the position of the cursor.
The idea's I've though of are:
1.) A command button that inserts the symbol, but I'm afraid clicking the button would lose focus of the destination field and there'd need to be a lot of scripting to remember which field was the last one they were in to insert it in the correct one.
2.) A Button or On Load event which somehow inserts the degree symbol into the Windows clipboard, but during the course of an inspection they might copy and paste something else thus clearing it out.
3.) Some kind of auto-replace of text. Not sure if that's possible in an adobe form. E.g. if they type 'deg.' have the form auto replace it to '°'.
4.) A special key press. Not sure if Adobe can listen to a special key sequence not used by Adobe and Windows, say CTRL + D which when pressed inserts a degree symbol in the current location.
5.) Any way to place a special icon on Adobe's tool bar to insert the degree symbol at the currently location?
Those were some ideas I'm thinking of. Many are probably dead ends. If you had this problem, how would you approach it?
Thanks!
-MikeMagnus, thanks for not giving up on this yet. In your last post that is making some progress, but there's also some con's too.
1.) That's running off of an 'On Exit' even which inserts the ºF at the end of the text. In some cases that would work, but it others it would not work, like in this text field example of real data: "White fish was a 51°F. *Corrected* Witnessed manager throw away fish."
With your proposed java, that would put the °F at the end of the line when it needs to be in the middle of the line.
2.) Many types of written text can be put in these fields. Not every scenario would involve a temperature, so having it pop up your popupmenu might get in their way when it is not needed.
What I'm thinking needs to be done is to somehow insert the °F exactly wherever the cursor is at the time when it is triggered to do so (how to trigger it?).
OR
On an On Exit event searcingh for and replacing the text they have entered. Perhaps replace ' deg' with '°F' so that if they type:
"White fish was a 51 deg. *Corrected* Witnessed manager throw away fish."
When the On Exit fires it replace deg with °F so that the text field now reads:
"White fish was a 51°F. *Corrected* Witnessed manager throw away fish." -
How to create a selectable symbol window/list/etc...
Hello,
I am brand new to Flash and Actionscript and have a project I
want to do.
I would like to have a graphic area where I can display a
list of graphics/symbols that could be dragged
on to the stage or to a Movie clip to create a layout and do
this within flash. There are a couple of sites
I have seen that do what I would like to do.
In essence: I would like to have a window that would show a
scrolling list of symbols/objects that would
be populated (2 symbols/graphics side by side) and any number
of symbols loaded in the list/window.
Then to be able to drag one of the symbols to the stage or to
a movie clip. Being a beginner I don't know if
it is possible on a web page to have to SWF files on a page
and if you could drag between them?
A site where this is done is www.sugarhousebanner.com with
their banner designer tool. I would like to do
something a bit similar. Any input on how to do this in just
getting started would be appreciated.
The 2nd item I have is also seen on this same site. I am not
sure how they do the zooming in and out and not have the whole
stage affected if all the controls for the graphics, fonts, etc...
are on the stage also.
Thank you very much.
Kim H.
[email protected]Well, it should be exactly the same way as you would create it in any other application such as your shell.
On my Sun keyboard i can get a degree symbol by using Meta-0 (thats a zero :-)
.7/M. -
Passing Degree Symbols in a Parameter Field
We have a parameter on a crystal report configured to look up data from the database to allow a user to select values.
If someone selects a value that has a degree symbol in it then tries to run the report we get a parameter not valid error.
We see the error when we run the report in Crystal Developer as well.
We are using Crystal XI reporting against an Oracle 10g unicode database. We are using an ODBC connection.
Are we using the right driver for this?Hi Dan Robinson,
As you said, the report parameter is not able to identity / compare Degree symbol with your database field.
If it is a number field then try the follwoing in record selection formula, if not please place your formula to check the syntax.
Totext(DatabaseField} = Totext({?ParameterValue})
Thanks,
Sastry -
Degree symbol conversion export inx
Hi,
A while ago I exported from Indesign cs2 file to inx. (I may have receved an inx file from a client with CS3 but can't remember exactly)
When I opened the inx file again all the degree symbols/glyphs converted to Dgr or something like that.
I can't find the file that did this but I need to find out why it happened.
Has anyone seen something simlar like this when exporting/opening inx files with glyphs in them.
Can you explain why this happens? I need to explain to people to check this hasn't happened but I need to know why it happens in the first place.
Is it an XML Issue when going from CS3 to CS2 or something?
Thanks
cpDo you have the Decimal codes on your site? That is why I pointed to [Link removed by moderator]
Special Characters
Decimal code
auto Page Number
1396797550
next Page Number
1397649518
previous Page Number
1397780590
section Marker
1400073805
bullet Character
1396862068
copy right Symbol
1396929140
degree Symbol
1396991858
ellipsis Character
1397518451
forced Line Break
1397124194
paragraph Symbol
1397776754
registered Trademark
1397904493
section Symbol
1400073811
trademark Symbol
1398041963
right Indent Tab
1397909876
indent Here Tab
1397319796
em Dash
1397058884
en Dash
1397059140
discretionary Hyphen
1396983920
nonbreaking Hyphen
1397645928
end Nested Style
1396855379
double Left Quote
1396984945
double Right Quote
1396986481
single Left Quote
1397967985
single Right Quote
1397969521
em Space
1397058899
en Space
1397059155
flush Space
1397124179
hair Space
1397256787
nonbreaking Space
1397645907
thin Space
1398042195
figure Space
1397122899
punctuation Space
1397780051
column Break
1396927554
frame Break
1397125698
page Break
1397778242
odd Page Break
1397715010
even Page Break
1397059650
footnote Symbol
1399221837 -
Hi Experts
In my ztable, am supposed to insert the Degree symbol between the data of the database.
Is that possible to add degree symbol in database, how to solve this, i need to print that symbol in smartform also.
Pls, help me on this.
Thanks in advance.
Regards
RajaramHi Raja,
you may define a 1 or 2 character length field in the databse and put your symbol there. I could not find the Degree symbol in our system, we have only symbols
SYM_1
SYM_2
SYM_ASTERISK
SYM_BOLD_MINUS
SYM_BOLD_PLUS
SYM_BOLD_X
SYM_CAUTION
SYM_CHECKBOX
SYM_CHECKED_DOCUMENT
SYM_CHECK_MARK
SYM_CIRCLE
SYM_CUMULATED
SYM_DELETE
SYM_DIAMOND
SYM_DOCUMENT
SYM_DOCUMENTS
SYM_DOWN_ARROW
SYM_DOWN_TRIANGLE
SYM_ELLIPSIS
SYM_EXECUTABLE
SYM_FAX
SYM_FILLED_CIRCLE
SYM_FILLED_DIAMOND
SYM_FILLED_SQUARE
SYM_FLASH
SYM_FOLDER
SYM_GLASSES
SYM_HALF_FILLED_CIRCLE
SYM_HALF_FILLED_SQUARE
SYM_LARGE_SQUARE
SYM_LEFT_ARROW
SYM_LEFT_HAND
SYM_LEFT_TRIANGLE
SYM_LOCKED
SYM_MINUS_BOX
SYM_MINUS_CIRCLE
SYM_MINUS_FOLDER
SYM_NOTE
SYM_OPEN_FOLDER
SYM_PENCIL
SYM_PHONE
SYM_PLUS_BOX
SYM_PLUS_CIRCLE
SYM_PLUS_FOLDER
SYM_PRINTER
SYM_RADIOBUTTON
SYM_RIGHT_ARROW
SYM_RIGHT_HAND
SYM_RIGHT_TRIANGLE
SYM_SORTED_DOWN
SYM_SORTED_UP
SYM_SPACE
SYM_SQUARE
SYM_UNLOCKED
SYM_UP_ARROW
SYM_UP_TRIANGLE
SYM_WORKFLOW_ITEM
No degree there.
Please explain your task in depth.
Regards,
Clemens -
How can you Keystroke the degree "º" symbol
this does not work
tell application "TextEdit"
activate
make new document
end tell
tell application "System Events"
tell process "TextEdit"
keystroke "8"
keystroke "0" using option down
end tell
end tell
it is getting the zero from the 10 key pad and not the "0 / )" key
Thanks
darockTechnically, neither option-0 or option-K are the degree symbol (option-o is technically 'masculine ordinal indicator' an option-k is 'ring above, as in å).
The correct character for the degree symbol is option-shift-8. However, neither 'keystroke "8" using {option down, shift down}', nor 'keystroke "*" using option down' has the desired result.
The only solution I've found is to use the key code command rather than the keystroke, and this seems to work:
tell application "TextEdit" to activate
delay 1
tell application "System Events"
tell process "TextEdit"
keystroke "8"
key code 28 using {option down, shift down}
end tell
end tell
I can't explain why keystroke "8" using {option down, shift down} doesn't work, though. -
How to place header and footer in OO-ALV program using class
How to place header and footer in OO-ALV program using class tell me wat r the class we shold use and their attributes as well
Hi Venkatesh,
Take a look at this how to [ABAP Objects - ALV Model - Using Header and Footer|https://wiki.sdn.sap.com/wiki/x/xdw]
it's explaining how to define the classes and use it for display an ALV with Header and Footer.
Regards,
Marcelo Ramos -
How do I play a symbol timeline from the main timeline
Ive created a box, turned it into a symbol called box,
Inside box i have a left to right animation with auto play turned off.
I then went back to the main stage, clicked the box, added action, on click to play, yet it does nothing.
How do i Play the symbols timeline?On click handler for the symbol use
sym.getComposition().getStage().getSymbol("nameofsymbol").play();
or
sym.getSymbol("nameofsymbol").play();
replace the italics with the literal name of the symbol as it appears in the Elements panel.
Some API details found here (http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html) in the Work With Symbols section.
Darrell -
How to place one column under another column in obiee report?
Hi all,
I am new to obiee, so need some help from obiee experts. Can anyone tell me how to place one column data under another column in obiee report?
i need the report to be as below
category total_students Course_enrollment Test_attended pass_test
total N % N % N %
all students ##### ## ## ## ## ## ##
Ethnicity
Asian ###### ## ## ## ## ## ##
African American ###### ## ## ## ## ## ##
white ######
Filipino ######
Gender
Male ##### ## ## ## ## ## ##
Female ##### ## ## ## ## ## ##
and similarly for other columns
where ethnicity, gender are columns in the table and Course_enrollment, Test_attended, pass_test are calculated columns.
Please help me to create a report as above if anyone knows how to do it.
Edited by: Shailaja on Jul 19, 2010 12:23 AMTwo ideas I can think of:
1) Create multiple pivot tables and then display them one under the other
2) Create multiple measure columns such as "male_amt", "female_amt", "white_amt", "asian_amt", "black_amt", etc. for all the columns you need. Then you could simple stack them in a single pivot table.
Option #2 might give you the prettiest results - but also requires a lot more maintenance (for instance, if you reclassify ethnic groups, you'd have to go through the reports to add additional metric columns).
Hope this helps,
Scott -
How to use the separate symbol in the text field in the adobe form.
Hi,experts,
I dont know how to use the separate symbol to make a paragraph separate into several lines correctly in the text field in the adobe form.
Action:
1. config the ADS successfully.
2. create the adobe form with a mult-line textfield(binding the 'remark' context in the interface of the form) using sfp.
3. create a WDA for invoke the form and transfer the 'remark' context data.
I use the following codes to display the paragraph in the PDF document:
CONCATENATE
'1、aaaaaaaaaaa;'
'2、bbbbbbbbb '
'3、ccccccccccc'
'4、ddddddddd'
INTO remark .
lo_nd_z_hr_php_payslip->set_attribute(
EXPORTING
name = `REMARK`
value = remark ).
But I found all the content aren't paragraph separate correctly in the text field in the adobe form when I run the WDA.
Could you please give me some hints to make the paragraph separate correctly in PDF document? Thanks a lot in advance!
My email is : [email protected]
Best regards,
Tao
Edited by: wang tao on Apr 8, 2008 1:58 AMHi,
If it is just a one word value then you could use this in the exist event;
this.rawValue
= util.printx(">?<*",this.rawValue);
This changes the first character (represented by the ?) to uppercase (represented by the >) and all trailing characters (represented by the *) to lowercase (represented by the <).
If you wanted something more general ... if they could also enter a middle name then you could call a function like;
function toTitleCase(textValue)
return textValue.toLowerCase().replace(/\b[a-z]/g, function replacer(match) { return match.toUpperCase(); });
This uses a regex to change all lowercase letters following a word boundary to uppercase.
Bruce
Maybe you are looking for
-
I am unable to update my apps... in my purchases page it appears as "update", then a message tells me to log on with the Apple ID I purchased the app with... Well I have tried my two different accounts and neither one will work, can someone help ?? A
-
The application wont open, even after the newest update was installed. It says "The application "Adobe After Effects CC" can't be opened. error 10810" How do I fix this?!?!
-
Hi everybody, I was looking into replacing my DI-604 with a newer more robust router. I only have fios Internet (no tv), and have had service for about 5 years. Can I just take the d-link out and put a new router in? Do I need to transfer any setting
-
Online Development Environment
Where Could I develop a SharePoint solutions on online environment even just for learning due to resources leakage ? hope if it were for free too
-
Systemd and Xorg.bin hog CPU
I've been getting this problem for a couple months now. When I switch TTY from Xorg session (and back), it completely freezes and I have to wait about a minute to regain control. Only SysRq shortcuts work. Sometimes it stays black and flickering and