Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/change slider renderer to spinner #19

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

sluke-nuix
Copy link
Contributor

Change the JSlider control on the CustomTabPanel to use a JSpinner for numeric display so the value can be modified manually.

Also removed the .pom file. It was getting in the way and I am not sure of the need for it.

@sluke-nuix
Copy link
Contributor Author

This is a branch off of a banch that did some additional filtering for dynamic tables.

@sluke-nuix sluke-nuix requested a review from JuicyDragon June 12, 2023 15:41
@JuicyDragon
Copy link
Contributor

So I opened the project in Eclipse, built the JAR and attempted to run the example from the repository Nx\Examples\TabbedCustomDialog.rb. It appears that (at least for me) the image resources are no longer being included in the JAR

java.lang.NullPointerException
	at sun.awt.SunToolkit.getImageFromHash(sun/awt/SunToolkit.java:692)
	at sun.awt.SunToolkit.getImage(sun/awt/SunToolkit.java:728)
	at com.nuix.nx.dialogs.TabbedCustomDialog.<init>(com/nuix/nx/dialogs/TabbedCustomDialog.java:114)
	at com.nuix.nx.dialogs.TabbedCustomDialog.<init>(com/nuix/nx/dialogs/TabbedCustomDialog.java:104)
	at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(jdk/internal/reflect/NativeConstructorAccessorImpl.java:62)
	at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(jdk/internal/reflect/DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(java/lang/reflect/Constructor.java:490)
	at org.jruby.javasupport.JavaConstructor.newInstanceDirect(org/jruby/javasupport/JavaConstructor.java:253)
	at org.jruby.RubyClass.new(org/jruby/RubyClass.java:881)
	at org.jruby.RubyClass$INVOKER$i$newInstance.call(org/jruby/RubyClass$INVOKER$i$newInstance.gen)
	at RUBY.<main>(C:\Work\GitHub\Nx\Examples\TabbedCustomDialog.rb:16)
	at org.jruby.Ruby.runInterpreter(org/jruby/Ruby.java:1292)
	at org.jruby.Ruby.runInterpreter(org/jruby/Ruby.java:1296)
	at org.jruby.embed.internal.EmbedEvalUnitImpl.run(org/jruby/embed/internal/EmbedEvalUnitImpl.java:119)
	at org.jruby.embed.jsr223.JRubyEngine.doEval(org/jruby/embed/jsr223/JRubyEngine.java:97)
	at org.jruby.embed.jsr223.JRubyEngine.eval(org/jruby/embed/jsr223/JRubyEngine.java:124)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(jdk/internal/reflect/NativeMethodAccessorImpl.java:62)
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(jdk/internal/reflect/DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:566)
	at com.nuix.script.e.a(com/nuix/script/SourceFile:53)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.nuix.script.e.a(com/nuix/script/SourceFile:50)
	at com.sun.proxy.$Proxy44.eval(com/sun/proxy/$Proxy44)
	at com.nuix.script.a.a(com/nuix/script/SourceFile:272)
	at com.nuix.investigator.script.m.e(com/nuix/investigator/script/SourceFile:314)
	at com.nuix.investigator.script.m.d(com/nuix/investigator/script/SourceFile:299)
	at com.nuix.investigator.main.q.run(com/nuix/investigator/main/SourceFile:122)
	at com.nuix.investigator.main.b.run(com/nuix/investigator/main/SourceFile:112)
	at com.nuix.bootstrap.e$b.a(com/nuix/bootstrap/SourceFile:254)
	at com.nuix.bootstrap.e.run(com/nuix/bootstrap/SourceFile:115)
	at com.nuix.bootstrap.h.a(com/nuix/bootstrap/SourceFile:116)
	at com.nuix.investigator.main.DesktopConsoleMain.main(com/nuix/investigator/main/SourceFile:43)

Are you not seeing this? I tinkered with it a bit and couldn't seem to get it right again.

Side Note: This library would likely benefit from being converted to Intellij/Gradle at some point.

@sluke-nuix
Copy link
Contributor Author

sluke-nuix commented Jun 13, 2023 via email

@JuicyDragon
Copy link
Contributor

When I initially tried to review this a while back, I was having issues with the modifications. I just converted the project to IntelliJ IDEA and Gradle on #20. Once that looks good and gets merged in to master, we can reapply these changes. Unfortunately will have to apply the changes manually since so much changed. The good news is that going forward incorporating changes such as this should go much easier I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants