Click here to Skip to main content
14,930,017 members
Home / Discussions / Java
   

Java

 
GeneralRe: ReaderWriter Problem Pin
pembepanter22-Dec-19 4:16
Memberpembepanter22-Dec-19 4:16 
QuestionJava reader writer project Pin
pembepanter10-Dec-19 22:28
Memberpembepanter10-Dec-19 22:28 
AnswerRe: Java reader writer project Pin
Richard MacCutchan10-Dec-19 23:04
mveRichard MacCutchan10-Dec-19 23:04 
AnswerMessage Closed Pin
16-Dec-19 18:38
MemberMember 1468932316-Dec-19 18:38 
GeneralRe: Java reader writer project Pin
Richard MacCutchan16-Dec-19 23:31
mveRichard MacCutchan16-Dec-19 23:31 
GeneralRe: Java reader writer project Pin
phil.o16-Dec-19 23:57
mvephil.o16-Dec-19 23:57 
GeneralRe: Java reader writer project Pin
Richard MacCutchan17-Dec-19 1:46
mveRichard MacCutchan17-Dec-19 1:46 
Questionjfreechar tooltip not able to show Pin
Member 23212935-Dec-19 16:42
MemberMember 23212935-Dec-19 16:42 
I am generating barchart using jFreeChart and i need to make a customize content tooltip for the bar and here is my customized function on StandardCategoryToolTipGenerator and the problem right now is.. when mouse point to the bar the tooltip does not show

class MyTooltipGenerator extends StandardCategoryToolTipGenerator
	{

		@Override
		public String generateToolTip(CategoryDataset dataset, int series, int category)
		{
			
			return "generateToolTip";
		}

		@Override
		public String generateLabelString(CategoryDataset dataset, int row, int col)
		{
			return dataset.getColumnKey(col) + " " + dataset.getValue(row, col);
		}

	};

Both StandardCategoryToolTipGenerator and BarRender are customized as below:
MyTooltipGenerator std = new MyTooltipGenerator();
BarRenderer renderer = new MyBarRenderer();

when generating the content of the tooltip i make is as below:
BarRenderer rr = (BarRenderer) plot.getRenderer();
std.generateLabelString(dataset, row, column);
std.generateToolTip(dataset, row, column);
rr.setBaseToolTipGenerator(std);
plot.setRenderer(rr);

Problem now is the tooltip are NOT able to show.. is the tooltip required certain FORMAT? cause my plan is make the tooltip to be look like:

Quaitity: 50
Percetage: 80%

when the mouse point to the bar and it cannot display like above
AnswerRe: jfreechar tooltip not able to show Pin
Richard MacCutchan5-Dec-19 22:35
mveRichard MacCutchan5-Dec-19 22:35 
QuestionWhat is a medium-size Java open source project with really well maintained automated tests? Pin
Member 146772343-Dec-19 18:49
MemberMember 146772343-Dec-19 18:49 
AnswerRe: What is a medium-size Java open source project with really well maintained automated tests? Pin
Richard MacCutchan3-Dec-19 23:19
mveRichard MacCutchan3-Dec-19 23:19 
GeneralHelp with a website written in Java Pin
Tim Kohl25-Nov-19 23:13
MemberTim Kohl25-Nov-19 23:13 
GeneralMessage Closed Pin
26-Nov-19 21:57
MemberCarla Santos Alves26-Nov-19 21:57 
GeneralRe: Help with a website written in Java Pin
Richard MacCutchan26-Nov-19 22:59
mveRichard MacCutchan26-Nov-19 22:59 
GeneralRe: Help with a website written in Java Pin
Tim Kohl27-Nov-19 21:21
MemberTim Kohl27-Nov-19 21:21 
GeneralRe: Help with a website written in Java Pin
Gerry Schmitz28-Nov-19 5:37
mveGerry Schmitz28-Nov-19 5:37 
QuestionHelp With Sorting Multidimensional String Array Pin
eskomo8424-Nov-19 6:15
Membereskomo8424-Nov-19 6:15 
AnswerRe: Help With Sorting Multidimensional String Array Pin
Richard MacCutchan24-Nov-19 6:23
mveRichard MacCutchan24-Nov-19 6:23 
GeneralRe: Help With Sorting Multidimensional String Array Pin
eskomo8424-Nov-19 6:45
Membereskomo8424-Nov-19 6:45 
GeneralRe: Help With Sorting Multidimensional String Array Pin
Richard MacCutchan24-Nov-19 6:52
mveRichard MacCutchan24-Nov-19 6:52 
GeneralRe: Help With Sorting Multidimensional String Array Pin
eskomo8424-Nov-19 9:09
Membereskomo8424-Nov-19 9:09 
GeneralRe: Help With Sorting Multidimensional String Array Pin
Richard MacCutchan24-Nov-19 23:14
mveRichard MacCutchan24-Nov-19 23:14 
QuestionJavaFX Background not beeing used on a ScrollPane element [Solved] Pin
Valentinor24-Nov-19 4:48
MemberValentinor24-Nov-19 4:48 
AnswerSolution Pin
Valentinor27-Nov-19 6:40
MemberValentinor27-Nov-19 6:40 
Question!!Please Help!! Student Needs Help It Shows me exercise/ wrong catagory moved to web dev JS Pin
Member 1465076510-Nov-19 6:04
MemberMember 1465076510-Nov-19 6:04 

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.