On 07.12.2014 23:34, Michael Michaud wrote:
> Hi Ede,
> 
> jave version questions are back ;-)

jippie...

> I just noticed I introduced some JComboBox<String> here and there
> which is a java 1.7 feature. 

read further

>I wonder how I could introduce this without
> having errors and mostly how the pom project can compile for the NB
> as it is still configured to use java 1.5 ?

no problem. pom is compiled using a oracle jdk 7 but the maven compiler plugin 
is configured to create 1.5 bytecode

<plugin>
  <artifactId>maven-compiler-plugin</artifactId>
  <configuration>
    <source>1.5</source>
    <target>1.5</target>
  </configuration>
</plugin>

we should probably up that to 1.6 in the near future, java8 being the current 
stable release.

> Anyway, I probably can revert these feature to be 1.6 or 1.5
> compatible if needed.

you could use a condition to use JComboBox on 1.7 and something else on earlier 
jre'
s. simply test if JComboBox is available and work from there.

brtw. java6 has a JComboBox.

> 
> You also introduced GraphicsDevice.WindowTranslucency some times
> ago which is also a java 7 feature. How is it managed ?

used one of the new methods added at the same time

GUIUtil.isPerPixelTranslucencySupported()
GUIUtil.isUniformTranslucencySupported()
GUIUtil.isShapedWindowSupported()

as a condition whether to create a transparent window or stick with something 
ordinary ;)

..ede

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to