Jtable And DB again
When I use the following code , A new Jtable is created and also populated .
this.jTable1 = new JTable(myProject.rowVector ,myProject.columnVector);
scroller = new JScrollPane(this.jTable1);
getContentPane ().add(scroller , BorderLayout.CENTER);
jTable1.setBackground(Color.cyan);
validate();
//// OK ;
Now .....
this.jTable2 is another Jtable that I have inserted into a Form .
I have some difficulties on populating this.jTable2 using the myProject.rowVector AND myProject.columnVector
Is there a special method to do so ?
Please advise
Thanx
IB
where in the border layout are you putting jTable2?
If you are trying to put it in CENTER, remember only
one control per area.jTable2 is created by selecting the JTable icon from the SWING Tool Menu and
It is inserted into a seperate form . I have setup the properties for it in the property menu.
Is it possible to populated without creating a new instance for it , un like jTable1 ??
Similar Messages
-
Hi,
I am fairly new to Swing. I don't understand the following behaviour of JTables. If I minimize the frame containing the JTable, and afterwards maximize it again, the getValuAt method is called again for all visible rows and columns, even if the table data did not change. The same happens whit a mousemove over the JTable, and if another screen is dragged over the screen and afterwards dragged away from the screen.
It is possible this is normal, but it affects the performance of the application in a quite considerable way.
Greetings,
MarcStansislavL is right, when the JTable is repainted also the data needs to be repainted and therefor retrieved form the DataModel. The way to solve your performance issues is to read the data once into a Vector of beans and use this to retrieve the value's for your JTable, like:public Object getValueAt (int row, int col)
SomeBean sb = (SomeBean) data.get(row) //data = Vector of beans
switch (col)
case 0: return sb.getID();
case 1: return sb.getName();
return null;
}greetz,
Stijn -
In my Ipad, when I open Mail application it is blank. It stays like this for a few seconds, then it closes and open again by itself. Keeping all time blank.
Have you tried to force quit the app. Double tap the home button. Scroll sideways if needed to bring the mail app preview up on the screen. Flick that preview up and off the screen to close the app. Tap on the home page preview to exit the mode. Then try your mail again.
Other things people have needed to do, especially after an update is to go into the settings, mail contacts and calendars, delete their mail account (it only deletes it off the iPad not out of existence) then exit out, go back i and re-enter the info. -
I am on windows 7 and I upgraded to the newest verison of firefox and now it will not open. I have removed firefox completely and uploaded it again and that did not work. I then made sure it could get through my firewall and that did not work. So my latest attempt I removed firefox 10 again and uploaded the beta version hoping that would do it and once again nothing. It will not open at all. Please help - is there a live chat or a number to talk to someone at Firefox?
I think when uninstalling you may also have to choose (tick) to delete the preferences and other personal data like the bookmarks, stored passwords etc. to erase completely. If you are installing afresh, please try right-clicking on the file and '''Run as administrator''' to install. And when uninstalling, please also make sure choose to delete all data and also manually delete any '''Mozilla''', '''Mozilla Firefox''' or '''Firefox''' from %appdata%, %localappdata% and %programfiles%. You can open a location by typing for eg. %appdata% in the '''Run''' box (Windows key + R). You may also have to check the '''VirtualStore''' folder in %localappdata%. Files in the VirtualStore can be problematic. I think a clean installation may help.
[https://www.mozilla.org/en-US/firefox/new/ Firefox]
[http://kb.mozillazine.org/Installation_directory Installation Folder]
[http://kb.mozillazine.org/Profile_folder Profile Folder]
Please note that using system restore would usually damage the Firefox installation. -
Is there a way to create an e-mail template to send over and over again to different people?
Can I create a template and use it over and over again? I found where I was able to save an e-mail as a template but I cannot find where to access it to be able to send it.
Read this.
http://kb.mozillazine.org/Thunderbird_:_FAQs_:_Using_Templates -
Hi ,
I am trying to create a new web app using Central Administration in Sharepoint 2010 and getting an error "The password supplied with the username was not correct. Verify that it was entered correctly and try again".
I tried running this command also "stsadm -o updatefarmcredentials -userlogin <domain\username> -password <newpassword>" but when it got executed it showed me "Access Denied".
What should i do ??
Thanks in advance.
Regards, AnuragHI,
right click on command icon and click run as administrator then use above stsadm commend to update credential. If still you face same issue then try with powershell as mention in below link: (make sure that you open sharepoint powershell as run as administrator)
http://smartrider.wordpress.com/2010/07/15/powershell-script-to-create-web-application-and-site-collection-in-sharepoint-2010/
let us know your result
Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
you see a reply being an answer to the question of the thread, click "Mark As Answer -
We are getting the following error "there is a problem with adobe acrobat/reader. if it is running please exit and try again. (523.523)" and a gray screen appears (Image not viewable) with multiple users. We are using Adobe Reader XI (11.0.05) and (11.0.06). The current workaround is to log off the website and log back in. Once the user logs back in, the pdf will appear. However it occurs anywhere from 2-8 times in a day. Anyone else having this issue or know of another workaround? Any suggestion with how to fix? Please help!!
Hi Valerie,
Please let me know the version of Adobe Acrobat/Reader & operating system installed on your computer?
Also, try this:-
Launch Adobe Reader/Acrobat.
From the menu, choose Edit -> preferences -> General
Uncheck the option for "Enable Protected Mode at startup"
Restart the Adobe Reader and web browser.
Regards,
Aadesh -
cannot send or receive yahoo mail or gmail from iPhone . installed ios 6 recently. tried rebooting the phone and deleting the email account and adding again but nothing works ! can someone suggest a solution?
Not sure about yahoo, but for gmail, I done the following:
Set up using Exchange on iPhone, it'll keep prompting for password. On PC use captcha option, log in to gmail account from PC after completingg captcha option, enter password on iPhone.
See how that goes for gmail, let us know.
Hopefully someone will have fix for yahoo. -
Couldn't find root user. Sleeping and trying again.
Last week I installed an MSO 2004 update on my G5 iMac running 10.4.11.
Then I attempted to repair permissions. The repair permissions process
halted at about half of the progress bar. I let it cook for about two
hours without success, then tried to force quit Disk Utility. I
couldn't force quit it, so I very reluctantly turned off the Mac;
something I've rarely ever done. I waited five minutes and then turned
the Mac back on. The startup sequence progressed to the point where the
system displays the gray apple on the gray background, and the circular
progress indicator or gear begins turning. I let it turn for one hour
and then powered off the iMac, then powered it back up with the same
results.
I powered it off again and then commenced a Safe Boot. Same results as
before.
I powered it off again and then started it in Single User Mode. No
problem. I ran /sbin/fsck -fy. No problem.
I typed "reboot" and it rebooted. This time I start it in Verbose mode.
After the preliminary startup code, the system began repeating the same
message lines:
dsFindDirNodes returned -14071, count = 0 count = 2147483646
Couldn't find root user. Sleeping and trying again.
A Google search produced very few results. I don't have a backup
because I inherited this iMac from my 75 year old semi retired father
who wanted a 20-inch Intel iMac instead. I just goof around with the G5
iMac from time to time, and am considering giving it to my little niece and
nephews. It worked great for about a month. I have customized my
user account and the accounts for the little ones, so I really don't
want to wipe the hard drive and reinstall Tiger again from scratch.
I booted from the suspect internal hard drive into single user mode.
I ran /sbin/fsck -fy on the internal hard drive.
All tests passed.
I ran fsck_hfs on the internal hard drive.
It returned a message that stated that I needed
to add additional information.
I ran fsck_hfs with several switches enabled, but
it continued to return this message.
I performed the procedures in Apple's article 107210
"Mac OS X, Mac OS X Server: How to Replace the NetInfo
Database (Restoring from defaults).
This did not solve the problem.
I booted this computer from my external Firewire hard drive that I use
to create nightly backups on my G4 iMac using SuperDuper!.
I ran Disk Utility Repair Disk Permissions on the
internal hard drive.
There were no permissions errors.
I ran Disk Utility Repair Disk.
All tests passed.
I ran the TechTool Pro Suites --> Advanced Tests on
the internal hard drive.
All tests passed except for "Startup File" which it
listed as " <Not Present>".
The description of this test is:
"This test checks the Startup file. The parameters
within this file contain the information used by
the computer ROM to determine what program will
boot the computer as well as other system-specific
aspects."
I ran the TechTool Pro Performance --> Maintenance
routine on the internal hard drive.
It completed the maintenance successfully.
I ran DiskWarrior on the internal hard drive.
It reported no directory errors, but I replaced it
anyway.
While booted from the external Firewire hard drive, I viewed what
appears to be the proper compliment of folders on the internal hard
drive. Of course, I didn't examine and verify every subfolder in the
hierarchy, however, examining the Applications, Library, System, and
Users folders two deep seemed to indicate that everything was there.
I booted this computer from my Tiger installation disk. I selected
Utilities --> Reset Password... (I think.). It listed only the
Administrator account (root) on the internal hard drive. It did not
list the other three accounts that I created on this hard drive, even
all three respective folders are present in the Users folder. However,
it did list all four accounts on the still attached external Firewire
hard drive.
By every measure, this drive and its directory are sound. I am
concerned that TechTool Pro reported that the Startup File is Not
Present. Beyond the meaning that the words suggest, I'm not sure what
this really means. I checked the Micromat site and found the following:
The Startup File has been defined but not yet
implemented by Apple.
What does the message signify:
dsFindDirNodes returned -14071, count = 0 count = 2147483646
Couldn't find root user. Sleeping and trying again.
Can I effect a simple repair?
Thank you.I think besides a reinstall, only DiskWarrior from Alsoft...
http://www.alsoft.com/DiskWarrior/
stands a chance of fixing it. -
I keep getting an error message when trying to log on to FaceTime and iMessage on my iPad mini with wifi...Could not sign in. Please check your network connection and try again. Help!
Using FaceTime http://support.apple.com/kb/ht4319
Troubleshooting FaceTime http://support.apple.com/kb/TS3367
The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
http://tinyurl.com/a7odey8
Troubleshooting FaceTime and iMessage activation
http://support.apple.com/kb/TS4268
Using FaceTime and iMessage behind a firewall
http://support.apple.com/kb/HT4245
iOS: About Messages
http://support.apple.com/kb/HT3529
Set up iMessage
http://www.apple.com/ca/ios/messages/
Troubleshooting Messages
http://support.apple.com/kb/TS2755
Setting Up Multiple iOS Devices for iMessage and Facetime
http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
FaceTime and iMessage not accepting Apple ID password
http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
Unable to use FaceTime and iMessage with my apple ID
https://discussions.apple.com/thread/4649373?tstart=90
For non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
Cheers, Tom -
I have an ipad2 and all of a sudden I have stopped getting sound in my game apps. I get normal sound on YouTube and I player and downloaded DVDs. If I plug headphones in then I can get sounds for the games. I have switched the lock screen button off and on again and done a reset twice, can anyone help me with this?
Check your settings. The iPads have a small switch on the right edge. It can be used as a rotation lock to keep the screen from automatically reorienting itself as you move around, but you need to have the tablet’s settings configured properly. That same switch, right above the volume buttons, can also be set to function instead as a mute button to silence certain types of audio.
If the switch is set to work as a mute button, you can change its purpose to “screen-rotation lock” by tapping the Settings icon on the home screen. On the Settings screen, tap General on the left side, and on the right side of the screen flick down to “Use Side Switch to.” Tap to select Lock Rotation or Mute to set the button’s function. Even if you set the side switch for your preferred use, you can still mute the Mini or lock the screen. Just double-click the Home button, and when the panel of apps appears along the bottom edge of the screen, flick the row from left to right with your finger. Tap the icon on the far left side of the row to either lock the iPad’s screen or mute the iPad’s alerts, notifications and sound effects. Music, podcasts and video are not muted unless you turn the volume all the way down.
iPhone: Can't hear through the receiver or speakers
http://support.apple.com/kb/ts1630
http://www.atreks.com/app-no-sound-on-ipad-4-%E2%80%93-what-to-do/
To solve some sound problems, just follow these simple steps
1. Go to Settings
2. Tap on General
3. Tap on Reset
4. Tap on Reset All Settings
Cheers, Tom -
Unable to reach Adobe servers, Please check firewall settings and try again
I have been a creative cloud customer since it started and I've never experienced such buggy software as the app manager. The customer experience is just shocking and I wish Adobe would just offer direct downloads for the software we need rather than use the app manager.
I'm currently trying to install the latest versions of the programs but the app manager keeps showing "Unable to reach Adobe servers, Please check firewall settings and try again in a few minutes".
I do not have any firewalls on my network.
I've uninstalled all previous versions of the applications.
The app manager will download a few % and then the message appears again. I click retry and it downloads another few % before showing the message again. I keep doing this until the program is fully downloaded and installed which take hours. Because I am able to eventually download the app, the error should be anything to do with my setup or internet connection as I've never had this issue before when installing adobe products.
Is there a way we can bypass the app manager and install the programs directly? This is getting very annoying and I just need my apps to install without wasting days clicking the retry button.I'm having the exact same problem. Photoshop is stuck at 0%.
Have the links for direct download changed? When I went to http://prodesigntools.com/adobe-cc-direct-download-links.htmland then scrolled down the page to:
Photoshop CC 2014 (64-bit)
740 MB
File 2
801 MB
File 1
and then clicked on File 1 and File 2, I reached a page that says "You don't have permission to access "http://trials3.adobe.com/AdobeProducts/PHSP/15/win64/Photoshop_15_LS20_win64.7z?" on this server." -
is anyone else having trouble setting up messages with the new mountain lion software? I keep getting a notification that i cant sign in and it is saying, check network connection and try again, but i have full wifi bars, thanks, Justin
Install this to get X11 functionality back in 10.8
http://xquartz.macosforge.org/landing/
Worked great for me and others.
Jerry -
When I publish my site on one specific page where I've added {tag_pagecontent} I get the error:
'Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.'
I'm trying to get a blog module going, I've even deleted the html insert bog with the tag in and re-published which then I don't get the error but as a result no blog either. But then I add the tag in again and publish the error comes back. I've used the dev console and it says that my musicians sample.css is out of date but why is it only out of date when I add in html to my muse site?
HELP!!!! I've searched other threads and to no avail I'm publishing so no direct ftp going on. the only thing I changed in business catalyst was the module stylesheet in order to style the blog. I've tried uploading and replacing all files nothing seems to work. the site is here:
http://www.musicstudentsforhire.co.uk/musicians-samples.html
It's only this page as it has the blog on. Also I've noticed when I've re-published occasionally it will show the mobile version on my desktop and not the desktop version??? no idea why that's happening so I've had to turn that off. any explanation on why that is happening would also be much appreciated.I haven't received an answer as of yet, I'll post t on here when I do. I de-activated the mobile site because it's my clients site so he needs it to be operational during the day. I hope someone gives me an answer soon.
-
All of the software is installed and it worked without any problem. The problem appears to occur after the computer has gone into standby. The only way I can get anything to print is to turn it off the printer and then turn it back on again. The troubleshooter simply tells me that the printer appears to be off (which it isn't) and tells me to turn it on. Is there any way to bring an offline printer back online without either rebooting the whole system or turning the printer off and on again? Needless to say, this is very annoying. I have never had this problem with any other printer.
CampValdez, did you ever solve your problem? I'm having a similar problem with a Photosmart 7525. I just returned a 7510 because of the same problem and now the 7525 won't work. I've spent the better part of 3 days on the phone with HP tech support to no avail and I'm ready to take the 7525 back. The software and printer have been reinstalled many times. I've changed the printer IP to a static IP. I've removed my Norton security software, I've tried to set it up on another computer, I've changed the channel on the router to channel 11 and nothing works for more than 10 minutes. The blue light on the printer indicating that it is on the network always is steady blue. I can get it to work by pressing the wireless symbol and then turning off the wireless and then turning it back on. When it's working I can access the printer from my web browser with the printer's IP. It seems once it goes to sleep, I cannot access the printer from the browser. Touching the screen and waking up the printer does not restore the communication between the computer and the printer. Since this problem persists with two printers and two different computers, I'm suspecting a router setting but I'm stumped. If you find your solution, I bet it's the same problem I'm having. It's unbelieveable that HP tech support seems clueless. A search shows this is not an uncommon problem.
Maybe you are looking for
-
Hi All, Request your help on below issue: I am trying to clear the open item in one of the GL account and there is difference of 0.01 in local currency. Therefore set up tolerance of 0.01 using t. code OBA0 and assigned to GL master. GL account has b
-
Need help with setting a variable using actionscript
So I am trying to import in XML and this is working fine, But once in flash I need to reference this variable in a later script. Here is what I got. function loadXML(loaded) { if (loaded) { /////this is the variable, which is working, it pulls the in
-
Airport Extreme 6 gen works with new computers but not old.
Hey everyone, Just bought a new 6 gen AE because our old one got fried. I got the new AE working very quickly, but it only allows my 2012 Retina MBP to connect and my iPhone 5s. My iPhone 4s and 2010 MBP connect, but when I do network diagnostics it
-
I want to display many picture (gif, jpg) in a window with their names (all to be shrink to the same size). i also want to be able to select one of the pictures (just one at a time). how can I do it? (p.s- the problem is with the way to display them,
-
HT1199 I can't open iPhoto on Mac. Can anybody help me?
I can't open iPhoto on Mac. Can anybody help me?