Bug in BasicTabbedPaneUI Action keys?

Can someone tell me if the following is a bug or purposeful behavior:
in jdk1.4.1 I map keystroke F5 to the BasicTabbedPaneUI action "navigateNext". This action eventually gets passed down to the navigateSelectedTab(int direction) method.
In the first switch statement, it does:
switch(tabPlacement) {
case NEXT:
selectNextTab(current);
break;
HOWEVER, tabPlacement is defined to be SwingConstants.TOP, in fact, NEXT isn't EVER even a valid value for the JTabbedPane tabPlace. This action class therefore won't ever do anything.
Lastly, I'd like to complain that all the action classes in BasicTabbedPaneUI are private. In fact, a lot of UI class methods are private when I'd really prefer to subclass them.
Thanks.

Yes, that looks like a bug to me. The NEXT and PREVIOUS values are supposed to indicate the direction of navigation, not the placement of the tabs. They should either check for those values before going into the switch, or add them to the inner switches, after the tab placement has been determined.
Those two values were added to SwingConstants in jdk1.4, and it looks like someone screwed up retrofitting BasicTabbedPaneUI to use them. (This is exactly the kind of bug that typesafe enums are meant to prevent; too bad we had to wait until jdk1.5 for those.) Do you want to file the bug report, or should I?

Similar Messages

  • Action Keys Mode on ProBook 450?

    Is the option to reverse the F1-F12 function keys (''Action Keys Mode'') available in ProBook 450's BIOS?
    And if not, do you have to press for example Fn+F4 to use F4?
    Thanks.

    I am sorry, but to get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial product. You can do this at http://h30499.www3.hp.com/hpeb/ .
    I hope this helps.
    I worked on behalf of HP

  • "Action Keys" mode turns itself back on after waking from sleep

    Hi gang,
    I've recently bought a Folio 13, and have disabled "Action Keys Mode" in the BIOS so that the function keys work as expected.
    However, if the machine goes into sleep mode, the function keys revert to their default behaviour (that is, I have to hold down "Fn" if I want to hit F5).
    Rebooting the notebook fixes the problem, as the BIOS setting has not changed.
    How can I *permanently* disable "Action Keys Mode" so that it stays disabled even when the notebook goes into sleep mode?
    Cheers,
    Matt

    I had this problem - you can update the BIOS and it will correct the issue. I received a BIOS update via HP Support.

  • Action Keys

    I wanted the action keys to work with no need of pressing the fn key. Action keys were already enabled in BIOS. I switched them to disabled still did not work. I put it back to enabled. The same thing. Action Keys don't work at all. How can i fix this?

    Install this update, see if it gets the function keys working  https://support.microsoft.com/en-us/kb/2919355 "Function keys don't work if IME is enabled in Windows 8.1 or Windows Server 2012 R2" scroll down the page to find the direct download link (method 2), download it then double click the file to install.

  • How do I customize the Action Keys?

    I'm working on a G62-320CA that has five actions keys on the left side (mail, media, web browser, print, and calculator). How do I customize these? They don't open the correct programs.
    Thanks,
    Shane.
    HP Pavilion dv7-4180us
    Windows 7 Home Premium SP1 64-bit
    This question was solved.
    View Solution.

    Here is the reg tweak...for the side one-touch keys (that is what they are called)
    Internet Key: HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Appkey\7 "Association"="http" ; Change the string value "http"
    Calculator Key: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\18 "ShellExecute"="calc.exe"; Change the string value "calc.exe"
    Email Key: HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Appkey\15 "Association"="mailto" ; Change the string value "mailto"
    Cyberlink PowerDVD/Mediasmart Key: HKLM\SYSTEM\ControlSet001\Control\MobilePc\HotStartButtons\2 "ApplicationPath" = "C:\Program File(x86)\Cyberlink\PowerDVD9\PowerDVD9.exe"; Change the string value "C:\Program File(x86)\Cyberlink\PowerDVD9\PowerDVD9.exe"
    Although I am an HP employee, I am speaking for myself and not for HP.
    Make it easier for other people to find solutions, by marking my answer with 'Accept as Solution', if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"

  • How to Disable a PARTICULAR action key?

    Hi,
    I know how to turn off action keys from BIOS. What i want to is just disable the help action of the F1key. I basically want it o have no fuction (so that it would perform the assigned function for the game) like the f5 key on my Envy 15t. I use the f1 key in games, since every time i press it it opens up the help, i want to disable it. However, i do not want to disable the rest and want to be able use them without having to press the FN key. 
    I am not sure if there is a solution to this problem but i would still love to hear some suggestions.
    Thank You.

    Hi,
    If just for Windows XP: you should be able to disable the help stuff by disabling the Help and Support service. (start->type services.msc->press enter).
    And for Windows 7 (Vista could be the same):
       http://www.sevenforums.com/customization/171360-there-way-totally-disabling-f1-hotkey.html
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to disable action keys and hotkeys??

    Hi, ihave HP G56 Notebook PC
    i have all these strange hotkeys on my laptop doing non-standard things.. it's pretty confusing.. Alt-F4 doesn't work anymore, for instance, since the F4 key is now a monitor key.. How can i make it also the F1-F12 keys by default.. like when i press F1 it's just F1.. because when i play a game on my laptop when i press F1 key it doesn't work..
    Please Help me!!
    Thanks..

    You Can disable that functionality by disabling "Action Keys Mode" in the BIOS...
    Here is the document, that will help you with it... http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035108&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US
    Although I am an HP employee, I am speaking for myself and not for HP.
    Make it easier for other people to find solutions, by marking my answer with 'Accept as Solution', if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"

  • How to disable hotkeys & action keys?

    Hi, I have a Pavilion dv6 3006tx.
    I have all these strange "hotkeys" on my laptop doing non-standard things. It's pretty confusing, Alt-F4 doesn't work anymore, for instance, since the F4 key is now a monitor key. How can i make it so all the F1-F12 keys just be F1-F12 keys by default, and I can use the other function by using the fn toggle?
    I would also like to disable these so called "action keys". I keep pressing the calculator key when I intend to crouch in a game (ctrl key).
    Help, thanks.

    Key Instructions
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035108&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US...
    Please try the instructions from the link I put in and let me know if that helped you or not.
    Thank you.
    I am an HP employee
    Knowledge is power...Power to the people

  • Action key on mw1

    Hello,
    I have puchased few days ago an mw1 as an upgrade of the mw600,but I expected to be able to associate the action key to launch a custom app like "Cyberon Voice Commander" as well as I did on the previous model. is it possible?
    Best regards
    Stefano

    As far as I know, no, it's not possible. Might be some 3rd party app for it, but I haven't heard of any.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • Preview bug, not responding to key strokes in full screen view immediately

    I've had leopard since it was released and have been very pleased with it for the most part. I update the software regularly.
    My problem is that since moving to leopard I cannot use the arrow keys (being the primary ones that I use) immediately upon going into full screen mode of preview, this is very irritating as I use many pdf files and find full screen the best view. I can get around this by pressing play in full screen then pausing and reverting to the arrow keys, but using so many pdf files this becomes very tiresome. Is there a patch for this bug?
    I have a macbook with 2gb ram, and intel 2.16ghz processors.

    If you want to report this to Apple, send a bug report (or enhancement request) via its Bug Reporter system. Join the Apple Developer Connection (ADC)—it's free and available for all Mac users and gets you a look at some development software. Since you already have an Apple username/ID, use that. Once a member, go to Apple BugReporter and file your bug report/enhancement request. You'll get a get a Bug ID number; thus, starting a dialog directly with engineering.

  • Photoshop CS4 in Windows 7 bug runing batch actions

    I been using Photoshop CS4 in Vista with no problems, but now my problem is when I installed windows 7 and opened 60 photos and apply an action and try to do other things while PS is working in the batch, when I try to change to other window I get back to Photoshop until it finishes the action batch task to the 60 photos I can't change of window or use anything else did anyone have the same problem ? Is this a Windows 7 or PS bug ?
    Thanks

    tronmexico wrote:
    Isn't the Adobe forums to report the bugs ? Is there a special contact form for bugs ?
    No... this is a USER TO USER forum, not Adobe support... only the space is provided by Adobe, for users to try to help other users
    Go to http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform - do be
    sure to include all information, so they may reproduce the problem

  • BUG? Data Action on Struts changing to Data page when i reload Jdev????

    Hi All,
    i'm using jdev 10.1.2, adf bc's, struts, jsp's.
    I have a data action on my struts page which is bound to a method in the app module. I created a class for this data action which overrides the initialMethodParameters() method and gets the arguments for the method in the app module.
    it all works perfectly fine, until i come into work the next day, load up JDev and the data action has now turned into a data page. if i dbl click on it i get the create page dialog, instead of the data action class. obviously when i try run this data action, i get cannot display this page error.
    I'm assuming/hoping that this is a bug. can anyone shed any light??
    Thanks in advance,
    Liz

    Hi,
    did you open this in the same version of JDeveloper 10.1.2? I remember that there was a change in Struts between JDeveloper versions
    Frank

  • CS6 Photoshop; Shortcut Action Key will not work

    On my Mac I have Adobe Photoshop installed and I created an action for a watermark for my images.
    It works just fine when I manually press the play button, however the shortcut key, that I've assinged as Shift + F2, will not work. I've tried different combinations and nothing is working.
    Any suggestions on what I can do to so it will work?

    Figured it out, it's because I had to press fn along with Shift + F2

  • Bug in Photoshop Action Player affecting some Adjustment Layers steps

    I skipped CS4 and when I installed CS5 I discovered a nasty bug had been introduced is Photoshop's Action facility most likely in CS
    4.
    Action that add adjustment Layers clipped to the current layer that step is recorded Make adjustment layer with Clip.
    Action that add adjustment Layers not clipped Step records as Make adjustment layer.
    When a step Make adjustment layer with Clip is played back that is what Photoshop does.
    When a step Make adjustment layer is played back what Photoshop does is look at the adjustment panel clipping icon state and and if
    it is clip to current layer Photoshop does clip the adjustment layer to the current when is should be applied to all.
    Many of the actions I have created add adjustment layer applied to all then later clip them to the current layer. These actions
    genearate an error message if the Adjustment panel clipping icon is set to clip. Because the layer get added clipped, clipping the adjustment
    layer  it is not available. The strange thing is the layer is clipped the way I want it to be. But actions I recorded where I want the adjustment to
    apply to all are clipped and the is no error message just wrong results.

    To avoid the problem you described, i always leave
    the  Clip to Layer unchecked.
    That way you never have to worry about those errors.
    I just let the actions dictate clipped or not.
    If i want to clip a layer, i just do it myself using the button circled in red.
    MTSTUNER

  • Bug: no constraints/foreign keys when Scripter.Prefetch = true

    Kind of bug report, using assemblies version v11.0.0.0 and ScriptingOptions.DriAll = true.
    When you have tables with foreign keys or other constraints, these are not scripted when you pass urns of all tables to Scripter.Script which has Prefetch property set to true. I believe this is due to a bug in prefetching.
    To workaround, set Scripter.Prefetch = false. Strange enough, passing urns of subset of the tables works as well (even excluding one table only), which results in the "constraints are returned when passing single urn only" reported behavior.

    Hi, sure, sorry for late reply.
    This is the DB create script:
    DROP DATABASE [TestDB]
    USE [master]
    GO
    CREATE DATABASE [TestDB] CONTAINMENT = NONE ON PRIMARY
    ( NAME = N'TestDB', FILENAME = N'C:\Windows\Temp\Test.mdf' , SIZE = 5120KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB ) LOG ON
    ( NAME = N'TestLG', FILENAME = N'C:\Windows\Temp\Test.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
    GO
    ALTER DATABASE [TestDB] SET COMPATIBILITY_LEVEL = 110
    GO
    ALTER DATABASE [TestDB] SET ANSI_NULL_DEFAULT OFF
    ALTER DATABASE [TestDB] SET ANSI_NULLS OFF
    ALTER DATABASE [TestDB] SET ANSI_PADDING OFF
    ALTER DATABASE [TestDB] SET ANSI_WARNINGS OFF
    ALTER DATABASE [TestDB] SET ARITHABORT OFF
    ALTER DATABASE [TestDB] SET AUTO_CLOSE OFF
    ALTER DATABASE [TestDB] SET AUTO_CREATE_STATISTICS ON
    ALTER DATABASE [TestDB] SET AUTO_SHRINK OFF
    ALTER DATABASE [TestDB] SET AUTO_UPDATE_STATISTICS ON
    ALTER DATABASE [TestDB] SET CURSOR_CLOSE_ON_COMMIT OFF
    ALTER DATABASE [TestDB] SET CURSOR_DEFAULT GLOBAL
    ALTER DATABASE [TestDB] SET CONCAT_NULL_YIELDS_NULL OFF
    ALTER DATABASE [TestDB] SET NUMERIC_ROUNDABORT OFF
    ALTER DATABASE [TestDB] SET QUOTED_IDENTIFIER OFF
    ALTER DATABASE [TestDB] SET RECURSIVE_TRIGGERS OFF
    ALTER DATABASE [TestDB] SET DISABLE_BROKER
    ALTER DATABASE [TestDB] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
    ALTER DATABASE [TestDB] SET DATE_CORRELATION_OPTIMIZATION OFF
    ALTER DATABASE [TestDB] SET TRUSTWORTHY OFF
    ALTER DATABASE [TestDB] SET ALLOW_SNAPSHOT_ISOLATION OFF
    ALTER DATABASE [TestDB] SET PARAMETERIZATION SIMPLE
    ALTER DATABASE [TestDB] SET READ_COMMITTED_SNAPSHOT OFF
    ALTER DATABASE [TestDB] SET HONOR_BROKER_PRIORITY OFF
    ALTER DATABASE [TestDB] SET RECOVERY SIMPLE
    ALTER DATABASE [TestDB] SET MULTI_USER
    ALTER DATABASE [TestDB] SET PAGE_VERIFY CHECKSUM
    ALTER DATABASE [TestDB] SET DB_CHAINING OFF
    ALTER DATABASE [TestDB] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF )
    ALTER DATABASE [TestDB] SET TARGET_RECOVERY_TIME = 0 SECONDS
    ALTER DATABASE [TestDB] SET READ_WRITE
    GO
    USE [TestDB]
    GO
    CREATE TABLE [dbo].[KeySource] (
    [ID] [smallint] IDENTITY(1,1) NOT NULL,
    CONSTRAINT [PK_Reservation] PRIMARY KEY CLUSTERED ([ID] ASC)
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    CREATE TABLE [dbo].[KeyUse] (
    [UseID] [smallint] NOT NULL,
    [Row] [tinyint] NOT NULL,
    [Column] [tinyint] NOT NULL,
    CONSTRAINT [PK_KeySource] PRIMARY KEY CLUSTERED ([UseID] ASC, [Row] ASC, [Column] ASC)
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
    CONSTRAINT [IX_ReservationSeats] UNIQUE NONCLUSTERED ([Row] ASC, [Column] ASC)
    WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    ALTER TABLE [dbo].[KeyUse] WITH CHECK ADD CONSTRAINT [FK_Source_Use] FOREIGN KEY([UseID]) REFERENCES [dbo].[KeySource] ([ID])
    ON UPDATE CASCADE
    ON DELETE CASCADE
    ALTER TABLE [dbo].[KeyUse] CHECK CONSTRAINT [FK_Source_Use]
    ALTER TABLE [dbo].[KeyUse] WITH CHECK ADD CONSTRAINT [FK_Use_Use] FOREIGN KEY([UseID], [Row], [Column]) REFERENCES [dbo].[KeyUse] ([UseID], [Row], [Column])
    ALTER TABLE [dbo].[KeyUse] CHECK CONSTRAINT [FK_Use_Use]
    This is the code:
    ServerConnection serverConnection = new ServerConnection("server", "user", "pwd");
    Server server = new Server(serverConnection);
    Database database = server.Databases["TestDB"];
    Urn[] urns = database.EnumObjects(DatabaseObjectTypes.Table).Rows.OfType<DataRow>().Select(r => new Urn((string)r["Urn"])).Take(2).ToArray();
    Scripter s = new Scripter(server);
    s.Options.DriAll = true;
    StringCollection result = s.Script(urns);
    This is the result:
    SET ANSI_NULLS ON
    SET QUOTED_IDENTIFIER ON
    CREATE TABLE [dbo].[KeySource](
    [ID] [smallint] IDENTITY(1,1) NOT NULL
    ) ON [PRIMARY]
    SET ANSI_NULLS ON
    SET QUOTED_IDENTIFIER ON
    CREATE TABLE [dbo].[KeyUse](
    [UseID] [smallint] NOT NULL,
    [Row] [tinyint] NOT NULL,
    [Column] [tinyint] NOT NULL
    ) ON [PRIMARY]
    Note that the constraints are missing.
    As already noted, adding s.PrefetchObjects = false; line fixes this.
    But let's do the magic way - supplying less Urns than there actually is tables. To test this, add a dummy table to the DB:
    USE [TestDB]
    CREATE TABLE [dbo].[DummyTable]([Test] [nchar](10) NULL) ON [PRIMARY]
    Run the code again. Note that the Take(2) method limits the Urns supplied to the Scripter to the same set as before.
    However, the result is now:
    SET ANSI_NULLS ON
    SET QUOTED_IDENTIFIER ON
    CREATE TABLE [dbo].[KeySource](
    [ID] [smallint] IDENTITY(1,1) NOT NULL,
    CONSTRAINT [PK_Reservation] PRIMARY KEY CLUSTERED
    [ID] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    SET ANSI_NULLS ON
    SET QUOTED_IDENTIFIER ON
    CREATE TABLE [dbo].[KeyUse](
    [UseID] [smallint] NOT NULL,
    [Row] [tinyint] NOT NULL,
    [Column] [tinyint] NOT NULL,
    CONSTRAINT [PK_KeySource] PRIMARY KEY CLUSTERED
    [UseID] ASC,
    [Row] ASC,
    [Column] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
    CONSTRAINT [IX_ReservationSeats] UNIQUE NONCLUSTERED
    [Row] ASC,
    [Column] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    ALTER TABLE [dbo].[KeyUse] WITH CHECK ADD CONSTRAINT [FK_Source_Use] FOREIGN KEY([UseID])
    REFERENCES [dbo].[KeySource] ([ID])
    ON UPDATE CASCADE
    ON DELETE CASCADE
    ALTER TABLE [dbo].[KeyUse] CHECK CONSTRAINT [FK_Source_Use]
    ALTER TABLE [dbo].[KeyUse] WITH CHECK ADD CONSTRAINT [FK_Use_Use] FOREIGN KEY([UseID], [Row], [Column])
    REFERENCES [dbo].[KeyUse] ([UseID], [Row], [Column])
    ALTER TABLE [dbo].[KeyUse] CHECK CONSTRAINT [FK_Use_Use]
    By testing on larger database I have noticed it does not really matter which table is excluded from the list.
    Hope this helps,
    Jan

Maybe you are looking for

  • Edited name not shown in coverflow view

    I'm using iTunes 7 with no problems at all. When I purchase music, I capitalize every word in the tracks' titles. On one album I purchased today, however, the edited name doesn't display capitalized in coverflow view. It display correctly in list vie

  • Modifying Calendar.DAY_OF_WEEK issue

    Hi, I'm trying to get a report to run so that it gets data for the previous "business day" (M-F). So if a user comes in on Monday, he would get a report for Friday. However, I'm running into an issue where I do the following (after I already get the

  • Magnify sections of a 8x10 document

    I am looking for a way to magnify section of a page. I am okay with the page appearing very small as I am interested in magnifing a section at a time to give detailed description. Any advise?

  • Picture in splitter container

    Is it possible to create a picture in a splitter container?

  • MPEG video from a Sony Hard Drive Camera and PPCS3

    I asked the questions before buying from ADOBE. The answers were yes that the video would import and that the program would do all editing for HD video from all HD cameras. Well anyone that has tried this knows it is a very false statement from ADOBE