apache / apache/netbeans

Can width limit of 250 pixels in SwitcherTable.getPreferredSize() be made configurable?

Open
#7,717 2 comments 0 reactions 0 assignees View on GitHub
Contribution welcome kind:feature UI
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Description

SwitcherTable limits the columnWidth in SwitcherTable.getPreferredSize() in line 335 to hard-coded 250 pixels.
This sometimes does not fit in custom applications based on NetBeans platform.
Can this behavior be made configurable?
E.g. by
- delegating it to a UI
- or having influence via L&F UIDefaults

### Use case/motivation

Give application developrs control over SwitcherTable size.

### Related issues

_No response_

### Are you willing to submit a pull request?

No

Contributor guide

Open the contributing guide

Research direction

Start in SwitcherTable.getPreferredSize(), around line 335, and inspect how the surrounding NetBeans UI code handles sizing and UI/L&F defaults. Determine a configuration mechanism that gives custom applications control over the 250-pixel column width, then verify that the preferred size uses the configured value without breaking the default behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.