3 questions on visual changes and positioning

Hello everyone,
I hope I have the right section for my questions. (so many categories) I have three questions that I hope I can get answered.
Question 1 ) I am writing an application that uses a JDesktopPane. I have a menu that each choice opens up a JInternalFrame. One of my internal frames contains option settings for the app. One of the option selections is the type of look and feel of the gui. I have three JRadioButtons that chooses the three built in types. When I use the method (see below) to change the gui look, it only effects the Internal Frame, not the rest of the app. Is there a way I can get it to change the rest of the frames and the main JDesktop.
private UIManager.LookAndFeelInfo looks[];
public void lookAndFeel()
          looks = UIManager.getInstalledLookAndFeels();
          try
               UIManager.setLookAndFeel(looks[lookChoice].getClassName());
               SwingUtilities.updateComponentTreeUI(this);
          catch(Exception exception)
               try
                    UIManager.setLookAndFeel(looks[0].getClassName());
               catch(Exception guiException)
                    // Nothing yet...
     }Question 2 ) Positioning --- I understand how to use layout managers, but is there a way I can override the positioning of objects? Sometimes, I want to postion objects to a point. Instead of automatic positioning.
Question 3 ) Adjusting properties --- I notice that when I create a different font and if I want an object to use that font then I need to setFont() for the object. Unfortunately, I have noticed that this needs to be done for every object. Is there a way to set the font for all the objects in a JPanel or JFrame at once?
Thanks everyone, (sorry for the numerous questions, just has been building for awhile)
7

Question 1 ) I am writing an application that uses a
JDesktopPane. I have a menu that each choice opens up
a JInternalFrame. One of my internal frames contains
option settings for the app. One of the option
selections is the type of look and feel of the gui. I
have three JRadioButtons that chooses the three built
in types. When I use the method (see below) to change
the gui look, it only effects the Internal Frame, not
the rest of the app. Is there a way I can get it to
change the rest of the frames and the main JDesktop.Try doing
revalidate();
repaint()
on all of them
Question 2 ) Positioning --- I understand how to use
layout managers, but is there a way I can override the
positioning of objects? Sometimes, I want to postion
objects to a point. Instead of automatic positioning.Your choice is either to call setLayout(null) and set component positions yourself or to create/extend your own layout manager
>
Question 3 ) Adjusting properties --- I notice that
when I create a different font and if I want an object
to use that font then I need to setFont() for the
object. Unfortunately, I have noticed that this needs
to be done for every object. Is there a way to set the
font for all the objects in a JPanel or JFrame at
once?Not that I can think of. Why not just create one method where you can set everybody's font with a font parameter?
>
Thanks everyone, (sorry for the numerous questions,
just has been building for awhile)
7

Similar Messages

  • Where is document number and position changed in CDPOS?

    Hi experts!.
    I think that my question is very easy but I don't know where is it.
    I need to know more details about item changed (item information is in CRMD_ORDERADM_I but I don't know relationship, maybe OBJECT_ID??)
    A lot of thanks in advance.
    Best regards.

    First of all a lot of thank you for your quick answer.
    I have document class, I know it.
    But I don't know document number changed and position changed.
    I re-write my question:
    I have data in CDPOS but details of item changed are in CRMD_ORDERADM_I table. What is the connection between this two different tables? OBJECT_ID no. Maybe OBJECT_ID is a sum of document numberposition... Something like this?.
    A lot of thanks in advance.
    Regards.

  • Skinning TextInput (and others) changes text position

    Hi there,
    I've been working on updating the visuals of our application and one path I took was skinning components. There's a designer in our team that works well with Photoshop and Flash (but not with Flex or programming at all), so I sent him the link of Narciso Jamarillo's article on creating skins for Flex using Adobe Creative Suit.
    Although we had few troubles working over the default template for HaloSkin at first, we kinda figured out most of them. But now there's one problem I couldn't find a solution yet. Whenever I apply the skins he made, the components that show text like TextInput and ComboBox start showing text in the wrong position, a little above the center and closer to the borders (sometimes it gives the impression it cuts out characters when I align the text at right).
    Here's a picture:
    Skinned on the left, not skinned on the right.
    So I'd like to know what exactly has influences over text position when I create a skin in flash, or any hint on what is causing this behavior.
    Thanks in advance.
    With regards,
    David

    I asked the designer to check in Flash and all grid lines are in proportional distance (4 pixels from edge). I also asked him to create a new skin from template, without any changes, and it displayed the same behavior, so I don't think it's a scale 9 slice configuration problem.
    Could you elaborate what kind of "minor tweaking" I could do on Flash? I ask because we just changed the shapes and and the 9 slice scale grid, is there anything else you could setup for a skin?
    David

  • HT4061 I'm having trouble.  I am visually imapired and trying to update our security questions

    I am totally frustrated.  I was trying to buy a app for $2.99 but when I had the credit card information I selected "None" cause I wanted to use an iTunes card.  Now Apple has me going to "Manmage my Apple ID"  It gives me security questions we gforgot answers to and when I clicked on the link the makes changes to security questions/answers it says "e mail sent" (This happened 4 times but no e mail has been sent.)  Very frustrating.  I am visually imapired and have three apple products for the visual assessibility but I cann't assess what I want. 

    Hello Shannon,
    It sounds like you are not getting the email to reset your password.  I understand your frustration with this.  If you have a rescue email setup for your Apple ID, the email will be sent there and not your Apple ID email address:
    When you provide a rescue email address, all future security emails, such as password resets from iForgot, will be sent to the address provided.
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    You might want to check your other email accounts for the password reset email, including their Spam folders. If you continue to have issues, please contact our Account Security Team:
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Thank you for posting in the Apple Support Communities.
    Best,
    Sheila M.

  • Can you change the units used for size and position in layout editor?

    Hello,
    In Aperture 3.4, does anyone know if you can change the units used for size and position in layout editor?  The page is set in inches, but the image size and position are given in centimetres and I would prefer to work all in inches to create custom layouts.  I can't see any way to change this.  If anyone knows how it would be much appreciated.  Thanks!

    Aperture uses the unit settings defined in the System Preferences.  Set the "Measurement Units" in the "Region" tab of the "Language & Text" preferences to "US"; the Aperture will display the Size & Position in inches, if it is the "Book" layout manager you are asking about.
    Merry Christmas!
    Léonie

  • How can I change my original security questions? After changing my AppleID and password, I am not given an opportunity to change my security questions, which I cannot remember the answers to, so I cannot purchase any music.

    How can I change my original security questions? After changing my AppleID and password, I am not given an opportunity to change my security questions, which I cannot remember the answers to, so I cannot purchase any music.

    See my User Tip for some help: Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities.
    Send Apple an email request for help at: Apple - Support - iTunes Store - Contact Us
    Call Apple Support in your country: Customer Service: Contacting Apple for support and service

  • Change of Position in MSS with Process and Forms

    Hi,
    I'm trying to create authorizations for a change of position in Process and Forms, but every time that I choose a new position to the employee I get the error, No authorization, with this details:
    No authorization
    Message no. 5A277
    Diagnosis
    You are not authorized to perform this activity.
    System Response
    The system cancels the activity you have tried to perform.
    Procedure
    If necessary, you can maintain missing authorizations in Customizing. Please remember that both the standard authorizations and the structural authorizations are checked.
    I have managed to change the position and create positions in SAP with t-code PPOME, but in the MSS Portal it doesn't work.
    I use authorization with context ( S_ORIGINCON ) with a FM in the structural profile that returns my objects ( O, S, P ). I also have personnel planning authorization ( PLOG ) for the returned objects.
    Any help to overcome this problem will be greatly appreciated.
    Regards,
    Diogo Silva.

    Hi there,
    We stop using SAP code to manipulate the infotype 0001, and started using our own code throw generic services I guess (Not my part of the project).
    The problem was that in a change of position for a new created position or even for an existing position there was a need for access to the default position OBJID='99999999'. That's why when you give authorization for object OTYPE=' ' and OBJID = ' ' you will not get an error, because it gives authorization for all objects, witch defeats the purpose of security.
    If you debug the functions used by the portal (MSS or ESS) you will see that in some FM on the call stack there is passed a flag that controls wether or not there is a authorization check for that default position.
    Basically ww stop using the SAP code, and started calling this FM (BAPI, etc) ourselves, and them we manipulated that flag so that we could circumvent the error.
    I hope it was clear, sorry if it was not, truth be told it was a long time since I finish that project.
    If you need anymore help just let me know.
    Regards,
    Diogo Silva.

  • I have just downloaded Mac OS X 10.9 and Pages 5. When I open any pre-existing document in the new Pages the format is zoomed to 125%, the headers are out of position, the margins are changes, and inserted images are also relocated. What can I do?

    I have just downloaded Mac OS X 10.9 and Pages 5. When I open any pre-existing document in the new Pages the format is zoomed to 125%, the headers are out of position, the margins are changes, and inserted images are also relocated. What can I do?

    Have you tried resetting the SMC ?     >  Resetting the System Management Controller (SMC)

  • Hi I want to change your e-secret questions because I forgot the answers I have tried sending reset questions on my mail and I have not received mail

    hi I want to change your e-secret questions because I forgot the answers I have tried sending reset questions on my mail and I have not received mail
    New mail that I want is [email protected]
    Alternative to the Old one

    From  King Penguin
    If you have a rescue email address set up on your account then you can try going to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you might see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address set up then go to Express Lane  and select 'iTunes' from the list of 'products' in the middle of the screen.
    Then select 'iTunes Store', and on the next screen select 'Account Management'
    Next choose 'iTunes Store Account Questions' or 'iTunes Store account security' (it appears to vary by country) and fill in that you'd like your security questions/answers reset.
    You should get an email reply within about 24 hours (and check your Spam folder as well as your Inbox)

  • HT5312 i want to change security questions and you told me to sent an email to be change and nothing sent to my email

    i want to change security questions and you told me to sent an email to be change and nothing sent to my email

    If it hasn't arrived after a few hours and isn't in a spam filter, you need to contact Apple. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
    (90777)

  • Fcpx 10.2 export changed the shape and position of my shape masks. Ideas?

    Fcpx 10.2.  Upon export it changed the shape and position of my shape masks.   It also created "cordoroy" looking screens where some photos had been.  Looking for help.

    Hi Tom,
    Thanks for the response.  My project is 1280x720 29.97 fps.  Here's a shot of the corduroy.  The first time I exported using the "export" choice.  I rebooted and exported again choosing "master" file.  The settings were the same on both- 1280x720, 29.97, H.264.  The corduroy went away the second time.  The masks are still off.  I'm using them throughout my project.  They are closer to center on both of the quicktime movie outputs than on my screen in the project.  I could send pics.

  • How can i change the position and size of the applet

    dear fellows,
    how can i change the position and size of the applet in which form is running over the web.
    thanx
    Mochoo

    Yes, you can add the following line to your formsweb.cfg section :
    HTMLbodyAttrs=onLoad='javascript:self.moveTo(100,100)'
    if you are in SEPERATEFRAME = FALSE
    Or Set_Window_Property( FORMS_MDI_WINDOW, POSITION, X, Y ) ;
    if you are in SEPERATEFRAME = TRUE

  • Update table HRP1001. Change the Position and the Org Unit.

    Hi,
    I am new to SAP HR and have been given a work in this area. The requirement is to update the relationship table HRP1001 replacing the old Manager' Position and the Org Unit with the New Manager's Position and the Org. Unit.
    I have some how found out the way to get the Postion and the Org unit of the old manager. Now I am replacing the same with the new details using the Update HRP1001 Command but this is the old and not recommended method acheiving this task.
    Can anyone please suggest me any Function Module OR the BAPI to update the HRP 1001 table with the New MAnager;s Position and the Org Unit.
    Thanks...!!!
    Regards,
    Deepak.

    Hi Kalpesh,
    I am using the FM: 'BAPI_HRMASTER_SAVE_REPL_MULT'but still not updating. I am trying to change the Position and the Org unit but not successful yet.
    I first used the Operator 'I' withi the table BAPIHROBJ-OPERATOR, it failed then I tried 'U' for update it still failed. Can you please let me know how many such operations possible with their charecter values apart from I & U. the domain value set does not exist as it is char1.
    Now I came to know that I have to terminate the old relationship by changing the ENDDA and create a new one with the new BEGDA as tomorrow's date.
    Can you please suggest something.
    Regards,
    Deepak.

  • How do you change the position of email sender so that it's on the left (sender[from], subject and date received)

    How do you change the position of email sender so that it's on the left (sender[from], subject and date received)

    In the Thread Pane where your messages are listed?
    You see that bar with the labels "From", "Subject", "Date" and so on? Well, they are buttons. You can click on them to sort your messages. You can also drag them with the mouse left and right to reposition them, and you can drag their ends to change the column widths.
    These are standard computer actions; you can do all of this in Windows Explorer ("My Computer") too.
    In Thunderbird, a right-click on any of these buttons will reveal a pop-up menu where you can select and deselect the columns to control what is shown.
    More here: http://www.ramsden.org.uk/8_How_to_sort.html

  • I forgot my answers to security questions. I could not change and I am unable to make purchases at the Apple store. What do I do?

    I forgot my answers to security questions. I could not change and I am unable to make purchases at the Apple store. What do I do?

    Go to http://appleid.apple.com and select "Manage your account". Log in with your Apple ID and password, then select Password and Security from the left column.
    You need to know the answers to your existing questions to reset them. If you don't remember your answers, there may be a link on that page where you can have a reset email send to your Rescue email address. This will not appear if you have not provided a Rescue email address, and may not appear even if you did.
    If there does not seem to be any way to reset your security questions, contact iTunes Support here: http://www.apple.com/support/itunes/contact/ They will respond within a business day. Be sure to check your spam or junk mail folders for their response.

Maybe you are looking for