Removing "Cancel" Button from JColorChooser...
Hey
I was hoping that somebody knew of a way of getting rid of the "Cancel" Button in JColorChooser.
Thanks for anyones help!
Claire
x
I don't think you can do it without overriding big chunks of it. The problem is that the dialog the buttons are on is actually created when you call showDialog(). Here's something thoughimport java.awt.*;
import javax.swing.*;
public class Test2 {
public static void main(String[] args) {
JColorChooser jcc = new JColorChooser();
Color c = null;
while (c==null) c = jcc.showDialog(new JFrame(), "Pick a Color", Color.white);
System.out.println("You picked "+c);
System.exit(0);
}
Similar Messages
-
Remove EDIT button from FPM ToolBar
Hi All,
I am new to FPM, and I am working on SRM 7.0. In the Monitor Shopping cart WD application, after search event, a list of Shopping Carts are displayed, when we click on one of the SC number, the SC screen opens as a new Pop-up.
Here we have an EDIT button, and we need to remove this button from this screen.
Technical Details(EDIT button):
Application: /SAPSRM/WDA_L_FPM_OIF
Web Dynpro Component: FPM_OIF_COMPONENT
Window Information: FPM_WINDOW
View Information: CNR_VIEW
Configuration ID: ZSAPSRM_WDCC_FPM_OIF_SC_PROFNL
Technical Details(SC screen):
Application: /SAPSRM/WDA_L_FPM_OIF
Web Dynpro Component: /SAPSRM/WDC_UI_SC_DOFC_HD
Window Information: IV_L_FPC_CA_HDR
View Information: V_SC_BOFC_HD
Configuration ID: /SAPSRM/WDCC_FPM_SC_HD_PR
Appreciate any help on this.
Thanks,
PrabhakaranHi Prabhakaran
You will need remove the static usage of config id ZSAPSRM_WDCC_FPM_OIF_SC_PROFNL and make use of dynamic component configuration depending on the particular scenario.
Create two configuration id's ZSAPSRM_WDCC_FPM_OIF_SC_PROFNL1 and ZSAPSRM_WDCC_FPM_OIF_SC_PROFNL2. Set visible property of Edit button as visible in the first config ID and none in the second.
Now assign this config ID dynamically depending on the scenario. If scenario is Monitor SC, then assign config ID ZSAPSRM_WDCC_FPM_OIF_SC_PROFNL2, else assign config ID ZSAPSRM_WDCC_FPM_OIF_SC_PROFNL1.
Please refer the below document for usage of dynamic component configuration.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/70337875-167f-2e10-daa7-a1c69d55ee95
Hope this helps.
Regards
Lorraine -
Hi,
I have a ribbon (done using ribbon XML) with menu options. I need to remove few buttons from the menu dynamically based on some condition. Also, I want to change the label of another button. How to achieve this programmatically? (C#)
Thanks in advance.
Thanks PrasadHello Prasad,
Use callbacks for populating Ribbon controls such as menu, dropDown, gallery and etc. Then you can use the
Invalidate or
InvalidateControl methods of the
IRibbonUI interface to get your callbacks invoked when required. Thus, you will be able to delete the required item(s).
You will find the following articles in MSDN helpful:
Chapter 11: Creating Dynamic Ribbon Customizations (1 of 2)
Chapter 11: Creating Dynamic Ribbon Customizations (2 of 2)
To change the label of your controls at runtime you need to use the getLabel callback and call the Invalidate or InvalidateControl methods of the IRibbonUI interface. The following series of articles describe the Fluent UI in depth:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3) -
For some time now I try to customize UIImagePicker and ABPeoplePicker. I want to remove 'Cancel' buttons that appear next to the title on the navigation bar of both controllers. Any help with this issue is greatly appreciated, as I ran out of ideas and am fed up with lack of documentation how to customize the controllers
I solved this, all you have to do is to implement delegate method -willShowViewController and for any bar button item you want to disappear you need to make it's frame to CGRectMake(0,0,0,0).
-
Remove "execute" button from toolbar
Hi, colleagues! Is there any way to remove "execute" button from toolbar on selection screen (in custom report)? I only found how to append custom buttons (using function keys).
Thanks.Use EXCLUDING options of the SET PF-STATUS statement and insert the function code of the execute button into a internal table and pass it with EXCLUDING.
See F1 help on EXCLUDING.
Regards
Karthik D -
Remove CSLive button from menu
Hi!
How to remove CSLIVE button from menu in ILLUSTRATOR cs5?
Thx!Isn't that strange? You can do so with ease in PS so why on earth are the options different here?
-
Remove edit button from channels & URL textbox
Can anyone please tell me how I remove the edit buttons from channels on the portal desktop?
Also in the bookmarks channel how can I remove the URL textbox?
Thank you for any help anyone can give me.Set the channel's 'isEditable' property to false
Edit the template found in the BookmarkProvider directory -
Remove play button from inserted SWF
I'm using Acrobat 9 Pro. When inserting an animated SWF, it usually has a triangular play button. Is there a way to remove that button?
You can use "Create poster from file" under the Advanced options, and use a screenshot of the SWF. The play button graphic won't be added.
-
Removing Response Buttons from Top of Notification - Possible?
Hi all,
Current client wants to remove the Approve/Reject buttons from the top of a Notification. A second set of response buttons are present at the very bottom of the notification. It is only these that are required.
The reason behind the change is so that the user is forced to scroll down through the content of the message to reach the response buttons. The client is concerned that some users will simply press the 'Approve' or "Reject' buttons at the top of the page and not process the content, i.e what they are approving / rejecting.
Anyone know if this is possible? Just read through the Workflow Development Guide but can't see any reference to this. Can it be done through personalisation?
Cheers,
Jon.Hi Asima ,
you can use:
setIconImage((new ImageIcon("yourIcon.gif").getImage())); for JFrame.
For JOptionPane and others where setIconImage does not exist you have to use the constructor which specifies the owner (your JFrame with yourIcon) so it uses that same Icon. If you want to remove the Icon completely you have to create your own icon as a blue (0,0128) square and use that.
HTH
Phil -
Remove Maximize button from popup window using Webdynpro ABAP
Hi,
Is there a way to remove the maximize button from a popup window using Webdynpro ABAP?
Thanks,
JayHi Jayanth,
I think by setting is_resizable parameter pass abap_false. try this
lo_window = lo_window_manager->create_window(
window_name = 'POPUP'
title = 'Window'
close_in_any_case = abap_true
message_display_mode = if_wd_window=>co_msg_display_mode_selected
message_type = if_wd_window=>co_msg_type_none
is_resizable = ABAP_FALSE ).
Cheers,
Kris. -
How to remove logoff button from the Portal?
Could anyone help me to remove the logoff button from the Portal? I am using netweaver portal 7.0 Thanks!
Hi Michael,
Thank you for your reply!
Can I do it through the portal or I have to do customized programming in NWDS? Could you please show me step by step in details?
In the future the portal will be use SSO with active directory so user does not have to login/logoff. I think the session in the server will be closed after a couple of minutes. What do you think? -
How to remove forward button from notification Page?
Hi All,
I would like to remove (disable ) forward button from Req approval work flow ? How can i achive this functionality ?
I will be appriciate for help.
Thanks
patWell, I'm guessing that you are using PO workflows, and using one of the standard lookups? Without having any details of what you are using, trying to second guess the answer is somewhat difficult.
If it's the case that you are talking about the PO workflows, then the buttons are standard functionality based on the lookup type that is used as the notification response. Trying to suppress this doesn't actually make much sense - you are sending someone a notification, asking them to take action, and then not giving them any ability to respond to the notification.
You would need to customize / personalize the notification page if you want to remove the buttons. The question then is - how will the process continue if you are removing the ability to respond to the notification?
Matt
WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
Have you read the blog at http://www.workflowfaq.com/blog ?
WorkflowFAQ support forum: http://forum.workflowfaq.com -
How to remove continue button from slide "Quiz Result"?
After clicking on the button gets the first slide. I want to remove the button. Help. I am a newbie. The settings are not found. Thank you
It's standards Captivate functionality that you cannot add Interactive Objects such as click boxes or buttons to the Quiz or Quiz Results slides.
If you're having issues with the Continue button NOT working on the Quiz Results slides, check your Quiz Settings as shown in my earlier post on this thread. It may be that you have the settings that make it mandatory for the user to pass the quiz before they'll be allowed to continue.
Check also in Quiz Settings in case the default Action for Pass or Failure is set to Continue. It might be set to No Action or something else that the Continue button cannot do for some reason.
If none of the above seems to be the case, remove the Quiz Results slide (by turning off Show Results in Quiz Settings) and then turn it on again the same way. If your project was upgraded from an earlier version of Captivate 3 or 4 it may be that the Quiz Results slide is currently defective. It's happened to me when upgrading older projects to Cp5 format. So re-generate the Quiz Results slide again and see if the Continue button now works better.
By the way, there's a button widget that ships with Captivate 5 which, because it's only a Static Widget and not an Interactive Widget, you CAN add it to the Quiz Results slide. -
ADF Input Date - To remove cancel button while clicking glyph
Hi Guys,
In the Input date if we use the <af:ConvertDateTime> then in the popup we will have time zone,OK and Cancel Button. In this i want to remove the Cancel Button. Why i want to remove is in the popup the Close button is already fullfilling the functionality. Hope this should be done using CSS.
Kindly let me know how to do it?Hi.,
I hope this url will help u..
http://docs.oracle.com/cd/E23549_01/apirefs.1111/e12419/tagdoc/af_inputDate.html
Thanks,
parame -
Remove GOS button from CV03N(DMS) transaction
Hi,
I would like to remove GOS button(service) from transaction CV03N.
As per note 491271 you can deactivate/invisible the service from all transaction.
But I want to deactivate/invisible all service for specifically transaction CV03n.
Thanks in advance...
Regards,
SunnyHi Sunny,
But you can implement your own authority checks if you like to. Note
491271 describes how to proceed in this case. So it is in your own hand
which authority objects you use to control the access to the services.
The note describes that you have to modify the 'check_status' method of
the class 'CL_GOS_SRV_ATTACHMENT_CREATE', here you have to build a part
that checks also for the transaction.
Best regards,
Christoph
Maybe you are looking for
-
this is my question. i have this print CID POSITION - 01 010 01 010 01 010 01 020 01 020 02 020 02 020 02
-
Is there a good book written on creating Charts in App Ex? The tutorials I have come across are too vague (they say you can do it but not how). I am looking for a step-by-step example that shows how to create series and aggregate them into nice repor
-
Hi I have deployed an XML based application on Oracle9iAS Release 2 (v9.0.2). Application Server is forcing me to user Oracle's xmlparserv2 (and saxon) whereas my application has been written according to xalan (and xerces). Can some one help me as h
-
Read this : ejb , cocoon and jboss
Integrating cocoon with jBoss Download cocoon-war-2.1.7.war and then we have to deploy that to the jboss server , to deploy that , we started jboss server in standard mode and then copied the cocoon war file to /usr/local/jboss-4.0.0/server/standard/
-
Disable AutoAnalyzer as default during setup.
I was wondering if there is a way to have auto-analyzer disabled by default during the setup process, so that different user's won't have to disable it themselves?