473,763 Members | 5,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

In JEditorPane how to go to the first line programmaticall y

Hi,
I have a JEditorPane. It is filled with some data read from somewhere.
While adding new lines, JEditorPane scrolls up.
At the end of the action, the last line is at the focus.
But, I want the first line to be visble.
How can I jump to the first line automatically?

Or, is it possible to stop the pane from scrolling while appending new lines?

TIA
Ahmet Aksoy
Jul 18 '05 #1
0 2404

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
2364
by: Jason | last post by:
Hi I have a "problem" i have got a ASP.NET application. in this application i have included logging. in the logging i have logged how many seconds it takes for this application to fully load. i have placed these timing loggings in the Load and Init events on a typical aspx page. i.e. first line of code in Page_Load is DateTime dtStart = DateTime.Now; and the last lines of code are
2
2558
by: Mike W | last post by:
I'm trying to programmatically run msinfo32.exe /? with the following line of code but it is not taking the switch: System.Diagnostics.Process.Start("c:\program files\common files\Microsoft Shared\MSInfo\msinfo32.exe /?") I have a couple other command line tools with switches that I would like to programmatically execute as well. I'm thinking there is another way to do this but am coming up short. Any help is greatly appreciated.
3
2024
by: arivazhaganit | last post by:
while using JEditorPane , I am able to access only file: protocal not http:// protocal , while opening http:// URL in editorpane ,it showing that java.net.ConnectException: Connection timed out: connect ... plz help me
1
9000
by: Bernie Hunt | last post by:
I have a JEditorPane that I'm filling with a webpage using JEditorPane.setPage(www.something.com) and it is working fine. My problem is I want to save the HTML from the page displayed into a string. I've tried; String tempString = new String(); tempString = JEditorPane.getText(); This gives me the html for a blank web page.
3
3651
by: aryan24 | last post by:
Hi everybod .. as part of my project , i need to call an xml file into an Jeditorpane. I have a button called Load ,when i click on it ,,i need to load the xml file into the JeditorPane...Can any1 plz provide the solution .
1
3008
by: ksr04 | last post by:
Hello Everybody, can anyone tell how to make JEditorPane support CSS??? thanx in advance...
5
3191
by: dunkymunky | last post by:
I've got a JEditorPane that is correctly displaying HTML hyperlinks, but all it does is display them, how can I make it so that when someone clicks on this hyperlink, it opens up their default web browser and opens the correct page? This is the code I have so far: public interface HyperLinkListener { public void hyperlinkUpdate(HyperlinkEvent e); } public void hyperlinkUpdate(HyperlinkEvent evt) { if (evt.getEventType() ==...
1
3340
jhardman
by: jhardman | last post by:
I'm using a JEditorPane to display an HTML-formatted page. When I make changes to the page, I find I can't see the changes unless I compile a new java file and point to a new HTML file, as if the old page is cached somewhere. Is there any easier way to refresh the HTML page I'm seeing, or is there something obvious I'm missing? Jared
0
2776
by: Arielle | last post by:
Mainly I'm looking for direction in regards to a requirement I've been given. In the basics I have a task list where the tasks are generated by a number of folks however instead of having to go back into each line item per item addded to the list to modify the permissions they want to be able to select the "Editors" of the line item directly from the add form. I've tried for the past few days to find ANYTHING in regards of programmatically...
0
9563
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9386
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10144
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9937
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7366
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5270
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
3522
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2793
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.