How to make my JLabels red with use of aspectJ?
问题 my Project has a MessageUtil class, which has methods to show messages, I'm trying to make the texts of my Jlabels red using aspectJ, without use of aspectJ it is enough to add 'for loop' to one of the methods wich makes multiLabel text message: public static JLabel[] createMultiLabel(String msg) { JLabel[] messages = null; if (msg.contains("\n")) { messages = createMultiLabelBySlashN(msg); } else { messages = createMultiLabelByPixel(msg); } //this for loop makes the text red for (int i = 0;