How to set scrolledPane/textArea to display last lines?
I have a JTextArea in a JScrollPane.
I'm adding to the text area and the information scrolls off the visible portion of the screen.
How can I force the scrolling to always display the last lines at the bottom of the screen when they are added?
Thanks.
See [url http://www.camick.com/java/blog.html?name=text-area-scrolling]Text Area Scrolling
Similar Messages
-
How to set a JScrollPane always display the last line?
I have put a JTextArea in a JScrollPane.
Whenever I append a new line of sentence to the JTextArea, the JScrollPane only shorten the vertical scroll bar.
Is there any command that can scroll down to the last line whenever I append a new sentence to the JTextArea?I have tried to add the line you shown, but it can just show the second last line. It cannot scroll down to the last line.
e.g. I have these message:
AAA
BBB
CCC
If the message board can only show 3 lines and I enter one more line "DDD", then the last line will be shown is CCC. I need to scroll down a bit more myself to see DDD. If I scroll to the top and enter another line"EEE", it will scroll down to show "DDD" but not "EEE". -
How to set a view in display mode??
Hi,
I have created a new view in overview page of BT111H_OPPT.
This view is of table type and associated with value node .
I am able to display contents of table on UI but they are in editable mode.
I need them in display mode .
How to achieve this functionlaity??
Any suggestions will be helpful.
thanks
kanikaHi Kanika,
There are 2 ways:
In the configuration of your view you can set the fields as display mode.
In the method get_i* of your atributtes you can disable the field too.
I think the better solution is using the configuration.
Best regards,
Caíque Escaler -
How to set full-screen page displaying automatically on portal.
one viewset included two views (named <b>topView</b> and <b>detailView)</b>
putting a <i>table control</i> in the <b>detailView,boz</b> of many columns of the <i>table</i> exceed the width of portal screen,which result in the <b>topView</b> is the same width to the <b>detailView</b>.both of the two views exceed out of the full-screen width.but i don't wanna move the <b>topView</b> when i drag <i>scroll horizontal bar control</i>. so i added a <b>ScrollContainer</b> into the <b>detailView,and</b> put the <i>talbe</i> control into it.
the confusoning is :i don't know how to set the the <u>width</u> of the <b>ScrollContainer</b> cotrol , to keep it full-page displaying any time on portal .
u know the IE'Screen resolution setting maybe different ,e,g,:1024786px and 800600px.HI,
Give the width in % instead of mentioning in pixels.
ie. for full width, give 100%.
Make sure the layout is GridLayout.
Regards
Fahad Hamsa -
How to set one layout to display only?
Hello, Expers,
I want to display only one layout. The scenario is: when the user input some data in a layout and click on one 'input finish' function button which means that the user has finished input data in that layout, then the system will set that layout to display only. I don't want to use the variable with comparion column because that will also cause all the layout to display only. What I want to do is just set only one layout to display only. Anyone know how to do?Dear guqing,
please take a look at
http://help.sap.com/saphelp_nw70/helpdata/en/45/9d0fbe42c40063e10000000a11466f/frameset.htm
http://help.sap.com/saphelp_nw70/helpdata/en/43/174720c5dd3db4e10000000a422035/frameset.htm
You can use the command SET_INPUT_MODE or SET_DATA_ENTRY_MODE
Regards
Matthias Nutt
SAP Consulting Switzerland -
How to set default settings to display record count in multi record block
Hi All
Whenever I query my multi record block, I get 1/? as record count at the console in standard Oracle Applications. Is there any setting so that it displays 1/50 (in case total record queried is 50). I don't want to set query all property of block as I don't have any control in standard Apps forms.
Thanks in advance
NavdeepCheck out the next_navigation_item option for the get_item_property procedure. If you use this you can do the process without having to navigate from one item to the next.
You can do something like this (untested) to move and resize the items (other than the first in the block):
PROCEDURE move_and_resize(p_item IN ITEM, p_width IN PLS_INTEGER) IS
prev_item ITEM := Get_Item_Property(p_item, PREVIOUS_NAVIGATION_ITEM);
BEGIN
Set_Item_Property(p_item, WIDTH, Get_Item_Property(p_item, WIDTH) + p_width);
Set_Item_Property(p_item, X_POS, Get_Item_Property(prev_item, WIDTH) +
Get_Item_Property(prev_item, X_POS));
END move_and_resize;
move_and_resize(myitem, -30); -
How to gettext from textarea in a new line when the linewrap option is true
Hello everyone..
I wanted to know that how get we get text from the Jtextarea when the linewrap option is set to true..
for example..
Lets say my textarea can have 50 chars without any kind of wrap..
now when the 51 st char is pressed or entered it automatically goes to the next line..
now i want to get the text from the textarea and display it in the exact fashion as it is in the textarea..
Please help me out in this case..This can help, if not, take a JTextPane. In my program,
I get all lines (including wrapped ones) with that
I hope, there are no indexing or so errors, I had to adapt my code
a bit.
View root =
myJTextComponent.getUI().getRootView(myJTextComponent).getView(0);
int number_of_paragraphs = root.getViewCount();
int linestart, lineend;
String line;
for(int paragraphindex = 0; paragraphindex< number_of_paragraphs;
paragraphindex++)
for(int line_in_paragaph = 0; line_in_paragraph <
root.getView(paragraphindex).getViewCount(); line_in_paragraph++)
linestart = root.getView(paragraphindex).getView(line_in_paragraph).getStartOffset();
lineend=
root.getView(paragraphindex).getView(line_in_paragraph).getEndOffset();
try
line = myJTextComponent.getDocument().getText(linestart,
lineend-linestart);
System.out.println(line);
catch(BadLocationException e) {...}
} -
How to set partial delivery for Purchase Order line item
Hi Team
We have created a PO for 100 quantity along with 25% over delivery tolerance. We have done 5 GRNs totaling for 95 quantity. when we try to do another 10 quantity, system not accepting the GRN.
I want to set the partial delivery for this line item. Please help how to do this.
regards
Raviwhere did you check the underdelivery tolerance of 0?
the PO is the place to check, changes in material master will notz effect existing POs.
if you removed the delivery complete indicator and the item still does not show up in MIGO, then set the "propose all items in MIGO settings"
if it still does not show up, then you might have other restrictions like confirmations , last goods receipt etc.
the error 'Document does not contain any selectable item" is often discussed in this forum, you will find numerous threads that list what you have to check. -
Want to set view of JScrollPane to last line
I'm creating a chat program and adding new messages to the end of JEditorPane. I want the view to always show the last message like in MSN and other chat systems. User enters text in JTextField, is formatted and appended to JeditorPane. Can anyone tell me how to do this ??
I tried setting the JScrollBar to max but it kept missing the last line and jerked a lot. But the problem is solved by setting the caret position in JDocument to its length
-
FBL5N - in Rule set - It is a Display customer line items
Dear All,
We observed that FBL5N - Display customer line items in Standard SoD rule set under function AR07 addressing a risk of S022.
Unless there are t-codes of FD03 or FB02 this t-code does not allow to change the payment terms of the customer.
We are having a challenge from the client that FBL5N is a display t-code and why it is there in rule set.
Has anybody came across this scenario? If yes, what is the underlying risk for this FBL5N independently.
Is there any SAP Note for this t-code like ME23N from SAP.
Thanks and Best Regards,
Srihari.KHi Christian,
We checked the authorization objects as well enabled in GRC rule set as below:
F_BKPF_BUK - Docume t Authorization document for company codes - 01 or 02 - Enable.
Inspite of this access, FBL5N cannot be used to change the document for payment terms and assignments without FB02 t-code
assignment in the role.
Independently FBL5N cannot be used for any change or create activity except Display customer line items.
Please advise
Thanks and Best Regards,
Srihari.K -
How to set the caller tune on PRI-Line/CUCM 8.X
Hi Team,
If passible to set the caller tune songs or advertising in CUCM 8.x -( in place of ringing).
How to set the caller tune for incoming calls( advertising), including 4 digit extension. This feature is available or not (cucm 8.0.3) Kindly verify and confirm
regards,
JohnsonDear Team,
Now i have configured the Call Queuing, Its working fine, But how to verify to incoming calls or Missed call are in queuing, how to showing.
Connected call are showing, but unable show missed call like who ever in queue.
Regards,
Johnson. -
How to set PDF file default display size through Report Writter 6i
Anyone could help me, how to setup default display (magnification i.e 100% or 80%) for a pdf file generated by report writter 6i.
Thanks
Rajhi,
regarding report, there is a dedicated report forum. you should post there.
but answer for your question is form is nothing to do with the pdf generation. you can call the report from the as usual.
In the report you should set the properties like
destype to 'file'
desname to 'path with file name'
desformat to 'pdf' -
How to Set Assignment block in Display mode
Hi All,
I have a Z assignment block in Account (BP_Head), requirement to set this assignment block in display mode only.
No user allowed to edit its edit list.
Could you help me how to do that with sample code and event.HI,
In configTable set attribute displayMode = "TRUE". Then this AB will be always in display mode
displayMode = "TRUE" or
if you ar using configCelleator uyou need to give iv_all_rows_editable = space
cl_thtmlb_util=>translate_selection_mode(
exporting
iv_selection_mode = ITEMS->SELECTION_MODE
iv_all_rows_editable = space
importing
ev_selection_mode = lv_cellerator_selectionmode
ev_edit_mode = lv_cellerator_editmode
ev_selection_column = lv_cellerator_selectioncolumn ).
Regards,
Deepika. -
I recently purchased a mini dvi to s-video/RCA cable and hooked up my macbook to my sharp lcd tv using a RCA video cable. At first I had nothing but static but after messing around with the display settings i got the tv to display the right half of my desktop on the left hand of the screen and left of my desktop on the right of the tv and the whole picture is scrolling up repeating itself does anyone know how to fix this.
I'd hate to have you buy another adaptor, but does the TV by any chance have a VGA or DVI inputs? I do this hookup all the time for customers and every time I'm forced to use S-Video or Composite I run into trouble. If the TV has VGA (like a regular computer monitor), you shouldn't have any problem. I strongly suggest this option if at all possible, as the maximum resolution from what you have is around 640x480-- not exactly what you're used to seeing on that TV.
If VGA is possible, you can find the adaptor you need here from Apple. -
How to set a train stop display name programmatically
JDeveloper 11.1.2.4
Any ideas?
Thanks in advance
jleonThis article http://www.oracle.com/technetwork/issue-archive/2011/11-sep/o51adf-452576.html shows how to do this.
Timo
Maybe you are looking for
-
Insert a list of image in database
Hi to all, this is the scenario: 1) Windows Server 2003 32 bit 2) Oracle 10g 32 bit In my schema I have created 2 tables and a work dir (this dirrectory reside on the server): CREATE TABLE MYSCHEMA.FLAGS$ FLAGS_ISO31661A2 VARCHAR2(2 BYTE), FLAGS
-
I have changed my password and still can't get home sharing to work. Get the message "Home sharing could not be activated because the account or password was incorrect." It's what I have used to sign in here! Any help much appreciated.
-
I am using Oracel 8i Version: 8.1.7.0.0. it was crash so I use following command to revover database but error occure alter database recover Sun May 28 13:10:54 2006 Media Recovery Start Media Recovery Log Recovery of Online Redo Log: Thread 1 Group
-
PCI 6110 Digital I/O, How to and How fast?
The max the board can run is 5MS/s. There are Digital and Analog I/Os. I want to run Analog and Digital I/O with different speeds, analog @ 1.25MS/s and Digital at ? (don't know how fast it can go). I think I can achieve it by using PFI pins, but I a
-
Problem - HP Photosmart D110 and Mac OS X 10.9.4
Hi guys, I have problem when try to scan images trough photosmart D110 on OS X 10.9.4 The preview is ok, but when I try to save, file is saved corrupted. I try all available formats but same problem. Please any help will be appreciated...