Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Listbox of JComboBox displayed on different screen

by tmf (Initiate)
on Aug 06, 2012 at 12:47 UTC ( #985695=perlquestion: print w/replies, xml ) Need Help??
tmf has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

I have a problem using TK::JComboBox for my GUI.

The programm works fine and the combobox does exactly what it is supposed to. When the application is run on the second screen (using two monitors on the computer, not the main one) the listbox is being displayed on the first screen (main monitor), while the rest of the GUI is still on the other one. I do not have a lot of experience with Perl and I would be very grateful if anybody could tell me why this happens and how to change this.

Here is a small code fragment for a JComboBox. It doesn't do anything, but the problem occurs with it as well.

use Tk::JComboBox; my $sMain; $sMain = MainWindow->new(); $sMain->minsize(qw(700 400)); my $sBox = $sMain->JComboBox(-entrybackground => 'white', -choices => [qw/one two three four/], -mode => 'editable', -relief => 'sunken', -entrywidth => 70 , )->grid( -row => 1, -column => 1, -sticky => 'n', ); MainLoop;

Replies are listed 'Best First'.
Re: Listbox of JComboBox displayed on different screen
by zentara (Archbishop) on Aug 06, 2012 at 14:34 UTC

      Thanks for the link. Indeed it covers that topic, unfortunately no one came up with a solution that fixes the problem. At least I'm not the only one dealing with it...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://985695]
Approved by marto
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2018-05-26 02:41 GMT
Find Nodes?
    Voting Booth?