Michael Bell

Greenhorn
+ Follow
since Dec 05, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Michael Bell

This code running standalone works fine and get messages from the queue



This code below  runs on Tomcat but the listen() method is not invoked.


3 days ago
We have the below configuration :-

context.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <br /> xmlns:aws-context="http://www.springframework.org/schema/cloud/aws/context" <br /> xmlns:aws-messaging="http://www.springframework.org/schema/cloud/aws/messaging" <br /> xmlns="http://www.springframework.org/schema/beans" <br /> xsi:schemaLocation="http://www.springframework.org/schema/beans <br /> http://www.springframework.org/schema/beans/spring-beans.xsd <br /> http://www.springframework.org/schema/cloud/context <br /> http://www.springframework.org/schema/cloud/aws/context/spring-cloud-aws-context.xsd <br /> http://www.springframework.org/schema/cloud/messaging <br />   http://www.springframework.org/schema/cloud/messaging/spring-cloud-aws-messaging.xsd">

<aws-messaging:annotation-driven-queue-listener/>

</beans>

pom.xml  has

<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-aws-messaging</artifactId>
<version>2.1.0.RELEASE</version>
</dependency>

Result

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'aws-messaging:annotation-driven-queue-listener'.

Can anyone help please.  The documentation seems a bit sparse and in the Spring documentation it has the .xsd missing.

John
5 days ago
I have simply written a file containing UTF-8 text and called it test.rtf. Microsoft Word seems to believe that it is an rtf file.
We are not worried about bolding characters etc but should some hidden characters be added?
6 years ago
Can I use the latest Java 1.5 release fro B&S despite registering a year ago under 1.4.
Although NIO arrived in 1.4 it says in some information on the Sun site that NIO should not be used. Is this correct please.
When printing a jTable using
jTMain.print(JTable.PrintMode.FIT_WIDTH, header, footer);

A print dialog appears and I would like to customize it. (Remove the optio to Print To File).

Is this possible please.
12 years ago
Can anyone recommend a (preferably free) Date/Time Chooser please
12 years ago
I have a JPanel containing text fields. By default when the tab key is pressed traversal is horizontal rows and then columns. I wish to go down the column first. Can this be done simply or must I do

public class MyOwnFocusTraversalPolicy
extends FocusTraversalPolicy { .....
13 years ago
PrinterJob pj = PrinterJob.getPrinterJob();
pj.setJobName("Subscriber Details for Msisdn=");
pj.setCopies(1);
PageFormat format = pj.defaultPage();
format.setOrientation(PageFormat.LANDSCAPE);

pj.setPrintable(new Printable() {
public int print(Graphics pg, PageFormat pf, int pageNum){
if (pageNum > 0){
return Printable.NO_SUCH_PAGE;
}
Graphics2D g2 = (Graphics2D) pg;
g2.translate(pf.getImageableX(), pf.getImageableY());
jPEdit.paint(g2);
return Printable.PAGE_EXISTS;
}
});
if (pj.printDialog() == false)
return;

pj.print();
13 years ago
I have a GUI which has a JTable and JPanel. The JPanel contains labels and textfields. The JTable is easily printed using the new print() method.
Can the JPanel be printed without having to implement Printable as I am using Netbeans IDE and do not wish to redo all my work?
[ January 24, 2006: Message edited by: Michael Bell ]
13 years ago
I have looked at the archives and it seems a while since this was asked. I wish to bring up a web-browser with a specified URL.
13 years ago
The subclassing method worked fine thanks. Adding it to the palette in Netbeans 5.0 (a jolly fine free IDE) was the problem but all solved now thanks again.
13 years ago
Is subclassing the only way to accomplish this?
I am using NetBeans 5.0 and so need to add the JTable subclass to a palette and then drag it on to the GUI. Its ok onto the palette but after that .....
13 years ago
I wish to set the row text color in a JTable depending upon a value found in one of the colums. Can this be done please?
13 years ago