Questions tagged [jdk-internal-api]

8 questions
6
votes
2 answers

jdk7: sun.font.fontManager replacement/how to get filename information from fontname

Using Oracle(Sun) JDK6 and trying to move to Oracle JDK7 I am using sun.awt.GraphicsEnvironment to find all system fonts in order to use them to change pdf font used in my pdf file. Here is the exact code I am using: GraphicsEnvironment gEnv =…
Hassan Radi
  • 936
  • 10
  • 22
6
votes
5 answers

Build warnings regarding using Sun proprietary API

I am trying to clean up my build environment and have discovered a couple of warnings reported around usage of Sun proprietary API's. [javac] /workspace//Handler.java:18: warning: sun.net.www.protocol.http.Handler is Sun proprietary…
MeanwhileInHell
  • 6,780
  • 17
  • 57
  • 106
4
votes
2 answers

Should I be concerned using AWTUtilities.setWindowShape()?

I am using the AWTUtilities class in my application to create custom window shapes. As far as I know, there is no other way to do it. It is a requirement. The javadoc generation gives me this error: warning: com.sun.awt.AWTUtilities is Sun…
Erick Robertson
  • 32,125
  • 13
  • 69
  • 98
2
votes
0 answers

Android 5+ how to change preferred network

Hi I have read a lot about this argument, but I think there is a lot of mistake to how can change preferred network in android 5+. First of all my app can use root, but as a requisite it must be stay in play store . To do this I think there is three…
r1si
  • 1,136
  • 2
  • 19
  • 34
2
votes
1 answer

error when import AWTUtilities

I try to use AWTUtilities if these are enabled so I use the ways import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import…
Luisk4
  • 377
  • 1
  • 5
  • 12
2
votes
3 answers

With what should I replace sun.awt.shell.ShellFolder so I don't get compile warnings?

I have a method using sun.awt.shell.ShellFolder.get("fileChooserComboBoxFolders"); which I want to replace (or suppress the warning if possible). Can I replace it with anything not Sun properietary so it doesn't throw warnings on some possible…
András Hummer
  • 960
  • 1
  • 17
  • 35
1
vote
0 answers

How to generate import at compile time?

I am currently doing this with the implementation of com.sun.source.util.Plugin, which has this method for adding the following expression to the import section import java.util.List;: private void generateImport(CompilationUnitTree…
slick
  • 13
  • 5
0
votes
1 answer

Why reflective Members must be copied before propagation?

If you look into the source code of getting reflective objects of fields, methods or constructors, their copies are returned. Lets take getting field as example: /** * Returns an array of {@code Field} objects reflecting all the fields *…
Bernard
  • 304
  • 2
  • 11