|
|
@ -12,7 +12,7 @@ import com.fr.general.CloudCenter; |
|
|
|
import com.fr.general.IOUtils; |
|
|
|
import com.fr.general.IOUtils; |
|
|
|
import com.fr.general.SiteBlockedException; |
|
|
|
import com.fr.general.SiteBlockedException; |
|
|
|
import com.fr.general.http.HttpClient; |
|
|
|
import com.fr.general.http.HttpClient; |
|
|
|
import com.fr.general.locale.image.LocaleImageFactory; |
|
|
|
import com.fr.general.locale.image.I18nImage; |
|
|
|
import com.fr.plugin.chart.DownloadSourcesEvent; |
|
|
|
import com.fr.plugin.chart.DownloadSourcesEvent; |
|
|
|
import com.fr.stable.CommonUtils; |
|
|
|
import com.fr.stable.CommonUtils; |
|
|
|
import com.fr.stable.StableUtils; |
|
|
|
import com.fr.stable.StableUtils; |
|
|
@ -31,7 +31,6 @@ import java.awt.event.ActionEvent; |
|
|
|
import java.awt.event.ActionListener; |
|
|
|
import java.awt.event.ActionListener; |
|
|
|
import java.awt.event.WindowAdapter; |
|
|
|
import java.awt.event.WindowAdapter; |
|
|
|
import java.awt.event.WindowEvent; |
|
|
|
import java.awt.event.WindowEvent; |
|
|
|
import java.awt.image.BufferedImage; |
|
|
|
|
|
|
|
import java.io.File; |
|
|
|
import java.io.File; |
|
|
|
import java.io.FileOutputStream; |
|
|
|
import java.io.FileOutputStream; |
|
|
|
import java.io.InputStream; |
|
|
|
import java.io.InputStream; |
|
|
@ -190,8 +189,7 @@ public class DownloadOnlineSourcesHelper implements DownloadSourcesEvent { |
|
|
|
private void initDialog() { |
|
|
|
private void initDialog() { |
|
|
|
|
|
|
|
|
|
|
|
// 创建标签,并在标签上放置一张图片
|
|
|
|
// 创建标签,并在标签上放置一张图片
|
|
|
|
BufferedImage image = LocaleImageFactory.createLocaleMark(BACKGROUND_IMAGE_URL).getValue(); |
|
|
|
ImageIcon imageIcon = new ImageIcon(I18nImage.getImage(BACKGROUND_IMAGE_URL)); |
|
|
|
ImageIcon imageIcon = new ImageIcon(image); |
|
|
|
|
|
|
|
UILabel label = new UILabel(imageIcon); |
|
|
|
UILabel label = new UILabel(imageIcon); |
|
|
|
label.setBounds(0, 0, LOAD_WIDTH, LOAD_HEIGHT); |
|
|
|
label.setBounds(0, 0, LOAD_WIDTH, LOAD_HEIGHT); |
|
|
|
|
|
|
|
|
|
|
|