comp.lang.java.gui
  Home FAQ Contact Sign in
comp.lang.java.gui only
 
Advanced search
January 2008
motuwethfrsasuw
 123456 1
78910111213 2
14151617181920 3
21222324252627 4
28293031    5
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.lang.java.gui Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  ComponentListener.componentResized() not getting called???         


Author: larkmore
Date: Jan 31, 2008 08:21

I have a JDialog jd that has a JPanel jp added to its content pane.
The JPanel jp has a ComponentListener added to it using the
addComponentListener() method but when I call jp.setBounds(x,y,w,h)
the componentResized method never get executed! I can see that the
setBounds call is working if I override the setBounds method and put
in a debug statement it prints out. I even checked to make sure the
ComponentListener was properly added and it was. But it doesn't
execute. Anyone run into this before? Does this have something to do
with the fact that the JPanel is inside of a JDialog???

Failing that, is there a way to draw a JFrame without the top
decorations (icon, close/minimize/maximize buttons, etc.) ? I tried
using a JWindow originally but ran into trouble getting it to maintain
focus for keyboard input, hence the JDialog.
??? :(
-Will
5 Comments
  Telenet nieuwsgroepen mededeling: nieuwsserver adres aanpassen/Attention: modification de l'adresse du serveur de newsgroup         


Author: info
Date: Jan 29, 2008 18:00

Beste klant,

Telenet heeft een migratie gedaan van haar nieuwsservers.

Wat betekent dit concreet voor jou als gebruiker?

Er verandert niets aan de service, maar om verder gebruik te maken van de
Telenet nieuwsgroepen service moet je bij de instellingen van je nieuwslezer
het adres van de nieuwsserver veranderen van news.telenet.be of
newsbin.telenet.be in newsgroups.telenet.be. Verder dien je de authenticatie
op deze nieuwsserver uit te schakelen.

Met vriendelijke groeten,

Het Telenet team

----------------------------------------------------------------------------------------------------------

Cher client,

Telenet a effectue une migration de ses serveurs de newsgroup.

Pour continuer a utiliser les newsgroups de Telenet, modifiez dans la
configuration de lecteur de nouvelles l'adresse du serveur de newsgroup:
newsgroups.telenet.be a la place de news.telenet.be ou newsbin.telenet.be.
Ceci ne necessite pas que vous vous identifiez pour acceder a ce serveur de
newsgroup.

Cordialement,
Show full article (1.04Kb)
no comments
  Two JComboBoxes One change to other         


Author: RC
Date: Jan 28, 2008 09:59

I have two JComboBoxes

JComboBox combo1 = new JComboBox();
JComboBox combo2 = new JComboBox();

Both I implemented the ItemListener
Now I want if combo1 itemStateChanged(ItemEvent evet)
then combo2 also itemStateChanged.

Vice versa, if combo2 itemStateChanged, then combo1 also
itemStateChanged.

Any idea how to do that?

Thank Q in advance!
4 Comments
  Restricting dragging a JButton inside a JPanel         


Author: Chanchal
Date: Jan 28, 2008 03:28

Hello,

The following code creates a JPanel on which JButtons can be added by
clicking JButton. Also. these created JButtons can be dragged around
in the JPanel.



import java.awt.*;
import java.awt.Color;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;

public class DragTest extends JFrame {

private JPanel dragArea;
private JButton jButton1;

public DragTest() {
GridBagConstraints gridBagConstraints;
dragArea = new JPanel();
jButton1 = new JButton();
dragArea.setBorder(new LineBorder(Color.BLACK, 2));
getContentPane().setLayout(new GridBagLayout());
Show full article (2.88Kb)
7 Comments
  Re: How to turn off Antialiasing in 1.6?         


Author: Knute Johnson
Date: Jan 26, 2008 19:52

Roedy Green wrote:
> On Fri, 25 Jan 2008 21:27:30 -0800, Knute Johnson
> rabbitbrush.frazmtn.com> wrote, quoted or indirectly quoted
> someone who said :
>
>> So is there a way to turn it off for a specific component? All
>> anti-aliasing can be turned off with the -D option even if Clear Type is
>> on. But if Clear Type is on or the -D option specifies anti-alias on
>> you can't turn it off in the paintComponent() method.
>
> In JDK 1.6+ there are also new values to use in setRenderingHints key
> and value, including VALUE_ANTIALIAS_OFF to turn anti-aliasing off.
>
> http://java.sun.com/javase/6/docs/api/java/awt/RenderingHints.html

Apparently you can't stop XP from drawing with Clear Type by selecting
the anti-alias off on the Graphics2D.

--

Knute Johnson
email s/nospam/knute/
Show full article (0.92Kb)
2 Comments
  Setting uniform width of a table         


Author: Mark
Date: Jan 24, 2008 10:22

I'm baffled as to how to set column widths to be a size I want (using
SWT/Jface).

My code is basically this:

tv = new TableViewer(parent,SWT.FULL_SELECTION);
-snip-
table = tv.getTable();
-snip-
tc1 = new TableColumn(table,SWT.CENTER);
tc1.setText("Col 1");
tc1.setWidth(150);
tc2 = new TableColumn(table,SWT.CENTER);
tc2.setText("Col 2");
tc2.setWidth(150);
-snip-
Show full article (0.84Kb)
4 Comments
  javafx + RCP integration - help pls         


Author: sukanya84
Date: Jan 24, 2008 04:13

hi,
I have developed a small eclipse application. I want to integrate
javafx with it.
I used the eclipse view's "composite" as the frame for the javafx
application i developed, say a frame has a canvas which inturn has a
rectangle.
Integration using the following code which i found in the net,

var frame = SWT_AWT.new_Frame(composite);
where the composite is the eclipse view's composite. And all fx
components on fx's rootpane component and added it to the frame using,

frame.add(rootpane.getComponent());
This worked out excepting for Popupmenus.When i click for popupmenus,
it shows and disappears. Other mouse click and drag options are
working fine.
But if the frame is changed to javafx frame , all popup menus work
fine. But i need it to be embedded within the view which wants an
SWT_AWT base frame.

Can anybody suggest me something on this??

Sukanya
no comments
  open another jframe         


Author: Akki
Date: Jan 24, 2008 03:57

Hi,

How do I open another JFrame from one JFrame ?

The first JFrame is a command prompt. Where I want to write draw f(x).
Then I want to open another JFrame inwhich I show the plot of f(x).

TIA,
Darth
1 Comment
  Eclipse based console application         


Author: RMaciek
Date: Jan 24, 2008 00:43

Hi All !

I have an 'Eclipse based' application, so it's an Eclipse framework and a few
plugins developed by me.
All works very well, but unfortunately my customer also needs to have
a console application (without GUI) doing the same things.

So I have a problem. I can not realize quite new application whitout Eclipse
plugins, so I should rather run Eclipse framework with my plugins, all my
extension points and depending Eclipse plugins, but without showing Eclipse
GUI. It should work as a real console application (ex. as Windows command line
application).

My application with Eclipse GUI, which I already have, is launched by Equinox
and 'IPlatformRunnable' interface implemented by me in the following way:

public class Application implements IPlatformRunnable {
Show full article (1.57Kb)
no comments
  Problem on getMouseToolTipText         


Author: daf
Date: Jan 24, 2008 00:39

Hi,

I have a JPanel, call it panel1, which is composed of an other JPanel
panel2.
panel2 is a final class of librarie I need.

The problem is, I need to override the getToolTipText of panel2 or it
is impossible (class is final), so how can I set the ToolTipText of
panel2 by "catching" event with my panel1 ?

thanks
7 Comments
1 2 3 4 5 6