Line separation
hi,
i have one textarea in my program. i want to separate one message from the other message by a line(ruler). It should appear like a series of lines in the background separating each message. Can anybody help me how to get this without using swing components??
Thanks,
Kalpana.
Why don't you put a simple line between the texts?
like:
yourTextArea.append(
"\n\n________________________________\n\n"
);good luck,
Felipe
Similar Messages
-
XML Document to String - Line Separator problem
I�m facing a problem with line separator while converting a Document object to String.
Scenario: I get an input XML having line separator say \n (hex: 0A).
When I create the output XML using Transformer, the line separator is still \n.
I have a requirement which makes me convert the transformed Stream into a Document.
When I try to get the String/bytes from the Document, my line separator is now �\r\n�(hex 0D0A), which is my system�s System property �line-separator�.
I want to keep the line separator same as that was in input string. So, if the input has the separator has \n, output should have the separator as �\n� and if the input has it as �\r\n�, output should have the same.
i.e. my hex output should match the hex input.
Any pointers in the direction are welcome.
Thanks in advance.Can I infer that the parser has changed my document
line separators when I load it into a Document?
If yes, is there a way to prevent that from
happening?I don't really know. Since the XML recommendation says that a parser "MUST" do line-break normalization, I would expect that it does. And I wouldn't design systems that use specific non-XML-approved line endings as a feature, either. -
How can i add a line separator on Dreamweaver?
Hi
How can i add a line separator on Dreamweaver?
ThanksDo you mean a Horizontal Rule (the <hr/> tag)?
Click where you want it to appear and go to Insert > Horizontal Rule, or drag and drop from the Common heading of the Insert window.
If that's not what you're talking about, could you be a bit more descriptive as to what you are trying to accomplish? -
Hello
I am writing a tab limited file which gets its data from a string[][] array . When i try opening the file its messed up with square blocks in notepad and looks great with wordpad. I do know that Unix has '\n' as the line separator, whereas windows has '\r\n' and mac has '\r'.
The problem is the file is created on unix system, but its opened on windows or mac systems. Does anyone has a suggestion how can i fix this. I did tried using 'line.separator' but that doesn't help..which is obvious since it uses the unix separator.
Please let me know if anyone can help
I am writing to the file using PrintWriter
thanxisn't there a way just to know whats the line
separator used in the original file?The following will check out the line separator of a file..
final public class TestSeparator{
public static void main(String[] args) throws Exception{
java.io.BufferedReader br =null;
int k=0x0,temp=0x0;
try{
br =new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream("TestSeparator.java"),"UTF8"));//file and encoding are arbitrary
while((k=br.read())!=-1){
if((temp==(char)0xd)&&(k!=(char)0xa)) System.out.println();
if(k==(char)0xd||k==(char)0xa){
if(k==(char)0xd) {
System.out.print("r");
if(k==(char)0xa) {
System.out.print("n");
if(temp==(char)0xd||k==(char)0xa) System.out.println();
temp=k;
}//end of while
System.out.println("");
}finally{
if(br!=null) br.close();
} -
System line separator under Mac OS X
Unfortunately I don't have a Mac available to test on. Can any Java/Macintosh experts answer these two questions for me?:
1. What's the System line separator under OS X? Still "\r"?
2. What line separator is used by OS X implementations of PrintWriter? (That is, what line separator will an applet running on OS X send across the Internet if you use a PrintWriter to write to a Socket?)
Thanks!
--MarkIt doesn't help. I'm sure that if you thought about it for a bit you'd figure it out, but here's the reason: I'm not coding the client side, I'm coding the server side. Because we're using NIO -- no Streams, ByteBuffers -- details like line separators which would otherwise be transparent are now potential issues. Currently client applets on Windows and Linux are connecting fine, but, those on OS X are not. OS X clients used to work before we switched to NIO on the server. One thought is that the glitch could be because of the different line separators, which, before our change to NIO, were translated for us automatically by the Streams we now no longer use. Dynamically determining line separator at runtime would be wonderful if my code ran on the client, that is, the OS X machine. But, it doesn't. Thus, my question.
Now, if there's anyone on OS X who can answer from knowledge, I'll be very grateful. Please note though the question is "what's the line separator on OS X", it's not "what's the best way to determine a line separator". Many thanks.
--Mark -
Creating a line separating columns?
I need to create a 4 column table for my website. However I
don't want a table where the outline is visible, instead I need to
create a separator separating the columns. Here is an examples of
what I mean.
http://www.huffingtonpost.com/
I need something similar to the gray lines separating the columns.
Or is there a way to make the outline of the column invisible
except for the right side?
Thanks.Naltima wrote:
> Or is there a way to make the outline of the column
invisible except for the
> right side?
Give your <td>s a class name (as below) and use some
css (as below)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
<title>Untitled Document</title>
<style type="text/css">
.borderRight {
border-right: 1px solid #ccc;
</style>
</head>
<body>
<table width="400" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td class="borderRight">Col 1</td>
<td class="borderRight">Col 2</td>
<td class="borderRight">Col 3</td>
<td>Col 4</td>
</tr>
</table>
</body>
</html> -
Setting the default line separator
I have just installed CF9 on a Windows sever and I need the default line separator to be a CRLF (CHR 13 then 10).
The JVM running CF9 has the default line separator set as CR (CHR 13). Which I find odd considering the default on windows should be CRLF.
I have searched and searched and can find nothing. I know the JVM command line should look something like: "-Dline.separator=". The only problem being I cannot work out for the life of me what should follow the equals sign.
I am sure I can't be the first person needing todo this. I would appreciate any help you can give me.
CheersThanks for the reply Jochem.
Unfortunately no dice. I was pretty sure I tried that, but I went ahead and tried the following again:
-Dline.separator=\r\n
-Dline.separator="\r\n"
-Dline.separator=\\r\\n
-Dline.separator="\\r\\n"
None of these variations work. Either the literal string "\r\n" is used to seperate lines, or I get a Jrun applet error trying to run and cf page.
So you understand how I am testing these. I am editing the jvm.config. Restarting the cf service. Going to "Java and JVM" under system settings and hitting submit changes, so that the jvm.config is recreated using the new line separator.
But if you have any ideas I am all ears.
Thanks -
How can I get the the system property line.separator??
hi all,
the system property line.separator .
the PrintStream's function println uses this properly for next line.. I dont want to use this function. and '\n' does not work exaclty as "the system property line.separator" works..System.getProperty("line.separator") oughta do it :-)
-
Line separator to get multiple records in one variable
Hi Experts,
I have a requirement where i need to get data in the below form , in exactly one variable.
Invoice No. Inv. Date Voucher Gross Amount TDS Amount Discount Paid Amount
986013092,17 04/08/2010 00091217 32415.00 .00 .00 32415.00
Bharti Infot 27/07/2010 00091230 19600.00 .00 .00 19600.00
9860442689 04/08/2010 001247 47374.00 .00 .00 47374.00
2031565000,2031565000Total Amount 99389.00 .00 .00 99389.00
As of now, I have written the following,
loop at lt_merge into ls_merge.
lv_skfbt = ls_MERGE-SKFBT.
lv_budat = Ls_MERGE-budat.
lv_wskto = Ls_MERGE-wskto.
lv_wrbtr = Ls_MERGE-wrbtr.
lv_WT_QBSHB = ls_merge-WT_QBSHB.
concatenate invoice_id
ls_merge-BELNR
lv_BUDAT
ls_merge-XBLNR
lv_skfbt
lv_wt_qbshb
lv_WSKTO
lv_wrbtr
into invoice_id separated by space.
endloop.
which gives me one row of the table where, invoice_id stores my entire one record as a string. My question is how do I proceed with separating the lines if I have multiple records?
Thanks in advance..
Regards,
TrishnaHI
choose some character that will be not use in your data for example '|' vertical separator. You will get string:
invoice_id = line1 | line2 | line3 |.....
loop at lt_merge into ls_merge.
lv_skfbt = ls_MERGE-SKFBT.
lv_budat = Ls_MERGE-budat.
lv_wskto = Ls_MERGE-wskto.
lv_wrbtr = Ls_MERGE-wrbtr.
lv_WT_QBSHB = ls_merge-WT_QBSHB.
concatenate invoice_id
ls_merge-BELNR
lv_BUDAT
ls_merge-XBLNR
lv_skfbt
lv_wt_qbshb
lv_WSKTO
lv_wrbtr
into invoice_id separated by space.
new code
concatenate invoice_id '|' into invoice_id
endloop. -
Is it possible to remove hyphens at the end of a line separating parts of a word? Thank you
Hi there,
I was wondering, Indesign automatically adds hyphens at the end of a line to join one part of the word with the next part (on the next line). Is there any way to get rid of this in my entire document so that indesign automatically puts the word on the next line rather than separating it with a hyphen? I've been going through it manually and correcting it but it's taking many hours.
Let me know if it's not clear what I'm saying
Many thanksLegitNZ wrote:
I've been going through it manually and correcting it but it's taking many hours
Ouch! What you need to do is turn "hyphenating" off. Select all your text and do it in the control panel like this:
You can also turn it off before you start in the paragraph panel, or by turning it off with no documents open make it off by default. -
Line separator in gui_download
Hi all
How can we write the fileds of an internal table into the file , with one field in one line
Suppose ae have in internal table :
Filed1 Field2 Field3 .................
I want them to be written
Filed1
Field2
Field3 .................
ThanksHi,
Try like below:
Lets suppose field1..field2...are fields of internal table itab which has 4 fields
field-symbols: <fs> type any.
data: begin of it_line occurs o,
line(20),
end of it_line,
lv_field(30),
lv_lineno.
lv_lineno = 1.
do 4 times.
concatenate 'itab-field1' 1 into lv_field separated by '-'.
assign lv_field to <fs>.
it_line = <fs>.
append it_line.
enddo.
Regards,
Himanshu -
What is the line separator in Disk Utility's sidebar?
What is the purpose of the separator line in the sidebar of Disk Utility? My drives used to be above it now most are below it. And one slice of my software RAID is above while the other is below. What does this mean?
That's pretty much normal for a FW400 drive. Restore takes more time that some copy programs because of the file verification it performs.
-
When "Grouping" is used in a report, every records making up
the "detail line" section becomes separated by a grey line going
across the report. This line is only visible on the output (PDF in
this particular instance) therefore cannot be "Selected" and
deleted in "Design Mode".
I looked at the different options available on the righ-hand
side of the Report Builder's interface but could not see nor find
the one that would get rid of it.
Does anyone know how to remove this line?
I am using CFReportBuilder on CFMX7 and Dreamweaver 8.
Thanks,
ClaudeGot it! By Zooming In I was finally able to see, select and
delete the line that was up & VERY close to the TOP of the
Detail section. -
At some point in the last few months, some update has changed the behavior of triple-clicking in web forms. I have been using this method to copy data from one screen to another for years. It doesn't happen in every field, but it consistently fails in many different scenarios.
I think that by default triple-clicking should select:
* the entire contents of a single-line control
* the current paragraph in a multi-line control
If you discover a pattern, could you post a sample text that causes the problem? We then can paste it into this compose box for testing. Or if this occurs in particular forms, you could post directions to that problem field on the form so we could investigate it (assuming no login is required).
Also, if you want everything in a one-line or multi-line form control, you can use Select All. Either:
* left-click in the text, then Ctrl+a
* right-click in the text > Select All -
How to introduce blank line separator in Interactive Report
Hi,
I've an Interactive Report that shows date-ordered records (game fixtures for our local Ice Hockey team).
I'm using highlights and filters to make the output more "meaningful".
Any advice on how to introduce a horizontal blank-record "gap" in the data to separate the rows of output please?
I know I can use the "Break" feature, but its not that pretty in this circumstance - it looks like overkill.
All I want to do is to deliniate the fixtures that occur in separate weeks.
The current list of fixtures is viewable via: [http://fixtures.naihc.co.uk/apex/f?p=1:2|http://fixtures.naihc.co.uk/apex/f?p=1:2]
I've created a hidden column that calculates the Week of the Year: a simple to_char(faceOff, 'IW') wrapped inside
a "to_number" for sorting purposes.
If you look at the output, its not that blindingly obvious which fixtures happen on which week - a simple horizontal
line gap when the week changes would look nice.
Some sort of SQLplus "break on weekOfYear skip 2" or so.
Thankyou in advance.
MungoI've created a hidden column that calculates the Week of the Year: a simple to_char(faceOff, 'IW') wrapped inside a "to_number" for sorting purposes.Won't that give you a problem when viewing a period of a season that spans 2 calendar years? The weeks from the later year appear before those in the first year:
select d, to_number(to_char(d, 'iw')) week_of_year
from t
order by season, week_of_year, d
D WEEK_OF_YEAR
09-Jan-2010 1
10-Jan-2010 1
16-Jan-2010 2
17-Jan-2010 2
23-Jan-2010 3
24-Jan-2010 3
05-Dec-2009 49
06-Dec-2009 49
12-Dec-2009 50
13-Dec-2009 50
19-Dec-2009 51
20-Dec-2009 51
26-Dec-2009 52
27-Dec-2009 52
02-Jan-2010 53
03-Jan-2010 53
25-Sep-2010 38
17 rows selectedAdditionally, I'm not sure that week of year is a measure that means a lot to most people (presence of week 53 is to say the least a bit strange). Could be better to use the ISO week to give the date the week began on, keeping the type as date to give the expected order, or calculate a season week number:
select d, trunc(d, 'iw') week_beginning
from t
order by season, week_beginning, d
D WEEK_BEGINNING
05-Dec-2009 30-Nov-2009
06-Dec-2009 30-Nov-2009
12-Dec-2009 07-Dec-2009
13-Dec-2009 07-Dec-2009
19-Dec-2009 14-Dec-2009
20-Dec-2009 14-Dec-2009
26-Dec-2009 21-Dec-2009
27-Dec-2009 21-Dec-2009
02-Jan-2010 28-Dec-2009
03-Jan-2010 28-Dec-2009
09-Jan-2010 04-Jan-2010
10-Jan-2010 04-Jan-2010
16-Jan-2010 11-Jan-2010
17-Jan-2010 11-Jan-2010
23-Jan-2010 18-Jan-2010
24-Jan-2010 18-Jan-2010
25-Sep-2010 20-Sep-2010
17 rows selected
select d, dense_rank() over (partition by season order by trunc(d, 'iw')) season_week
from t
order by season, season_week, d
D SEASON_WEEK
05-Dec-2009 1
06-Dec-2009 1
12-Dec-2009 2
13-Dec-2009 2
19-Dec-2009 3
20-Dec-2009 3
26-Dec-2009 4
27-Dec-2009 4
02-Jan-2010 5
03-Jan-2010 5
09-Jan-2010 6
10-Jan-2010 6
16-Jan-2010 7
17-Jan-2010 7
23-Jan-2010 8
24-Jan-2010 8
25-Sep-2010 1
17 rows selected
Any advice on how to introduce a horizontal blank-record "gap" in the data to separate the rows of output please?Looking at it, but the HTML generated by the IR does not appear to include decent options for CSS selectors that can be used for modification. Certainly not anything that'll work in IE6 and 7...
Maybe you are looking for
-
Lenovo W530 no longer boots since updating past 3.7.1
Hi, I've been suffering from this for a while and I finally thought I should get around to asking the collective wisdom of the forums. I use rEFInd to boot my laptop and everything has been working well until I updated to 3.7.3. The next time I reb
-
I am unable to activate the sim in my ipad air 5th generation can you suggest how i can activate
i brought ipad air cellular model and inserted nano sim card but i am unable to dial number because there is no display of numarical pad to dial. But on left side i am getting the netwaork name DU with 5round ponits. Can you suggest it is required an
-
here is the issues in a nutshell..... 1) When I put an appointment into my blackberry as a full day, it syncs with my outlook as a 2 day appointment. This also happens when I do an all day appointment in outlook it changes to a 2 day appointment on m
-
I try to download music or videos but keeps saying the verification answered r wrong
I try to download music and movies but keeps saying I need to do verification answers then says they r wrong and won't let me reset it
-
I cannot set up my iCloud account.
When trying to set up my iCloud account, I am prompted to enter my apple id/password. After doing so it tells me my info is incorrect. Shouldn't this be the same ID/PW as my Apple account? Or do I need to create a new one?