473,748 Members | 8,367 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 2401

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

Similar topics

11
2361
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
2555
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
2023
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
8998
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
3650
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
3007
by: ksr04 | last post by:
Hello Everybody, can anyone tell how to make JEditorPane support CSS??? thanx in advance...
5
3190
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
2774
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
8823
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
9530
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...
0
9363
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8237
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6793
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
6073
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
4593
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...
1
3300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.