Can not get JInternalFrame to setLocation
Morning,
I am stuck and could use some help, I've tried everything I could think of before posting, keep in mind I am a eng who is learning java on my own but I've tried everything I can think of already.
I have a JInternalFrame to which I added a pane. I want this frame to overlap other panes, the problem is I can not seem to get the frame to obey the setLocation or setBounds command.
the program is 6800+ lines but here is the relevant lines.
operatingConditionsFrame = new JFrame;
operatingConditionsFrams.getContentPane().setLayout(new BorderLayout());
JDesktopPane operatingConditionsMainPane = new JDesktopPane();
operatingConditionsMainPane.setLayout(
new BoxLayout(operatingConditionsMainPane,BoxLayout.Y_AXIS));
operatingConditionsMainPane.setBackground(new Color(41,128,166));
operatingConditionsMainPane.setPreferredSize (
new Dimension(operatingConditionsMainPaneWidth,
operatingConditionsMainPaneLength));
operatingConditionsMainPane.setMaximumSize (
new Dimension(operatingConditionsMainPaneWidth,
operatingConditionsMainPaneLength));
operatingConditionsMainPane.setMinimumSize (
new Dimension(operatingConditionsMainPaneWidth,
operatingConditionsMainPaneLength));
operatingConditionsFrame.add(operatingConditionsMainPane);
JInternalFrame formulaSubScreen = new JInternalFrame();
formulaSubScreen.getContentPane().setLayout(
new BoxLayout(formulaSubScreen.getContentPane(),BoxLayout.X_AXIS));
formulaSubScreen.setVisible( true );
formulaSubScreen.setResizable( true );
formulaSubScreen.setPreferredSize (new Dimension(200, 200));
formulaSubScreen.setMaximumSize (new Dimension(200, 200));
formulaSubScreen.setMinimumSize (new Dimension(200, 200));
formulaSubScreen.getContentPane().add( formulaMainPane );
formulaSubScreen.setBounds( 0,0,200,200);
formulaSubScreen.pack();
operatingConditionsMainPane.add( formulaSubScreen );
The goal is to be able to control where the frame is placed.
Any help would be greatly appreciated since I have been stuck for a while and need to move on.
Thanks
Pat
Senior Field Applications Engineer
Credence Corporation
[email protected]
www.credence.com
ahhhhh, you are the man!!!!
Thank you so much!!!!!
It is a little more challenging because operatingConditionsMainPane has 4 panes and a internal frame. Each pane changes in length as well as operatingConditionsMainPane such that each time the user enters a new group then new rows corresponding to that group are added.
I just need to keep up with the lenght of the panes but this will work.
Thanks again,
Pat
PS. is there away to turn off the title bar on the internal frame ? I kust want a border around it like a pane has.
Similar Messages
-
I can not get songs that i have down loaded to itunes on my windows 7 computer sync to my iphone no trouble when i use windows xp my older laptop
It depends on what version of iTunes and ios you are using. Usually when one is newer is a newer version of the software it isn't that compatible.
-
Why the 2LIS_08TRTK extractor can not get all data
Hello, BW Gurus.
Why the 2LIS_08TRTK and 2LIS_08TRTLP extractors can not get all data. I had used the RSA3 and get 10 registers, when a check at the VTTK table I had 20 registers, I didnt use filters at RSA3, could you help to know what happen o correct it.Is it because
<i>
Shipment documents and their dependent objects (shipment stages as well as shipment items [deliveries in the shipment]) are only extracted into BW when the Shipment completion status has been set.
This is necessary because the numeric values that result from the delivery documents are only established at the time. If the data were already stored earlier in BW, the shipment data would not be updated if the delivery notes were changed in BW.
</i>
- from oss note 573470. -
Can not get data from database
hi all,
there is a problem , when i write like below :
SELECT * FROM bsis INTO CORRESPONDING FIELDS OF TABLE it_temp
WHERE bukrs = p_bukrs
AND hkont = p_hkont.
p_bukrs , p_hkont are all on the selection screen , and p_bukrs = 1200 another is eq blank. i can not find any data , but with the same condition i can find some data in database , when i debeg i found that p_hkont is initial.
when i write like this :
SELECT * FROM bsis INTO CORRESPONDING FIELDS OF TABLE it_temp
WHERE bukrs = p_bukrs .
this time i can find the data like the database.
so , does someone know where the problem is , why i can not get data ?
kind regards
kevinhi,
if u r using bukrs and hkont as parameters in selection screen then
SELECT * FROM bsis INTO CORRESPONDING FIELDS OF TABLE it_temp
WHERE bukrs = p_bukrs
AND hkont = p_hkont.
this will work.
if u r using then as select-option then the above does n't work.
bcoz select-options work as internal table bcoz of that u have use the query like this
SELECT * FROM bsis INTO CORRESPONDING FIELDS OF TABLE it_temp
WHERE bukrs IN p_bukrs
AND hkont IN p_hkont.
<REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
Edited by: Alvaro Tejada Galindo on Aug 15, 2008 5:25 PM -
"Can not get a key" error when assigning the OAuthTokenIssuer certificate
I am migrating from Lync Server 2010 to 2013. When deploying the 2013 server, it fails when assigning the OAuthTokenIssuer certificate. With the KeyException error below.
I've tried "re-keying" the cert and confirmed that the key is exportable. Does anyone have any insight on how to resolve this?
=============
<?xml version="1.0" encoding="UTF-8"?>
-<CsMgmtLog Name="Set-CSCertificate">
<Info Time="2014-04-21 19:00:53Z" Title="Connection">Data Source=servername.domain.com;Initial Catalog=xds;Integrated Security=True</Info>
-<Action Name="Set Certificate" Time="2014-04-21 19:00:53Z">
-<Exception Time="2014-04-21 19:00:54Z" Message="Can not get a key." Type="KeyException">
<StackTrace Time="2014-04-21 19:00:54Z"> at Microsoft.Incubation.Crypto.GroupKeys.DKMBase.GetCurrentKeyAndUpdate(KeyPolicy& keyPolicy) at Microsoft.Incubation.Crypto.GroupKeys.DKMBase.Protect(MemoryStream plaintext) at Microsoft.Rtc.Management.Internal.KeyManagement.GroupKeyWrapper.Encode(Byte[]
inBytes) at Microsoft.Rtc.Management.Deployment.Core.Certificate.SetCMSCertificate(IScopeAnchor scope, X509Certificate2 foundCert, X509Certificate2Collection certs, Nullable`1 effectiveTime, Boolean isRoll) at Microsoft.Rtc.Management.Deployment.Core.Certificate.SetCMSCertificate(IScopeAnchor
scope, String thumbprint, Nullable`1 effectiveTime, Boolean isRoll) at Microsoft.Rtc.Management.Deployment.Tasks.SetCertificateTask.Action() at Microsoft.Rtc.Management.Internal.Utilities.LogWriter.InvokeAndLog(Action action)</StackTrace>
</Exception>
<Complete Time="2014-04-21 19:00:54Z"/>
</Action>
<Error Time="2014-04-21 19:00:54Z" Title="Error">An error occurred: "Microsoft.Incubation.Crypto.GroupKeys.KeyException" "Can not get a key."</Error>
</CsMgmtLog>
=============
Regards,
YaiPlease try to assign the certificate with Lync Server Management Shell.
Run the following command:
Set-CSCertificate -Identity Global -Type OAuthTokenIssuer –Thumbprint <string>.
Check if you can assign default certificate to Lync Front End Server.
Check the Root Certificate Authority certificate is not expired.
Lisa Zheng
TechNet Community Support -
Can not get out of screensaver
Hello,
I have a Lenovo R500 with Windows 7. When i leave my computer on for a while without using it gets into a screensaver state where i can not get out of, only by restarting abruptly the computer and so all open programs that are still running. How can i solve this?
Thanks!
JohanHi Johan1974,
Here are a few more details:
Open Device Manager by clicking the Start button Picture of the Start button, clicking Control Panel, clicking System and Maintenance, and then clicking Device Manager. Administrator permission required If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
In the list of device categories, expand Mice and other pointing devices.
Right-click the entry for your mouse, and then click Properties.
In the Mouse Properties dialog box, click the Power Management tab, check the Allow this device to wake the computer check box, and then click OK.
There are some screenshots here although the instructions are to remove the check because it is advising how to disable it. You will be doing the opposite.:
Sleep Mode
ThinkPad: T530 / X1 Gen 2 / Helix - Yoga: Tablet 2 Pro (Win) / Yoga 3 Pro
If you find a post helpful and it answers your question, please click the "Accept As Solution" button.
Lenovo Advocate ~ I am not employed by Lenovo or Microsoft. I am a volunteer.
Microsoft MVP - Consumer Security
SpywareHammer -
Can not get the Cisco TSP to show UP - 2003 64bit
Can not get the Cisco TSP to show up on the list of Providers in Phone and Modem Options- Advance tab. Installed ver. 4.1, it seems to install correctly, with no errors but when I restart the server, there is no Cisco TSP001.tsp in the providers list. It works perfectly on my Windows 2003 servers, but will not work on this new Windows 2003 64 bit server. Any tricks to getting this to load?
Thanks
KeithHi
There is no 64-bit TSP yet. Whilst 32-bit apps will work OK for the most part on 64-bit via the WoW function, drivers tend to not be so flexible, and that's what TSP is...
You'll have to bother your Cisco accounts folks to get this prioritised, it is upsetting a lot of people...
Aaron
Please rate helpful posts... -
Can not get Garage Band on my ipone 5c for free
can not get Garage Band on my iphone 5c for free
Hello anime26,
Check out the article below to walk you through getting GarageBand for free. One thing to remember is that in order to get it, you would need to have purchased your iPhone after September 1st.
Free Apple apps for your iPhone, iPad, and iPod touch with iOS 8
http://support.apple.com/kb/HT5913
Regards,
-Norm G. -
Can not get mail and messages from old phone to my new phone
can not get my mail and text messages transferred from my old Verizon Droid x2 to my LG Optimus what's the process
lock321, Let's get your information transferred! Text messages do not transfer from device to device unless you have backed the text messages up with an application on your Droid X2. Do you recall backing your text messages up using our Verizon Cloud http://vz.to/1BkRU5Tor another 3rd party app? Emails usually transfer over once you add your email account information into the LG Optimus. http://vz.to/1BkRYCK
TanishaS1_VZW
Follow us on Twitter @VZWSupport -
Can not get my Sungale Tablet to connect to wifi.
Can not get my Sungale Tablet to connect to wifi.
You need to get your wireless settings first. Get the SSID (wireless network name) and security key (password) for your network. Are you using a Linksys router? Follow these instructions to retrieve your wireless network's info: Checking the Linksys router’s wireless settings. Then on your tablet, go to Wifi under Settings. Select your network and type in the password. If your tablet is an Android, here's how: Connecting your Android™ tablet to your wireless network.
-
My T2 occasionally has to be recalibrated. I downloaed DigiFix some months ago and it seemed to help a bit. I hot synced my data last night and all was well. This morning I could not tap my screen to access anything. I tried cleaning carefully around the screen edge, gently cleaned the screen ( no visible damage to the screen noted ), performed a soft reset ( which usually worked ), a warm reset, followed by a soft reset and finally a hard reset ( kept data ) followed by a soft reset and then the big one, a hard reset with loss of data followed with 5 soft resets in a row. I found through the forum a T2 update which I downloaded and is ready to be installed when I next hot sync.
The unit is now frozen with the x in the starting position in the top left corner. Despite my efforts to gently tap all around the X, I can not get it to recalibrate or even get off the calibration screen. If I could just get back to any regular screen, I could get my data back and install this T2 update.
I also downloaded Pocket DVD studio a week ago and have been able to upload .avi files for viewing videos on my Palm. I works beautifully. I think I still have the original Kimoma player on my T2, but never really like it. Can anyone PLEASE help me out? This T2 update is supposed to help according to the infor I found in forum....MANY THANKS!
Post relates to: Tungsten T2
This question was solved.
View Solution.Thank you for the fina advice. It worked and my T2 is now working perfectly. I think the real trick is using cheap copier paper, not the higher grade stuff or a business card for the cleaning routine. I floded the paper lengthwiase and put a sharp crease in before cutting into little work strips. It took a lot of patience and time to perform a proper cleaning, but it was worth it. Seems that the smallest bit of anything which get trapped under the bezel will throw the T2 into a stupor. Many thanks your your fine advice.....Rgds,John Brown
Post relates to: Tungsten T2 -
I have an iPhone 4 and my lock button is jammed and I also can not touch anything on the left side of my screen well as any pop ups from the phone itself, so i can not get past the set up stage in reset process...how can i fix it/can it be fixed?
Make an appointment at the genius bar and get the phone replaced.
-
Can not get CF7 to Communicate with DB2 v9.1
Installed on a windows server I have DB2 UDB Enterprise
edition 9.01, all the fix packs are current.
I also loaded ColdFusion MX7.02 Enterprise edition on the
same server. I had to download the latest JDBC Drivers from Adobe.
I let db2 create the DSN connections in the file system panel
one Local connection and one TCP/IP both connections passed the
connection test. Db2 also passed the connections test. I tested
each connection separately deleting one before creating the other.
When I get to coldfusions connection data sources panel and
create either connection I get a “ time out” message
from the server when I test the connection.
This morning I installed IIS on the server and now I am
getting a new message below.
I do know that the connections are set up right and the
authorities are correct. If I change any of the parameter either in
db2 or coldfusion it knows that they are incorrect (i.e. password,
user id, db name, server etc.)
I set up oracle and ASP in about 3 hours. Its been 3 weeks
since we purchased Coldfusion and I still can not get Coldfusion
and DB2 working together
Any help would be greatly appreciated
Connection verification failed for data source: TOOLSDB
java.sql.SQLException: [Macromedia][DB2 JDBC Driver]Resource
Limits Reached( ALLOCATE MEMORY FOR NEW SQLSTT FAILED ). Diagnostic
Info: FUNCTION ID = 0049 , PROBE POINT = 0400 , TRACE POINT = 0030
, SUBCODE1 = 8B0F0000, SUBCODE2 = 78A68A98, SUBCODE3 = 00000000,
ERROR MSG = Parser: Memory allocation error.
The root cause was that: java.sql.SQLException:
[Macromedia][DB2 JDBC Driver]Resource Limits Reached( ALLOCATE
MEMORY FOR NEW SQLSTT FAILED ). Diagnostic Info: FUNCTION ID = 0049
, PROBE POINT = 0400 , TRACE POINT = 0030 , SUBCODE1 = 8B0F0000,
SUBCODE2 = 78A68A98, SUBCODE3 = 00000000, ERROR MSG = Parser:
Memory allocation error.
Thanks bobthe only thing i can think of right now is to remove the pc suite, reinstall it, reboot your pc and see if the same problem presists
You know what I love about you the most, the fact that you are not me ! In love with technology and all that it can offer. Join me in discovery.... -
Please I can not get a .jar file to run on XP SP3 start/run/cmd/
I can not get a .jar file to run on XP SP3 start/run/cmd/
Please help if can figure this out. I'm convinced it is a Windows XP SP3 problem from searching on google and seeing other ppl on XP SP3 with same problem (but no working solution for myself). I'll try to be complete-listing all I've done.
I had installed: Java SE Runtime Environment v6u14 for Windows Multi-language
I had checked here it was working properly: http://www.java.com/en/download/manual.jsp
I'm trying to run this jar file (soht-client-0.6.2.jar):
http://prdownloads.sourceforge.net/telnetoverhttp/soht-java-client-0.6.2.zip?download
http://www.ericdaugherty.com/dev/soht/javaclient.html < this is the information for the program.
(yes the file can be executed and should open the program's window
I wanted to post screenshot of it but friend that it's working for isn't here)
_(Please find log of all cmds I did in this post here: http://pastebin.com/f792983df )_
_I have extracted +'all' the files to: C:\062\+_ (I have tried using other directories, same problem)
++I then start/open/run/cmd+
then I: cd C:\062\+
then I try various commands - all+ of these do absolutely nothing- meaning no errors, no reply, no window opens, nothing except enters that directoy again:
java -jar soht-client-0.6.2.jar
java -jar -client soht-client-0.6.2.jar
java -client -jar soht-client-0.6.2.jar
java -jar soht-client-0.6.2.jar soht.properties
soht-client-0.6.2.jar
So I try this cmd: java soht-client-0.6.2.jar
Reply:
C:\062>java soht-client-0.6.2.jar
Exception in thread "main" java.lang.NoClassDefFoundError: soht-client-0/6/2/jar
Caused by: java.lang.ClassNotFoundException: soht-client-0.6.2.jar
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: soht-client-0.6.2.jar. Program will exit.
I try this cmd:
java -jar soht-client-0.6.2.jar -client
Reply:
C:\062>java -jar soht-client-0.6.2.jar -client
Unable to load configuration file: -client - java.io.FileNotFoundException: -cli
ent (The system cannot find the file specified)
SOHT Java Client
The SOHT Java Client requires a properties file. Either start
the application in the same directory as the soht.properties
file, or specify the file name on the command line:
java -jar soht-cleint-<version>.jar c:\soht.properties
So then I do these cmds which produce the exact same error/reply just above; Unable to load..:
j_ava -jar soht-client-0.6.2.jar -client soht.properties_
java -jar soht-client-0.6.2.jar -client C:\062\soht.properties
So then I copy soht.properties to C root and do:
java -jar soht-client-0.6.2.jar -client C:\soht.properties <same error as above
Then from other information I have read I right click on the .jar file, select open with Always open with:
_"C:\Program Files\Java\jre6\bin\javaw.exe"_
Try again.. same problem.
Then I do cmd:
_"C:\Program Files\Java\jre6\bin\javaw.exe" -jar "C:\062\soht-client-0.6.2.jar"_
does nothing, retry the other commands same thing (either nothing or those same replies)
Then I read (http://forums.sun.com/thread.jspa?threadID=5384879) someone had the same problem as I and they solved it by uninstalling all Java/reboot/ then install JDK 6 Update 14 with NetBeans 6.5.1 start NetBeans and then it worked for them.
So I unistalled all Java, rebooted and gave the cmd another try (before re-installing), now a new error, of course:
C:\062>java -jar soht-client-0.6.2.jar
'java' is not recognized as an internal or external command, operable program or batch file.
Then I install Java SE and NetBeans Cobundle (JDK 6u14 and NB 6.5.1) Final Release/ reboot/ open Netbeans/
go to test java page; all is good, run cmds again -and still nothing..
C:\062>java -version
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
I reassociate program with: C:\Program Files\Java\jre1.6.007\bin\javaw.exe_
same thing.. nothing
Thank you very much for your time :D_
PS. My computer has been newly reformatted so needing another reformat I'm sure is not the solution.Thank you very much for your replies Taggert_77 & swmtgoet_x :D
Taggert77_: I have never used NetBeans. I only installed it in the bundle as I had read on another post that somehow installing the bundle magically helped another user with the same problem (he didn't know why it worked after that either).
Before XP SP3 I was able to execute .jar file through cmd prompt. Now I am not.
This file is executable, grab it and you will see. Here is a screen shot (program in front is FlashFXP, behind is the cmd prompt and what should happen):http://www.freeimagehosting.net/uploads/53273b4ddf.jpg
swmtgoetx_: I only did the other cmd's to try to make it spit out something, anything lol :D
The proper cmd is simply: java -jar soht-client-0.6.2.jar
I did give your cmd a try, and it produced nothing :( (just like the other correct cmds)
java -client -jar soht-client-0.6.2.jar soht.properties
Thank you again...the mystery remains
PS. If you do a search for this you'll find an amazing amount of XP SP3 users with the same problem and no solution posted that I could find except one chap that did the unistall install order that I did above). -
I used the wrong password to join my new belkin wifi. Now that I have the correct password, I can not get the to the join screen with the space to type in the password. I continue to get the unable to join message. I have put the touch to sleep and I have turned on and off the wifi and join options on the Network screen page. Does anyone know how to get pass this block of the wrong password to a new page that will allow me to type in the correct password. I see there is a option that asks if I want to reset the network settings.. is that what I should do? and what does it erase when I do that? Thanks for any input anyone has.
Yes. Reset network settings. Head to Settings -> General -> Reset and tap Reset Network Settings.
B-rock
Maybe you are looking for
-
I was on Snow Leopard with no issues accessing my Windows and Java based hospital computer system . I swithced to Mountain Lion and now I have NO access to any of the hospital applications remotely. Is there a way I can get back to Snow Leopard or ma
-
Time Capsule also backup an external hard drive connected to Mac?
My internal hard drive on my iMac Intel 2.4 20" is filling up so I'm looking at getting an external Firewire 800 hard drive to connect directly to the iMac. Can my Time Capsule back up my internal hard drive as well as an external hard drive connecte
-
Change font size in iMessage in the communication pane, for IOS 6
I am getting older, and I would like to increase the font size of text in iMessage. The double tap zoom function does not work in this program. Any suggestions ? I am sure that i am not the only one that can not always find his glasses. Thanks in adv
-
Changed group membership in WGM 10.6.3 from the 10.6 server. The change takes overnight to work. Formerly ran WGM from my 10.6.8 mac (worked perfectly) but now I am at 10.7.5 and must use WGM on the server. Has anyone else seen this behavior?
-
Can I use RAW files in Premiere Pro on Mac?
Help Please on Mac and Im on Mac and Do Time Lapse , I use Lightroom to proceDo Time Lapse , I use Lightroom to process and Batch Process, Is there any way to use Raw files from Lightroom to Premier Pro to make my Time Lapse, I saw there was a Plug i