Jscrollpane dosen't work....
hi,
i m using a jscrollpane with a jeditorpane.when i use only jeditorpane to see a html page everything is ok.but when i add jscrollpane to the jeditorpane i cannot see the html page and even the scrollpane.my code is as follows...
JEditorPane jEditorPane1 = new JEditorPane();
JScrollPane editorScrollPane = new JScrollPane(jEditorPane1,
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
editorScrollPane.setPreferredSize(new Dimension(450,500));
editorScrollPane.setMinimumSize(new Dimension(200,200));
//panel3.add(jEditorPane1);
//panel3.add(editorScrollPane);
this.getContentPane().add(jEditorPane1, null);
this.getContentPane().add(editorScrollPane,null);
jEditorPane1.setEditable(false);
jEditorPane1.setEditorKit(new HTMLEditorKit());
jEditorPane1.setContentType("text/html");
try {
jEditorPane1.setText(inputLine);
} catch(Exception exp) {
exp.printStackTrace(System.out);
here inputline is an html string read from a cgiscript.
any help would be highly appreciated..
anurag.
You cant just add both components like you did here - they will overlay each other
this.getContentPane().add(jEditorPane1, null);
this.getContentPane().add(editorScrollPane,null);
You need to do it this way
editorScrollPane.setViewPortView(jEditorPane1);
this.getContentPane().add(editorScrollPane,null);
then it should work
Similar Messages
-
Gif imagen dosen't work at o.s 6.0
The gif imagen in profile bbmsn contactas dosen't work in my torch 9800 os 6.0 all my friends that have got the os 6.0 have goy the same proble, i wanna know if there are or when is coming a update to solution this problem
Hi,
the problem whit NI 9223 module and the example that you talk about is know. Indeed, there is a CAR - Corrective Action Request - #30724 that deals with the erroneous implementation of the example.
To improve the code, the owner of CAR, suggest:
Added pipelining loops and removed from FPGA VI to Increase maximum acquisition rate and modified host VI to implement proper DMA FIFO programming practices.
I try to implement and improve the code. Bye
Mario -
UBLR dosen´t work in an interfaces trunk?
I´m configuring Aggregate policer in a Sup720-3B, I need to configure Aggregate Policer in a Trunk interfaces, It´s required to limit the bandwidth for vlan to L2 through an interface trunk, between two catalyst. But it´s dosen´t work. The configuration that I am using is:
S6509#run int giga 3/2
Building configuration...
Current configuration : 167 bytes
interface GigabitEthernet3/2
switchport
switchport trunk encapsulation dot1q
switchport mode trunk
no ip address
service-policy input LIMIT
end
S6509#
S6509#show ip access-lists TRAFFIC
Extended IP access list TRAFFIC
10 permit ip any any
S6509#
S6509#show class-map Daniel
Class Map match-all Daniel (id 1)
Match access-group name TRAFFIC
S6509#
S6509#
S6509#show policy
S6509#show policy-map
Policy Map LIMIT
Class Daniel
police flow mask src-only 2000000 200000 conform-action transmit exceed-action drop
S6509#
S6509#
hostname S6509
boot system flash disk1:s72033-advipservicesk9_wan-mz.122-18.SXF14.bin
logging buffered 32768 debugging
logging rate-limit all 1000
enable secret 5 $1$Oewp$4FbojEBx0Nn.sXO1ZzhIj/
class-map match-all Daniel
match access-group name TRAFFIC
policy-map LIMIT
class Daniel
police flow mask src-only 2000000 200000 conform-action transmit exceed-action drop
S6509#show mls qos
QoS is enabled globally
Policy marking depends on port_trust
QoS ip packet dscp rewrite enabled globally
Input mode for GRE Tunnel is Pipe mode
Input mode for MPLS is Pipe mode
QoS Trust state is DSCP on the following interface
Gi3/4
Vlan or Portchannel(Multi-Earl) policies supported: Yes
Egress policies supported: Yes
----- Module [5] -----
QoS global counters:
Total packets: 233
IP shortcut packets: 0
Packets dropped by policing: 0
IP packets with TOS changed by policing: 0
IP packets with COS changed by policing: 0
Non-IP packets with COS changed by policing: 0
MPLS packets with EXP changed by policing: 0
S6509#
S6509#
S6509#show policy-map interface gigabitEthernet 3/2
GigabitEthernet3/2
Service-policy input: LIMIT
Class-map: Daniel (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: access-group name TRAFFIC
Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
S6509#Contact the wireless carrier to which the iPhone is locked and
ask that carrier if they provide unlocking and if you qualify.
What is the exact wording of any error message you receive? -
LoadingSecondFile - Dosen't work
loadMovie() loads SWFs into _root.mc1.mc2, and I use the below method to be able to identify the selected movieclip. It works when I load the first SWF but when the second SWF is been loaded it dosen't work. What may be the cause for this.
I tried unloadMovie() and removeMovieClip() to clear the movieclip before loading the new file, but no success.
function traceName():Void {
trace(this._name);
for (i=0; i<5; i++) {
_root.mc1.mc2["color"+i].onRelease = traceName;Thanks Ned. But I've got an array named mc
var mc:Array = [mc1, mc2, mc3];
I'm loading the below code as an external swf as well. Could that be causing this issue?
function traceName():Void {
trace(this._name);
for (i=0; i<5; i++) {
_root.mc1.mc2["color"+i].onRelease = traceName; -
In I tunes I can't down load a CD. I get the message "The file couldn't be convereted. You don't have write access for you ITunes media folder or a folder with in it. To change permissions, ... When I do this it still dosen't work.
Thanks C F McBlob but I recursively changed the permissions of my Music directory meaning every file and directory beneath it, as well as the directory itself, had the write permissions added.
I used "chmod -R u+w ./Music" and chmod -R g+w ./Music" to do it.
Alas, no cigar. :-( -
When try to connect my iPod touch 4th gen to my house Wifi it won't connect, it used to work fine but now it dosen't work, but it does say that the internet is available, but when I tap on it it just loads. all other devices work fine.
Does the iOS device connect to other networks? If yes that tend to indicate a problem with your network.
Does the iOS device see the network?
Any error messages?
Do other devices now connect?
Did the iOS device connect before?
Try the following to rule out a software problem:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Power off and then back on your router
.- Reset network settings: Settings>General>Reset>Reset Network Settings
- iOS: Troubleshooting Wi-Fi networks and connections
- Wi-Fi: Unable to connect to an 802.11n Wi-Fi network
- iOS: Recommended settings for Wi-Fi routers and access points
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device.
If still problem and it does not connect to any networks make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar -
Apache in testing dosen't work
i install apache mysql and php in testing repo.
but apache dosen't work.
$ sudo /etc/rc.d/httpd start
:: Starting HTTP Daemon [FAIL]
$ sudo /usr/sbin/apachectl start
httpd: Syntax error on line 232 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/apache/mod_access.so into server: /usr/lib/apache/mod_access.so: cannot open shared object file: No such file or directory
there is not mod_access.so. hwo to run appache daemon?
$ pacman -Ql apache | grep /usr/lib/apache/mod
apache /usr/lib/apache/mod_actions.so
apache /usr/lib/apache/mod_alias.so
apache /usr/lib/apache/mod_asis.so
apache /usr/lib/apache/mod_auth_basic.so
apache /usr/lib/apache/mod_auth_digest.so
apache /usr/lib/apache/mod_authn_anon.so
apache /usr/lib/apache/mod_authn_dbd.so
apache /usr/lib/apache/mod_authn_dbm.so
apache /usr/lib/apache/mod_authn_default.so
apache /usr/lib/apache/mod_authn_file.so
apache /usr/lib/apache/mod_authz_dbm.so
apache /usr/lib/apache/mod_authz_default.so
apache /usr/lib/apache/mod_authz_groupfile.so
apache /usr/lib/apache/mod_authz_host.so
apache /usr/lib/apache/mod_authz_owner.so
apache /usr/lib/apache/mod_authz_user.so
apache /usr/lib/apache/mod_autoindex.so
apache /usr/lib/apache/mod_cern_meta.so
apache /usr/lib/apache/mod_cgi.so
apache /usr/lib/apache/mod_dav.so
apache /usr/lib/apache/mod_dav_fs.so
apache /usr/lib/apache/mod_dbd.so
apache /usr/lib/apache/mod_deflate.so
apache /usr/lib/apache/mod_dir.so
apache /usr/lib/apache/mod_dumpio.so
apache /usr/lib/apache/mod_env.so
apache /usr/lib/apache/mod_expires.so
apache /usr/lib/apache/mod_ext_filter.so
apache /usr/lib/apache/mod_filter.so
apache /usr/lib/apache/mod_headers.so
apache /usr/lib/apache/mod_ident.so
apache /usr/lib/apache/mod_imagemap.so
apache /usr/lib/apache/mod_include.so
apache /usr/lib/apache/mod_info.so
apache /usr/lib/apache/mod_log_config.so
apache /usr/lib/apache/mod_log_forensic.so
apache /usr/lib/apache/mod_logio.so
apache /usr/lib/apache/mod_mime.so
apache /usr/lib/apache/mod_mime_magic.so
apache /usr/lib/apache/mod_negotiation.so
apache /usr/lib/apache/mod_proxy.so
apache /usr/lib/apache/mod_proxy_ajp.so
apache /usr/lib/apache/mod_proxy_balancer.so
apache /usr/lib/apache/mod_proxy_connect.so
apache /usr/lib/apache/mod_proxy_ftp.so
apache /usr/lib/apache/mod_proxy_http.so
apache /usr/lib/apache/mod_rewrite.so
apache /usr/lib/apache/mod_setenvif.so
apache /usr/lib/apache/mod_speling.so
apache /usr/lib/apache/mod_ssl.so
apache /usr/lib/apache/mod_status.so
apache /usr/lib/apache/mod_suexec.so
apache /usr/lib/apache/mod_unique_id.so
apache /usr/lib/apache/mod_userdir.so
apache /usr/lib/apache/mod_usertrack.so
apache /usr/lib/apache/mod_version.so
apache /usr/lib/apache/mod_vhost_alias.soA bunch of modules have changed for apache 2.2 and got new names etc, therefore you have to edit httpd.conf, take look at http://httpd.apache.org/docs/2.2/new_features_2_2.html. For example, mod_access is now called mod_authz_host (with the new identifier authz_host_module, instead of access_module)
-
My password dosen't work in app store either game center !!
My password dosen't work in app store either game center , what is the problem?
Based on the numerous posts regarding iTunes and the App Store, there appears to be an issue at Apple's end. Apple has finally posted an update on the iCloud status page. https://www.apple.com/support/systemstatus/
Do not change your settings. -
AppStore dosen't work in iOS 6
Since I updated to iOS 6, AppStore dosen't work properly.
When I tap on the Purchased tab, it load forever!
Everything else works.
Does anybody have the same issue?
Any Fix??The following procedure partialy solved my problem.
Turn off Genius (Settings --> iTunes Store & App Store --> Apple ID --> Show Apple ID --> Turn Off Genius for Apps), quit the App Store (quick double klick Home button --> press &hold App Store --> tap "-"), turn Genius on, open the App Store.
After this procedure Featured, Charts and Genius started to work.
BUT Search STILL doesn't work :-(
good luck ! -
TEXTAREA in JSP dosen't wrap to next line and I use the following syntax.
<input type='textarea' name='code' rows='2' cols='30' style='width: 180px;height:30px'>
when I type it keep wraping in the first line and dosen't go to 2nd line at all.The same syntax, I tried in a seperate html file it works.
<input type='textarea' name='code' rows='2' cols='30' style='width: 180px;height:30px'>
But, it dosen't work in my jsp? If I use your syntax in my JSP, still not working? -
My computer broke, so I had to change the hardrive-hardisk(?). Now iTunes dosen't work anymore. It says that the program is either locked, is on a locked unit or I don't have the right to open the library? Help please?
Sometimes a restart can fix this issue, but sometimes you have to fix the iTunes Library.itl file.
Try quitting iTunes, renaming the itunes file "iTunes Library.itl" to "iTunes Library Old.itl"
then open itunes again
This should generate a new library file.
From this point you can try two different avenues.
1. Re-add everything to your library by going to the iTunes file menu, and selecting "add to library"
2. You can try deleting the iTunes Library.itl you created, changing the name of the old file back to iTunes Library.itl
I hope this helps. I did something like this a while back and it worked for me. -
I just finished dowloading the new osx upadte and my iphoto program dosen't work anymore
i just finished dowloading the new osx upadte and my iphoto program dosen't work anymore
Most likely you have Office 2004 which are PPC-only applications and will not work in Lion. Upgrade to Office 2011. Other alternatives are:
Apple's iWork suite (Pages, Numbers, and Keynote.)
Open Office (Office 2007-like suite compatible with OS X.)
NeoOffice (similar to Open Office.)
LibreOffice (a new direction for the Open Office suite.) -
MacBook Pro Microphone dosen't work!
Internal Microphone dosen't work suddenly. Please help me!
Your appointment at the genius bar for an evaluation is FREE, in warranty or out. These guys put their hands on these computers all day every day, and they are good at physical problems like this one.
-
Hi i need help one of my key on the keyboard dosen't work for some reason please help
hi i need help one of my key on the keyboard dosen't work for some reason please help
try smc reset
http://support.apple.com/kb/ht3964
and Pram reset
http://support.apple.com/kb/ht1379
(Try pram a few times to get correct sequence)
Check what you have selected in
system preferences/system/accessibility/keyboard
and system preferences/hardware/keyboard (keyboard and keyboard short cuts tabs) -
What is the use of the no disturb funtion? It dosen't work at all!!
what is the use of the no disturb funtion? It dosen't work at all!!
That function actually works. You can test it for yourself. Go to Settings->Turn on Do Not Disturb
then lock the phone (it only works with the phone locked). If you go to Settings->Notifications->Do Not Disturb
you can configure some other things.
While Do Not Disturb is ON you will not be bothered with notifications, sounds or neither the screen lights up when receiving either calls, messages or other notifications.
Try it and see if this works for you
Maybe you are looking for
-
Can't Define Document to Staple every 3 pages in a 1000 page document
Hello, I am printing a LARGE multipage document. I created a 1000+ record data merge in excel for a packet. Each packet is supposed to be 3 pages and duplexed w/ a top left staple. The issue is the document isn't setting up the pages as [1,2] [3,4] [
-
I just ordered an ipad air and I have an ipad 2. Can someone help me so I can use both ipads from the same computer. The new one is for my husband and I am going to take the ipad 2. Do I have to do something different since they will be using the s
-
Dynamic edit on a Report.
Hi, I have a report where I am giving edit link for each record. By clicking this user can go to another page where they can edit this record. But, the requirement is that this button should apprear only for those records where its status is of certa
-
Bom dia pessoal. Gostaria de saber se alguem já passou pelo o problema abaixo.? No ambiente de produção ao se criar um nota fiscal pela a J1B1N e ao começar a digitar alguns itens o sistema gerar o seguinte DUMP. Versão: SAP ECC 6.0 The exception, wh
-
Hi, I have a requirement for disabling Alt+tab and Alt+Ctrl+del on Windows 7 machines which we will use as Kiosk. I couldn't find a setting via GPOs or registries that will get this done. Can someone help?