Click here to Skip to main content
15,908,172 members
Home / Discussions / Java
   

Java

 
GeneralRe: Utility calling Java application Pin
TorstenH.20-Feb-11 21:33
TorstenH.20-Feb-11 21:33 
Questiontelnet client source code Pin
navidnmc16-Feb-11 19:24
navidnmc16-Feb-11 19:24 
AnswerRe: telnet client source code Pin
Richard MacCutchan16-Feb-11 21:53
mveRichard MacCutchan16-Feb-11 21:53 
AnswerRe: telnet client source code Pin
David Skelly16-Feb-11 21:53
David Skelly16-Feb-11 21:53 
AnswerRe: telnet client source code Pin
TorstenH.16-Feb-11 22:24
TorstenH.16-Feb-11 22:24 
AnswerRe: telnet client source code Pin
jschell17-Feb-11 8:29
jschell17-Feb-11 8:29 
AnswerRe: telnet client source code Pin
RaviRanjanKr14-Apr-11 6:05
professionalRaviRanjanKr14-Apr-11 6:05 
QuestionJPanel and JScrollPane inheritance Pin
kassx14-Feb-11 20:18
kassx14-Feb-11 20:18 
I am having some issues the the implementation of the JScrollPane in my gui. I was wondering if anybody had any ideas?
For my GUI i the following
JFrame
>JPanel (nav bar)
>JPanel (gridlayout dynamic based on house size)
>> JPanel(each grid/cell)
>>> Componts (label etc)
>> JPanel (Stat bar)
This works fine to select and work with my rooms(part of the project) in each grid. I have the listener attached to the gridlayout panel, so i know where my mouse has clicked and therefore which grid it belongs to. The listener is the mouselistener on the JPanel.

But when i place a JScrollPane in here;
JFrame
>JPanel (nav bar)
>JPanel (gridlayout dynamic based on house size)
>>jScrollPane
>>>JPanel(each grid/cell)
>>>>Components (label etc)
>>>JPanel (Stat bar)
To give me the scroll bars for each room, my gui no longer accepts the mouse event (it does but not on the gridlayout JPanel as it did before). Does anybody know how i can overide the JScrollPane and let my JPanel underneath receive the event?
I am struggle to find a way to do this that will adhere to the MVC structure. As the code to check and prepare everything is in the controller which just hands the basic info over to the view to repaint it all.
Or i am just completely going in the wrong direction Frown | :(
AnswerRe: JPanel and JScrollPane inheritance Pin
TorstenH.15-Feb-11 21:10
TorstenH.15-Feb-11 21:10 
GeneralRe: JPanel and JScrollPane inheritance Pin
kassx15-Feb-11 21:35
kassx15-Feb-11 21:35 
GeneralRe: JPanel and JScrollPane inheritance Pin
TorstenH.16-Feb-11 2:06
TorstenH.16-Feb-11 2:06 
Questionforcing java functions to execute in sequence?? Pin
Alok Sharma ji13-Feb-11 19:31
Alok Sharma ji13-Feb-11 19:31 
AnswerRe: forcing java functions to execute in sequence?? Pin
Gerben Jongerius13-Feb-11 19:55
Gerben Jongerius13-Feb-11 19:55 
GeneralRe: forcing java functions to execute in sequence?? Pin
Alok Sharma ji13-Feb-11 20:28
Alok Sharma ji13-Feb-11 20:28 
GeneralRe: forcing java functions to execute in sequence?? Pin
TorstenH.13-Feb-11 20:43
TorstenH.13-Feb-11 20:43 
GeneralRe: forcing java functions to execute in sequence?? Pin
Alok Sharma ji14-Feb-11 0:17
Alok Sharma ji14-Feb-11 0:17 
QuestionHow Find and Replace in Text File [modified] Pin
navidnmc11-Feb-11 22:00
navidnmc11-Feb-11 22:00 
AnswerRe: How Find and Replace in Text File Pin
Nagy Vilmos11-Feb-11 23:12
professionalNagy Vilmos11-Feb-11 23:12 
Questioncodes for stignography Pin
himanshu111111-Feb-11 2:01
himanshu111111-Feb-11 2:01 
AnswerRe: codes for stignography Pin
Nagy Vilmos11-Feb-11 3:33
professionalNagy Vilmos11-Feb-11 3:33 
AnswerRe: codes for stignography Pin
Luc Pattyn11-Feb-11 3:39
sitebuilderLuc Pattyn11-Feb-11 3:39 
AnswerRe: codes for stignography Pin
RaviRanjanKr28-Feb-11 2:41
professionalRaviRanjanKr28-Feb-11 2:41 
QuestionReading image in java Pin
satizkumar9-Feb-11 0:41
satizkumar9-Feb-11 0:41 
GeneralRe: Reading image in java Pin
Manfred Rudolf Bihy9-Feb-11 4:14
professionalManfred Rudolf Bihy9-Feb-11 4:14 
AnswerRe: Reading image in java Pin
TorstenH.9-Feb-11 22:02
TorstenH.9-Feb-11 22:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.