René's URL Explorer Experiment


Title: No parameter attribute for number formats · Issue #45 · scijava/scijava-ui-swing · GitHub

Open Graph Title: No parameter attribute for number formats · Issue #45 · scijava/scijava-ui-swing

X Title: No parameter attribute for number formats · Issue #45 · scijava/scijava-ui-swing

Description: This issue was recently brought up on the forum... currently, if for example, you want to display the a default value of 0.0178 in the dialog for a user… #@Double(label="Distance", value=0.01780, persist=false) distance When the code run...

Open Graph Description: This issue was recently brought up on the forum... currently, if for example, you want to display the a default value of 0.0178 in the dialog for a user… #@Double(label="Distance", value=0.01780, p...

X Description: This issue was recently brought up on the forum... currently, if for example, you want to display the a default value of 0.0178 in the dialog for a user… #@Double(label="Distance", value=...

Opengraph URL: https://github.com/scijava/scijava-ui-swing/issues/45

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"No parameter attribute for number formats","articleBody":"This issue was recently [brought up on the forum](https://forum.image.sc/t/script-parameters-increasing-decimal-places-for-double/22919)... currently, if for example, you want to display the a default value of ```0.0178``` in the dialog for a user…\r\n\r\n```#@Double(label=\"Distance\", value=0.01780, persist=false) distance```\r\n\r\nWhen the code runs… you get a pre-set value of ```0.018``` popping up and there is no current method to set the number of decimal places for that input.\r\n\r\nAs stated by @imagejan on the forum:\r\n\r\n\u003e \"The spinner created in ```SwingNumberWidget``` is using the default ```DecimalFormat``` which apparently has a maximum of three decimal places.\r\n\u003e \r\n\u003e You can somehow work around the issue by using a slider or scroll bar (within a defined range). But while the actual values can contain more decimal places (as shown by the ```println``` statement, there’s still no visual feedback inside the spinner text field:\r\n\u003e \r\n\u003e ```#@ Double (label=\"Distance\", min=0, max=0.05, value=0.01780, persist=false, stepSize=0.0001, style=slider) distance```\r\n```println distance```\r\n\u003e \r\n\u003e There’s no parameter attribute for number formats, but we could maybe use the `style` attribute for this; in any case we should try to guess a suitable spinner number format from the combination of min, max and stepSize, or from the default value…\"","author":{"url":"https://github.com/etadobson","@type":"Person","name":"etadobson"},"datePublished":"2019-02-14T14:53:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/45/scijava-ui-swing/issues/45"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:bbc2343b-3292-a02a-b56a-85cc53f0b22a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE572:3A860B:B841BB:1055768:6978C742
html-safe-noncee791b104025862edb59f0b42d7c5da27baf2d8664da481fb9981fbd83f2702df
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTcyOjNBODYwQjpCODQxQkI6MTA1NTc2ODo2OTc4Qzc0MiIsInZpc2l0b3JfaWQiOiIzNjQxNDgzMDI0MzQxMTkwNDY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0a62f5af1051a16b27a58f71886fb3e6b8ee10981007fec5b6331612f0f4fa02
hovercard-subject-tagissue:410337568
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scijava/scijava-ui-swing/45/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cfeac16e6897ac03545bdccccb844a5dc034afb2000b7a37d8cb16af8c916af6/scijava/scijava-ui-swing/issues/45
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cfeac16e6897ac03545bdccccb844a5dc034afb2000b7a37d8cb16af8c916af6/scijava/scijava-ui-swing/issues/45
og:image:altThis issue was recently brought up on the forum... currently, if for example, you want to display the a default value of 0.0178 in the dialog for a user… #@Double(label="Distance", value=0.01780, p...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameetadobson
hostnamegithub.com
expected-hostnamegithub.com
None8a71ca1f7ab5436216e1df86f398ef7a51ed3152c90e3f7332fc70cf97fcb9d6
turbo-cache-controlno-preview
go-importgithub.com/scijava/scijava-ui-swing git https://github.com/scijava/scijava-ui-swing.git
octolytics-dimension-user_id1262770
octolytics-dimension-user_loginscijava
octolytics-dimension-repository_id19014728
octolytics-dimension-repository_nwoscijava/scijava-ui-swing
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id19014728
octolytics-dimension-repository_network_root_nwoscijava/scijava-ui-swing
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseeaed570eead52a9920afef75dc3eb6d826fdc5ef
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/scijava/scijava-ui-swing/issues/45#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscijava%2Fscijava-ui-swing%2Fissues%2F45
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscijava%2Fscijava-ui-swing%2Fissues%2F45
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=scijava%2Fscijava-ui-swing
Reloadhttps://patch-diff.githubusercontent.com/scijava/scijava-ui-swing/issues/45
Reloadhttps://patch-diff.githubusercontent.com/scijava/scijava-ui-swing/issues/45
Reloadhttps://patch-diff.githubusercontent.com/scijava/scijava-ui-swing/issues/45
scijava https://patch-diff.githubusercontent.com/scijava
scijava-ui-swinghttps://patch-diff.githubusercontent.com/scijava/scijava-ui-swing
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fscijava%2Fscijava-ui-swing
Fork 10 https://patch-diff.githubusercontent.com/login?return_to=%2Fscijava%2Fscijava-ui-swing
Star 7 https://patch-diff.githubusercontent.com/login?return_to=%2Fscijava%2Fscijava-ui-swing
Code https://patch-diff.githubusercontent.com/scijava/scijava-ui-swing
Issues 24 https://patch-diff.githubusercontent.com/scijava/scijava-ui-swing/issues
Pull requests 8 https://patch-diff.githubusercontent.com/scijava/scijava-ui-swing/pulls
Actions https://patch-diff.githubusercontent.com/scijava/scijava-ui-swing/actions
Projects 0 https://patch-diff.githubusercontent.com/scijava/scijava-ui-swing/projects
Wiki https://patch-diff.githubusercontent.com/scijava/scijava-ui-swing/wiki
Security 0 https://patch-diff.githubusercontent.com/scijava/scijava-ui-swing/security
Insights https://patch-diff.githubusercontent.com/scijava/scijava-ui-swing/pulse
Code https://patch-diff.githubusercontent.com/scijava/scijava-ui-swing
Issues https://patch-diff.githubusercontent.com/scijava/scijava-ui-swing/issues
Pull requests https://patch-diff.githubusercontent.com/scijava/scijava-ui-swing/pulls
Actions https://patch-diff.githubusercontent.com/scijava/scijava-ui-swing/actions
Projects https://patch-diff.githubusercontent.com/scijava/scijava-ui-swing/projects
Wiki https://patch-diff.githubusercontent.com/scijava/scijava-ui-swing/wiki
Security https://patch-diff.githubusercontent.com/scijava/scijava-ui-swing/security
Insights https://patch-diff.githubusercontent.com/scijava/scijava-ui-swing/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/scijava/scijava-ui-swing/issues/45
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/scijava/scijava-ui-swing/issues/45
#54https://github.com/scijava/scijava-ui-swing/pull/54
No parameter attribute for number formatshttps://patch-diff.githubusercontent.com/scijava/scijava-ui-swing/issues/45#top
#54https://github.com/scijava/scijava-ui-swing/pull/54
https://github.com/etadobson
https://github.com/etadobson
etadobsonhttps://github.com/etadobson
on Feb 14, 2019https://github.com/scijava/scijava-ui-swing/issues/45#issue-410337568
brought up on the forumhttps://forum.image.sc/t/script-parameters-increasing-decimal-places-for-double/22919
@imagejanhttps://github.com/imagejan
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.