awt Questions

1

Solved

In AppEngine standard environment with Java8 during attempt to use SVG next error appears. I get this error when I try to draw SVG on a XSLFSlide with POI like slide.draw(graphics2D) or to convert ...
Ainu asked 14/7, 2017 at 10:1

6

Solved

I have a JDialog with a button/textfield for the user to select a file. Here's the code: FileDialog chooser = new FileDialog(this, "Save As", FileDialog.SAVE ); String startDir = saveAsField.getTe...
Pliant asked 6/8, 2009 at 22:56

2

I am developing an Eclipse RCP Application which includes JFreeChart. One of its features is to copy graphs to the clipboard in order to paste them into other applications but it does not work on L...
Harrier asked 3/10, 2012 at 11:4

3

Solved

I'm developing a web application which use JFreeChart to render chart. However, when server dose not have any Chinese font installed, JFreeChart dose not display Chinese character even if I have se...
Thorncombe asked 24/8, 2012 at 15:28

2

Solved

I'm creating FileDialog and trying to get a FilePath for FileDialog object. FileDialog fd = new FileDialog(this, "Open", FileDialog.LOAD); fd.setVisible(true); String path = ?; File f = new File(...
Holms asked 18/11, 2016 at 9:54

5

Solved

When using Java applications, every time I open a dialog box, the starting directory is always my home directory. Is there any way to make it remember the last used directory? Alternately, are ther...
Murry asked 26/11, 2011 at 22:17

3

Solved

I have here an black/white png file of the dimensions 2156x1728 which I want to rotate 90 degrees using AffineTransform. The resulting image doesn't have the right proportions. Here some example co...
Fuscous asked 3/1, 2012 at 22:21

5

I have an app that is written in Swing, awt. I want to prevent users from pasting values into the textfields. is there any way to do this without using action listeners?
Prolegomenon asked 25/11, 2008 at 8:18

2

Solved

I'm attempting to convert an image to black and white only (not grey scale). I've used this: BufferedImage blackAndWhiteImage = new BufferedImage( dWidth.intValue(), dHeight.intValue(), Buffer...
Coly asked 11/5, 2017 at 14:33

2

I have created a program that can change the format of an image. Everything is working, but when I open an image through JFileChooser I am getting java.lang.ClassCastException. Please can somebody ...
Tracheotomy asked 8/6, 2016 at 20:32

4

Solved

I'd like to achieve the following: +------------------Other container(s)-----------------+ | +------JScrollPane (vertical)-------+ | | | JTextField | | | | Box.createRigidArea (vertical) | | | | ...
Tl asked 3/4, 2013 at 9:3

3

Solved

Creating a new button I must run code in a new thread. Usually we use new Thread(....).start(); but I am wondering why we can not use the @Async-Annotation. This is the Code: package net.vector...
Peshawar asked 2/4, 2017 at 1:47

9

Solved

What is java.awt.Component.getName() used for? It always seems to be null in the applications I build with NetBeans. I'm thinking of storing some help text per component in it -- I don't want to us...
Creepy asked 22/10, 2008 at 19:6

2

Solved

I have a small piece of code that I use to keep track of time - very simply it takes a picture of my desktop every four minutes so that later I can go back over what I've been up to during the day ...
Profusive asked 6/4, 2012 at 10:13

3

Solved

How can I draw a rectangle towards the top of the application in java ? Normally the drawRect method draws towards the bottom I tried to use a negative number but this would not work Graphics g = ...
Pires asked 19/9, 2012 at 22:42

2

I am trying to create a Applet loader and I need to draw on top of the displayed Applet, however I can't seem to find a way to do that. My original understanding was that Applet, by extending Comp...
Cimino asked 9/1, 2017 at 17:16

2

Solved

Every time I use Robot to move the mouse, it resets the Windows mouse speed. This is really annoying to deal with, and I was wondering if anyone knows how to fix this. Here is basically the code I ...
Shiau asked 3/4, 2012 at 2:42

2

Solved

The Shape interface is implemented by objects of Java 2D (Arc2D, Area, CubicCurve2D, Ellipse2D, GeneralPath etc..). Some of the concrete objects are marked as Serializable and can be stored and r...
Abbotsen asked 27/10, 2014 at 0:52

5

Solved

I'm trying to differentiate between listeners and adapters. Are they pretty much the same but in listeners you have to implement all the methods in the interface, but with adapters you have an opt...
Peart asked 6/5, 2012 at 11:17

5

Solved

How to make the font size bigger in g.drawString("Hello World",10,10); ?
Labiate asked 15/8, 2013 at 9:10

2

I'm trying to figure out a way to programmatically get the visual color (not the picking color) of the point where a user clicks on a WorldWind AnalyticSurface. Looking at AnalyticSurface and Pick...
Failure asked 10/4, 2015 at 19:35

4

Solved

I'm trying to create a translucent window with Java on OSX and add a JLabel to it. This JLabel changes its text every second.... However the component is not repainting well. How can I solv...
Lum asked 29/1, 2010 at 16:57

4

Solved

I'm wondering how you would go about importing a font. I'm trying to use a custom downloaded font but since most computers that would go to run this would not have this font as it's not a default ...
Turbinal asked 3/12, 2011 at 1:34

3

I am a newbie to Java Swing. I am trying to make a frame containing three buttons; one in the center, another on the top, and the last one on the right. I want to make the NORTH and EAST borders th...
Eggplant asked 16/2, 2012 at 17:26

6

Solved

I get RGB24 byte array and want to show it in Java. public void getByteArray(byte byteArray[]){ int count1 = 0; byte temp1 = 0; for (int i = 0; i < byteArray.length; i++) { //The order of ...
Sirup asked 4/5, 2014 at 15:5

© 2022 - 2024 — McMap. All rights reserved.